module Bearcat class Client < Footrest::Client module ContentExports def create_content_export(id, type, params = {}) post("/api/v1/#{type}/#{id}/content_exports", params) end def create_course_export(id, params = {}) create_content_export(id, 'courses', params) end def create_group_export(id, params = {}) create_content_export(id, 'groups', params) end def create_user_export(id, params = {}) create_content_export(id, 'users', params) end def get_content_export(id, export_id, type, params = {}) get("/api/v1/#{type}/#{id}/content_exports/#{export_id}", params) end def get_course_export(course_id, export_id, params = {}) get_content_export(course_id, export_id, 'courses', params) end def get_group_export(group_id, export_id, params = {}) get_content_export(group_id, export_id, 'groups', params) end def get_user_export(user_id, export_id, params = {}) get_content_export(user_id, export_id, 'users', params) end end end end