1.0.4 • Published 3 years ago

@textgun/sms-api v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

textgun sms-api

This is the API to send and receive SMS text messages with textgun

This API currently works for USA and Canada phone numbers only.

You can get the username and password credentials from the textgun website.

const textgun = require('@textgun/sms-api')
const username = ''
const password = ''

SendSMS(username,password, "19179362841","Hello World!",(error,response,body) => {

 // if we have a problem login credentials 
 if ( response.statusCode == 401) {
    console.log(body)
}
    if (!error && response.statusCode == 200) {
        console.log(body);
    }
})
getNewSMS(username,password,(error,response,body) => {

 // if we have a problem login credentials 
 if ( response.statusCode == 401) {
    console.log(body)
}
    if (!error && response.statusCode == 200) {
        console.log(body);
    }
})
1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago