lib/unsplash/connection.rb in unsplash-1.5.2 vs lib/unsplash/connection.rb in unsplash-1.5.3

- old
+ new

@@ -16,17 +16,17 @@ # Create a Connection object. # @param version [String] The Unsplash API version to use. # @param api_base_uri [String] Base URI at which to make API calls. # @param oauth_base_uri [String] Base URI for OAuth requests. def initialize(version: DEFAULT_VERSION, api_base_uri: DEFAULT_API_BASE_URI, oauth_base_uri: DEFAULT_OAUTH_BASE_URI) - @application_id = Unsplash.configuration.application_id + @application_access_key = Unsplash.configuration.application_access_key @application_secret = Unsplash.configuration.application_secret @api_version = version @api_base_uri = api_base_uri oauth_base_uri = oauth_base_uri - @oauth = ::OAuth2::Client.new(@application_id, @application_secret, site: oauth_base_uri) do |http| + @oauth = ::OAuth2::Client.new(@application_access_key, @application_secret, site: oauth_base_uri) do |http| http.request :multipart http.request :url_encoded http.adapter :net_http end @@ -135,10 +135,10 @@ response end def public_auth_header - { "Authorization" => "Client-ID #{@application_id}" } + { "Authorization" => "Client-ID #{@application_access_key}" } end def utm_params { utm_source: Unsplash.configuration.utm_source || "api_app",