You can send text messages, Kakaotalk in Korea using this package.
To use the SDK, simply use npm package manager CLI. Type the following into a terminal window.
npm install coolsms-sdk
const coolsms = require('coolsms-sdk')
coolsms.setCredential({
apiKey: 'Input API Key',
apiSecret: 'Input API Secret'
})
coolsms.sendSimpleMessages(
{
messages: [
{
"to": {
"recipient": "01000000001"
},
"from": "0200000001",
"text": "COOLSMS Test Message",
"type": "SMS",
}
]
},
(error, result) => {
if (error) {
return console.log(error)
}
console.log(result)
}
)
Group Message, Simple Message, KakaoTalk, Uploading Images, Message Logs, Scheduled Messages, Balance
If you encounter a bug with the COOLSMS SDK for Javascript we would like to hear about it. Search the existing issues and try to make sure your problem doesn’t already exist before opening a new issue. It’s helpful if you include the version of the SDK, Node.js or browser environment and OS you’re using. Please include a stack trace and reduced repro case when appropriate, too.
Licensed under the MIT License.