module Bearcat class Client < Footrest::Client module CanvasFiles 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 end end end