lib/cdnconnect_api.rb in cdnconnect-api-0.2.2 vs lib/cdnconnect_api.rb in cdnconnect-api-0.2.3
- old
+ new
@@ -23,11 +23,11 @@
##
# Used to easily interact with CDN Connect API.
class APIClient
@@application_name = 'cdnconnect-api-ruby'
- @@application_version = '0.2.1'
+ @@application_version = '0.2.3'
@@user_agent = @@application_name + ' v' + @@application_version
@@api_host = 'https://api.cdnconnect.com'
@@api_version = 'v1'
##
@@ -208,10 +208,9 @@
# Build the request to send to the API
# Uses the Faraday: https://github.com/lostisland/faraday
conn = Faraday.new() do |req|
req.headers['User-Agent'] = @@user_agent
- req.headers['Authorization'] = 'Bearer ' + @access_token
req.request :multipart
req.adapter :net_http
end
# Kick off the request!