Module: Bearcat::Client::CanvasFiles
- Included in:
- Bearcat::Client
- Defined in:
- lib/bearcat/client/canvas_files.rb
Instance Method Summary collapse
Instance Method Details
#upload_file(api_path, file_path, params = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/bearcat/client/canvas_files.rb', line 5 def upload_file(api_path, file_path, params = {}) declare_response = declare_file(api_path, file_params(file_path).merge(params)) confirmation_url = post_file(declare_response['upload_url'], declare_response['upload_params'], file_path) confirm_file_upload(confirmation_url) end |