Class: Uploadcare::Client::Conversion::BaseConversionClient

Inherits:
RestClient
  • Object
show all
Defined in:
lib/uploadcare/client/conversion/base_conversion_client.rb

Overview

This is a base client for conversion operations

Constant Summary collapse

API_VERSION_HEADER_VALUE =
'application/vnd.uploadcare-v0.7+json'

Instance Method Summary collapse

Methods inherited from RestClient

#api_root, #api_struct_delete, #api_struct_get, #api_struct_post, #api_struct_put, #delete, #get, #post, #put, #request

Methods included from Uploadcare::Concerns::ThrottleHandler

#handle_throttling

Methods included from Uploadcare::Concerns::ErrorHandler

#failure, #wrap

Instance Method Details

#headersObject



15
16
17
18
19
20
21
# File 'lib/uploadcare/client/conversion/base_conversion_client.rb', line 15

def headers
  {
    'Content-Type': 'application/json',
    Accept: API_VERSION_HEADER_VALUE,
    'User-Agent': Uploadcare::Param::UserAgent.call
  }
end