Skip to content

Instantly share code, notes, and snippets.

@typpo
Created September 10, 2019 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save typpo/9457886a7f86df013597b412af039829 to your computer and use it in GitHub Desktop.
Save typpo/9457886a7f86df013597b412af039829 to your computer and use it in GitHub Desktop.
Textbelt node example
var request = require('request');
request.post('https://textbelt.com/text', {
form: {
phone: '5555555555',
message: 'Hello world',
key: 'textbelt',
},
}, function(err, httpResponse, body) {
if (err) {
console.error('Error:', err);
return;
}
console.log(JSON.parse(body));
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment