lai3221 / amz_adv_api_php

Amazon Ads API V3.0 For PHP
Apache License 2.0
11 stars 1 forks source link

Request Report Issue #5

Open asad-tinyyo opened 1 year ago

asad-tinyyo commented 1 year ago

Hi,

Request report sending this response [code] => 403 "not a valid key=value pair (missing equal-sign) in Authorization header" Can you guide please.

Thanks

lai3221 commented 1 year ago

first make your header like this: `array:4 [ 0 => "Authorization: bearer Atza|IwEBIFI1lhHRkK3AjG9VXZBNiNtGPnqYit0axJmOgiqgzzr3FiSKUj7p6CA9o9Ha_uRC9YIUbBQhEDNWf4VuZ2AOpu0vle6gy3oWLBV6QLJ0TmsroQMqTkfWbJ6xoflhPxXC54shZJtIkL59c2ryjXmzc5UqV8WXZi25prYdaPQpgZWkh7bK9McoS8BpzEfx-3D9SeQ2_e_XozMXUjzfHf1KZqERx_XGfsYr1bgHEukE_syYQEuQchE475ckT0pRvqk3ewK9YIxu1Qzcjc8ziEzSo4_Drhn0eEK5zG***SVzWnuPjeG8A"

1 => "User-Agent: Amazon advertising API library"

2 => "Amazon-Advertising-API-ClientId: amzn1.application-oa2-client.ec2e714*****"

3 => "Amazon-Advertising-API-Scope: 129665*****" ]` And then you can debug the "doRefreshToken" function separately and check whether it responds correctly.

asad-tinyyo commented 1 year ago

Thanks lai3221