1.0.2 • Published 6 years ago
conversation-api v1.0.2
Install
npm install conversation-apiUsage
Sending Text Message
const config: ConfigType = {
BASE_URL: "https://api.conversation-api.prod.sinch.com",
VERSION: "v1beta",
ACCOUNT_ID: "YOUR_ACCOUNT_ID",
APP_SECRET: "YOUR_APP_SECRET",
APP_ID: "YOUR_APP_ID",
};
const message = new MessageApi(config);
const response = message.sendTextMessage(
"YOUR_CONTACT_ID",
"Hello world "
);
response.then((res) => {
console.log(res);
});