semaphore-client
v0.0.8
Published
Unofficial NodeJs SDK for the Semaphore SMS https://semaphore.co/docs
Downloads
30
Readme
Semaphore SMS client
Unofficial NodeJs SDK for the Semaphore SMS https://semaphore.co/docs
How to use
import { lookUpAccount } from 'semaphore-client';
import { lookUpSms } from 'semaphore-client';
import { sendSms } from 'semaphore-client';
lookUpAccount()
lookUpSms()
sendSms({
apikey: <YOUR-API-KEY>,
number: <MOBILE-NUMBER>,
message: <YOUR-MESSAGE>,
sendername: <YOUR-SENDER-NAME>,
})
Just make sure you have your: APIKEY
SEMAPHORE_API_KEY=<YOUR-KEY>
SEMAPHORE_URL=https://api.semaphore.co/api/v4
Methods you can use
- sendSms() = Send SMS
- lookUpAccount() = Checks you account information
- lookUpSms() = Checks SMS status
Author
Jeff Simons Decena