Skip to content

Latest commit

 

History

History
59 lines (47 loc) · 1.86 KB

File metadata and controls

59 lines (47 loc) · 1.86 KB

CoolSMS SDK for Javascript

You can send text messages, Kakaotalk in Korea using this package.

Installing

To use the SDK, simply use npm package manager CLI. Type the following into a terminal window.

npm install coolsms-sdk

Usage

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

Examples

Group Message, Simple Message, KakaoTalk, Uploading Images, Message Logs, Scheduled Messages, Balance

Opening Issues

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.

License

Licensed under the MIT License.