Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

locale settings #80

Open
anandujjwal13 opened this issue Feb 26, 2017 · 3 comments
Open

locale settings #80

anandujjwal13 opened this issue Feb 26, 2017 · 3 comments

Comments

@anandujjwal13
Copy link

there are no options to enter the locale information lets say 'IN' for 'INDIA' because of which there is no response from the server.. :(

@OptumCS
Copy link

OptumCS commented Mar 5, 2017

Take a look at the utils.js file (line 97):

var domain = query.domain || 'webservices.amazon.com';

In other words, you can use the 'domain' property of the query to set the particular amazon store.
Also, if you look carefully at the README.md "Query params:" under the heading, "ItemLookup", the last bullet point, "VariationPages" is not formatted properly. At the end of the line, you will see the additional parameter "domain" (ahh, it was hidden!)

For example, set the 'domain' parameter to "webservices.amazon.co.uk" to access the UK store. However, you must have an affiliate ID for each store that you wish to query (you probably already knew that part). I tested a few (US, UK, CA) and it works well:

let oAmazonItemInfo = AmazonClient.itemLookupSync(
	{
		domain: 'webservices.amazon.ca',
		idType: 'ASIN',
		itemId: 'B01IUFGDW0',
		responseGroup: 'ItemAttributes, Offers'
	}
);

Now, you can turn your frown upside-down. :)

@akshayupadhya
Copy link

it works , thanks

dariusk added a commit to dariusk/amazon-product-api that referenced this issue Jan 23, 2018
I tried to ctrl+F the readme for "locale" to find that term and thought that maybe this library didn't support switching locales. It was only after reading t3chnoboy#80 that I realized `domain` was the parameter to set. I thought explicitly adding "locale" to the docs might save someone time in the future.
@mangione77
Copy link

mangione77 commented Sep 10, 2018

I'm having an issue when performing a itemSearch on 'webservices.amazon.es'. My code is just like the one in the example, the only change is the 'domain' property:

client.itemSearch({ domain: 'webservices.amazon.es', director: 'Quentin Tarantino', actor: 'Samuel L. Jackson', searchIndex: 'DVD', audienceRating: 'R', responseGroup: 'ItemAttributes,Offers,Images' }).then(function(results){ console.log(results); }).catch(function(err){ console.log(err.Error); })

I'm getting The AWS Access Key Id you provided does not exist in our records even though I'm registered in both Spanish and US marketplaces (and tried with webservices.amazon.com aswell). I also did some tests with the Sketchpad and works just fine for the Spanish marketplace and not the US one, which leads me to think I'm having an issue knowing were to add the locale.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants