Javascript Core SDK wrapping Adobe Target APIs.
$ npm install
var sdk = require('adobeio-cna-core-target');
//initialize sdk
const targetClient = await sdk.init('<tenant>', 'x-api-key', '<valid auth token>')
//call methods
//get activities
const activities = await targetClient.getActivities({limit:5, offset:0})
console.log(util.inspect(activities));
//get offers
const offers = await targetClient.getOffers({limit:5, offset:0})
console.log(util.inspect(offers));
//get offer by id activity
const offer = await targetClient.getOfferById(123)
console.log(util.inspect(offer));
Contributions are welcome! Read the Contributing Guide for more information.
This project is licensed under the Apache V2 License. See LICENSE for more information.