2.0.10 • Published 3 years ago
@apifonica/sms-sdk v2.0.10
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
3 years ago
2.0.10
3 years ago
2.0.8
4 years ago
2.0.7
5 years ago
2.0.6
5 years ago
2.0.5
5 years ago
2.0.3
5 years ago
2.0.2
5 years ago
2.0.4
5 years ago
2.0.1
5 years ago
2.0.0
5 years ago
1.0.4
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago
1.0.3
5 years ago
0.0.3
5 years ago
0.0.2
5 years ago
0.0.1
5 years ago