Skip to content

Instantly share code, notes, and snippets.

Created October 27, 2019 08:08
What would you like to do?
Amazon-pa-api50: Create Config instance
// By Default all resources and will connect to United States
let myConfig = new Config();
// if you want other country then united states.
let myConfig = new Config(undefined, country.UnitedKingdom);
// if you want custom resources.
// this custom `resources.Offers` will be set default to all of your search. You can customize the resources in your search specific function also.
let myConfig = new Config(resources.Offers);
// if you want custom resources with different country
let myConfig = new Config(resources.ItemInfo, country.Canada);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment