Skip to content

Instantly share code, notes, and snippets.

View vidyajejurkar's full-sized avatar

Vidya Jejurkar vidyajejurkar

View GitHub Profile
@ranjithkumar8352
ranjithkumar8352 / smsClient.js
Last active July 27, 2024 04:17
Send TextLocal SMS using Node.js
//This code was posted for an article at https://codingislove.com/send-sms-developers/
const axios = require("axios");
const tlClient = axios.create({
baseURL: "https://api.textlocal.in/",
params: {
apiKey: "YOUR API KEY", //Text local api key
sender: "6 CHARACTER SENDER ID"
}
@itswadesh
itswadesh / textlocal.js
Created December 17, 2016 14:21
Send sms using NodeJS from India (https://www.textlocal.in/)
var http = require('http');
var urlencode = require('urlencode');
var msg = urlencode('hello js');
var toNumber = 'TO_PHONE_NO';
var username = 'TEXTLOCAL_USER_EMAIL';
var hash = 'TEXTLOCAL_USER_HASH'; // The hash key could be found under Help->All Documentation->Your hash key. Alternatively you can use your Textlocal password in plain text.
var sender = 'txtlcl';
var data = 'username=' + username + '&hash=' + hash + '&sender=' + sender + '&numbers=' + toNumber + '&message=' + msg;
var options = {
host: 'api.textlocal.in', path: '/send?' + data
@staltz
staltz / introrx.md
Last active July 29, 2024 05:55
The introduction to Reactive Programming you've been missing