2.0.10 • Published 2 years ago

@apifonica/sms-sdk v2.0.10

Weekly downloads
101
License
MIT
Repository
-
Last release
2 years ago

Example usage:

Initialize
const SMS = require('@apifonica/sms-sdk');

// initialize with your account credentials
const sms = new SMS({
  accountSID: ACCOUNT SID,
  authToken: AUTHORIZATION TOKEN,
});
Send message
// the three required options are "from", "to", and "text"
// other options are "msg_app_sid", "channel", "type", "url", "tag"
const options = {
  from: NUMBER TO SEND FROM,
  to: RECIPIENT NUMBER,
  text: MESSAGE TEXT,
};

// the sendSMS method returns a promise
sms.sendSMS(options)

See detailed API information at https://www.apifonica.com/en/docs/api/rest/send-message/

Get message details
// the getSMS method also returns a promise. 
// It expects the SID of the message you're trying to look up
sms.getSMS(message_sid)

See detailed API information at https://www.apifonica.com/en/docs/api/rest/get-message-info/

2.0.9

2 years ago

2.0.10

2 years ago

2.0.8

3 years ago

2.0.7

4 years ago

2.0.6

4 years ago

2.0.5

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.4

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

1.0.3

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago