Ruby API client that handles uploads and further operations with files by wrapping Uploadcare Upload and REST APIs.
39
stars
28
forks
source link
Fix File, Webhook client request bodies. Add missing require 'api_struct' #75
Closed
dmitrijivanchenko closed 3 years ago
Description
1. Fix request params: replace key
:body
with:content
because therequest
is expecting:content
, not:body
in2. Fix body parameter:
name
->target_url
)3. Add
require 'api_struct'
where used, because error theUnitializedConstant
error is raised in some cases (in Rails app)4. Edit the
options
arg for Uploadcare::Client::WebhookClient#update, so this method can be used with ruby 3.0.0Checklist