npm i -s @spencerdcarlson/scalable-pres
- Register to use the Scalable Press API
const API = require('@spencerdcarlson/scalable-pres')
const credentials = {
"username": null,
"password": "test_XCocculgRiOcWddEZBciPw" // test api key - https://scalablepress.com/manager/v2/settings/api
}
const api = new API(credentials.username, credentials.password)
api.product.list('sweatshirts').then(response => {
console.log(response)
})
See the test files for more api usage examples