lib/bearcat/client/canvas_files.rb in bearcat-1.4.13 vs lib/bearcat/client/canvas_files.rb in bearcat-1.5.0.beta1
- old
+ new
@@ -1,13 +1,11 @@
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