amazon-ads-api
v1.0.1
Published
Amazon Advertising API SDK
Downloads
1
Maintainers
Readme
Amazon Advertising API SDK
Dead simple SDK for Amazon Advertising API
How to install?
npm i amazon-ads-api
or
yarn add amazon-ads-api
How to use it?
const { AmzAdvertising } = require('amazon-ads-api')
const tokens = { accessToken, refreshToken, clientId, clientSecret }
const adsClient = new AmzAdvertising(tokens)
Or pass tokens using environment variables
process.env.AMAZON_ADVERTISING_ACCESS_TOKEN = accessToken
process.env.AMAZON_ADVERTISING_REFRESH_TOKEN = refreshToken
process.env.AMAZON_ADVERTISING_DEV_CLIENT_ID = clientId
process.env.AMAZON_ADVERTISING_DEV_CLIENT_SECRET = clientSecret