Sha256: 982b5a6651821dfd241f05be7a2a6f98591878421742aa8a6b926d04d26953ce
Contents?: true
Size: 1013 Bytes
Versions: 3
Compression:
Stored size: 1013 Bytes
Contents
module Bearcat class Client < Footrest::Client module Courses def course(course, params={}) get("/api/v1/courses/#{course}", params) end def create_course(account_id, params={}) post("/api/v1/accounts/#{account_id}/courses", params) end def update_course(course, params={}) put("/api/v1/courses/#{course}", params) end def list_course_users(course, params={}) get("/api/v1/courses/#{course}/users", params) end def course_quiz_extensions(course, params={}) post("/api/v1/courses/#{course}/quiz_extensions", params) end def create_content_migration(course, file_path, params={}) response = post("/api/v1/courses/#{course}/content_migrations", params) pre_attachment = response['pre_attachment'] confirmation_url = post_file(pre_attachment['upload_url'], pre_attachment['upload_params'], file_path) confirm_file_upload(confirmation_url) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bearcat-1.0.5 | lib/bearcat/client/courses.rb |
bearcat-1.0.4 | lib/bearcat/client/courses.rb |
bearcat-1.0.3 | lib/bearcat/client/courses.rb |