Оплачивается при доставке
I need a PHP Curl code that's completely independent (does not need any composers or 3rd party tools) to generate an SP-API call to Amazon. In this case "buyerinfo":
[login to view URL]
I need to enter variables like SecretKey, Accesskey, the token and the order ID which in this case is: 111-0000000-0000000. This order is is in the codes below. Also the Acesskey is: AKIA00000000000.
It should be straight forward just 1 file that creates the signature etc and makes the call with "curl_exec".
FIRM price: $100
I can get it to work on Postman but I need it on PHP Curl.
The code from Postman gives for PHP Curl below.
It does not work as the error is with signature issue. It might be that the symbol / exist the token.
Regardless, the code is just to assist. It's only for a specific call. I need the php curl that generates the signature and everything etc.
On postman, In the params there's a key called "orderId". And that's where I put the order number: 111-0000000-0000000
In Headers, there's a key called "x-amz-access-token", and that's where I put the token which is: Atza|IwEBIIPKigVe0qZcud/I2MXSTFbbbbSjkalwfasfkjladskl/bT15U
In authorization (Type: AWS Signature), Postman already put the "accesskey" and "secretkey" which I populate.
$curl = curl_init();
CURLOPT_URL => '[login to view URL]',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Authorization: AWS4-HMAC-SHA256 Credential=AKIA00000000000/20230201/us-east-1/execute-api/aws4_request, SignedHeaders=accept;host;x-amz-access-token;x-amz-date, Signature=cc1028f10d361ca5a00000000005cbe4f760f2935fe2fc61cbcbb8120c888f'
$response = curl_exec($curl);
$info = curl_getinfo($curl);
Here is the Debug from postman:
GET /orders/v0/orders/111-0000000-0000000/buyerInfo HTTP/1.1
Host: [login to view URL]
Authorization: AWS4-HMAC-SHA256 Credential=AKIA00000000000/20230201/us-east-1/execute-api/aws4_request, SignedHeaders=accept;host;x-amz-access-token;x-amz-date, Signature=cc1028f10d361ca5a00000000005cbe4f760f2935fe2fc61cbcbb8120c888f
I need this asap. Thank you very much.
ID проекта: #35888303
13 фрилансеров(-а) готовы выполнить эту работу в среднем за $107
Hello, a pleasure to greet you, my name is Alex, I would be interested in working on your project, I have immediate availability I remain attentive to your comments Greetings
Hello, I have more than seven years of experience in the office and more than three years of freelance experience in the required task and would like to help you with this task. Thanks for posting in my area of work.
Hey! I can assist you in this task as I am a full stack developer and have many satisfied clients I have done relevent work before Kindly drop me a message so we can get into it Thanks