Z
Z
Zimaell2019-07-25 14:28:15
PHP
Zimaell, 2019-07-25 14:28:15

How to create a request to amazon via API (PHP)?

I received the keys to sellercentral.amazon, then I need to make at least the first request in order to make the rest on it, they have an example

POST /Products/2011-10-01 HTTP/1.1
Content-Type: x-www-form-urlencoded
Host: mws.amazonservices.com
User-Agent: <Your User Agent Header>

ASINList.ASIN.1=B002KT3XRQ
&AWSAccessKeyId=AKIAEXAMPLEFWR4TJ7ZQ
&Action=GetMatchingProduct
&MWSAuthToken=amzn.mws.4ea38b7b-f563-7709-4bae-87aeaEXAMPLE
&MarketplaceId=ATVPDKIKX0DER
&SellerId=A1IMEXAMPLEWRC
&SignatureMethod=HmacSHA256
&SignatureVersion=2
&Timestamp=2012-12-04T21%3A01%3A53Z
&Version=2011-10-01
&Signature=5O%2EXAMPLEtpSD0NbC%2FltDxXuLe2TXAd%2B48AEXAMPLE0%3D

I have 3 variables
$mws_dev_id='.............';  # MWS developer ID
$access_key='...............';  # Access Key
$secret_key='................';  # Secret Key

And here I did not understand - where to get MWSAuthToken, MarketplaceId, where to insert $secret_key, how their signature is generated ...?
I didn’t find PHP examples from them, so I decided to find out if anyone can tell me how to do it, or a link to an example in PHP how the simplest request is made?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AN, 2019-07-25
@Zimaell

Zimaell , look here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question