A very limited abstraction over Target APIs. Currently only supports 2 API methods [stores
, search
].
stores
uses API v2, search
uses API v1]
Requires Target API key(s) [I have no idea where you get those from as they don't appear to have open API access.
That being said the v2 API is used by the website's store locator and v1 is used by the mobile app.
install
npm i target-api
programmatic usage
Provide API key (required)
const targetApi = // get array of storesconst storesOpts = key: 'someV2ApiKey' nearby: 33803 range: 50 limit: 50targetApi // get product search resultsconst searchOpts = key: 'someV1ApiKey' store: 1299 query: '4k tv'targetApi