SMSGHJS
SMSGHJS uses JavaScript Standard Style
The Standard JavaScript SDK for SMSGH API.
Still in development. You can check out the code and give reviews. I would appreciate that a lot. If there is any particular functionality you would like me to add just open an issue and I would check it out.
Check out the smsgh developers portal to see all the related API. It includes support for the Unified Services Payment, MESSAGING and TOP UP of the SMSGH API.
Documentation
SMSGHJS
instance
Create an var SMSGH = ; // get `clientId` and `clientSecret` from SMSGH// `topupApiKey` is optional// `uspToken` is optionalvar sms = clientId: clientId clientSecret: clientSecret topupApiKey: topupApiKey uspToken: uspToken sms
TOPUP
NOTE: The topup functionality will be deprecated soon. The same functionality is provided in the USP.
If you provided the topupApiKey
when you were initialising sms
, then the top up API will be made available.
smstopUp
SMS API
This section shows how to use the SMS API
var Message = SMSGHMessagevar newMessage = from: 'Me' to : '233272271893' content: 'Hello World' smsmessaging // Send a quick messagesmsmessaging // Send a scheduled messagevar scheduledMessage = from: 'Me' to : '233272271893' content: 'Hello World' time: '2014-01-01 10:00:00'smsmessaging // Get the details of a message// Provide `messageId` as first argumentsmsmessaging // Query the message APIsmsmessaging // Reschedule a messagesmsmessaging // Cancel a messagesmsmessaging
USP API
Docs coming up soon....
Made with ❤ by Eugene Asiedu in Ghana.