Module: Bearcat::Client::SisImports
- Defined in:
- lib/bearcat/client/sis_imports.rb
Instance Method Summary collapse
- #import_sis_data(account, file, options = {}, content_type: nil) ⇒ Object
- #sis_import_status(account, sis_id, options = {}) ⇒ Object
Instance Method Details
#import_sis_data(account, file, options = {}, content_type: nil) ⇒ Object
4 5 6 7 |
# File 'lib/bearcat/client/sis_imports.rb', line 4 def import_sis_data(account, file, = {}, content_type: nil) ['attachment'] = Faraday::UploadIO.new(file, content_type || "application/zip") post("/api/v1/accounts/#{account}/sis_imports", ) end |
#sis_import_status(account, sis_id, options = {}) ⇒ Object
9 10 11 |
# File 'lib/bearcat/client/sis_imports.rb', line 9 def sis_import_status(account, sis_id, = {}) get("/api/v1/accounts/#{account}/sis_imports/#{sis_id}", ) end |