Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 992 Bytes

README.md

File metadata and controls

41 lines (26 loc) · 992 Bytes

I/O CNA Adobe Analytics Core SDK

Javascript Core SDK wrapping Adobe Target APIs.

Installing

$ npm install

Usage


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));

Contributing

Contributions are welcome! Read the Contributing Guide for more information.

Licensing

This project is licensed under the Apache V2 License. See LICENSE for more information.