lib/blurb/base_resource.rb in blurb-0.2.0 vs lib/blurb/base_resource.rb in blurb-0.2.1
- old
+ new
@@ -46,10 +46,10 @@
def self.post_request(api_path, payload)
access_token = Blurb::Token.retrieve()
request_config = {
method: :post,
- url: "#{Blurb::API_URL}#{api_path}",
+ url: "#{Blurb.active_api_url}#{api_path}",
payload: payload.to_json,
headers: {
"Authorization" => "Bearer #{access_token['access_token']}",
"Content-Type" => "application/json",
"Amazon-Advertising-API-Scope" => Blurb.profile_id.to_i,