
Amazon SP-API
$99-100 USD
Оплачивается при доставке
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.
A)
On postman, In the params there's a key called "orderId". And that's where I put the order number: 111-0000000-0000000
B)
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
C)
In authorization (Type: AWS Signature), Postman already put the "accesskey" and "secretkey" which I populate.
$curl = curl_init();
curl_setopt_array($curl, array(
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(
'Accept: application/json',
'x-amz-access-token: Atza|IwEBIIPKigVe0qZcud/I2MXSTFbbbbSjkalwfasfkjladskl/bT15U',
'X-Amz-Date: 20230201T184917Z',
'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);
curl_close($curl);
echo $response;
------------------------
Here is the Debug from postman:
=======================
GET /orders/v0/orders/111-0000000-0000000/buyerInfo HTTP/1.1
Accept: application/json
Atza|IwEBIIPKigVe0qZcud/I2MXSTFbbbbSjkalwfasfkjladskl/bT15U
Host: [login to view URL]
X-Amz-Date: 20230201T181904Z
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..sir *I am very happy to bid on this interesting project. I have rich experiences in this filed . As a senior Full-stack web developer I believe that my skills are fitting with your project. Once you hire me Больше
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.
Greetings I can surely help you for Amazon SP-API I am in the IT industry since more than a decade and serve so many clients for building and rebuilding websites, software and applications and I have strong hands-on Больше
'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=cc1028f10d361ca5a00000000005cbe4f760f2935fe2fc Больше
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
Hi, I am a Web developer is here. I have gone through your initial requirements and read carefully and analyzed our skills to best suit your project requirements. I have 4+ years of experience in web development and we Больше