Created
September 10, 2019 15:16
-
-
Save typpo/9457886a7f86df013597b412af039829 to your computer and use it in GitHub Desktop.
Revisions
-
typpo created this gist
Sep 10, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ 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)); })