Module: Bearcat::Client::SisImports

Defined in:
lib/bearcat/client/sis_imports.rb

Instance Method Summary collapse

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(, file, options = {}, content_type: nil)
  options['attachment'] = Faraday::UploadIO.new(file, content_type || "application/zip")
  post("/api/v1/accounts/#{}/sis_imports", options)
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(, sis_id, options = {})
  get("/api/v1/accounts/#{}/sis_imports/#{sis_id}", options)
end