Each bot needs its own API key for tracking.
Create a bot to get an API key.
npm install --save dashbot
Use the API key created above.
const dashbot = require('dashbot')(<strong>process.env.DASHBOT_API_KEY</strong>).kik;
Send the full message to Dashbot.
{
"type": "text",
"body": "pat me",
"from": "someuser",
"timestamp": 1470024587572,"<br></br>" "mention": null,
"participants": [
"someuser"
],
"readReceiptRequested": true,
"id": "987654321",
"chatId": "123456789"
}
dashbot.logIncoming(<strong>process.env.KIK_API_KEY</strong>, <strong>process.env.KIK_USERNAME</strong>, message)
Where process.env.KIK_API_KEY
is the API_KEY from Kik and process.env.KIK_USERNAME
is the username for the bot from Kik.
Send the full message to Dashbot.
{
"type": "text",
"body": "My Test Message",
"to": "someuser",
"chatId": "123456789"
}
dashbot.logOutgoing(<strong>process.env.KIK_API_KEY</strong>, <strong>process.env.KIK_USERNAME</strong>, message)
Where process.env.KIK_API_KEY
is the API_KEY from Kik and process.env.KIK_USERNAME
is the username for the bot from Kik.