Skip to content

Instantly share code, notes, and snippets.

@arifulhb
Created October 27, 2019 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arifulhb/91408c9b9c3f36d3fe68672af14e3e7e to your computer and use it in GitHub Desktop.
Save arifulhb/91408c9b9c3f36d3fe68672af14e3e7e to your computer and use it in GitHub Desktop.
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