Module: Bearcat::Client::CanvasFiles
- Defined in:
- lib/bearcat/client/canvas_files.rb
Instance Method Summary collapse
Instance Method Details
#upload_file(api_path, file_path, params = {}) ⇒ Object
4 5 6 7 8 |
# File 'lib/bearcat/client/canvas_files.rb', line 4 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 |