0.0.3 • Published 8 years ago

target-api v0.0.3

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

target-api npm version js-standard-style

A very limited abstraction over Target APIs. Currently only supports 2 API methods stores, search.

Requires Target API key(s) stores uses API v2, search uses API v1

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 = require('target-api')

// get array of stores
const storesOpts = {key: 'someV2ApiKey', nearby: 33803, range: 50, limit: 50}
targetApi.stores(storesOpts, (err, data) => console.log(err || data))

// get product search results
const searchOpts = {key: 'someV1ApiKey', store: 1299, query: '4k tv'}
targetApi.search(searchOpts, (err, data) => console.log(err || data))
0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago