0.0.4 • Published 7 years ago
voiceads v0.0.4
VoiceAds.ai
Install the package
cd <your_project_src_path>
npm install voiceads --save
INITIALIZE THE SDK
Add the following VoiceAds declaration at the top to intialize the SDK:
var VoiceAds = require('voiceads')('<Insert Your VoiceAds.ai token>');
#login to your amazon developer account to get your skill id
params = {
'appName': '<Insert Amazon Skill Name>',
'appId': '<Insert Amazon Skill Id Here>',
'appType': 'flash_briefing',
'appCategory' : 'news'
}
GETTING AD
VoiceAds.getAd(params.appType, params, function (error, response) {
<your_response_object>.concat(response));
});