Bash example

Here's a simple bash example that allows you to send an SMS to a single number.


#!/bin/bash
token='Your token' #Your first token must be created on secure.smsfactor.com/token.html
text='Test bash'
to='33600000000'
sender='Bash'

curl -H "Authorization: Bearer $token" -H "Accept: application/json" -X GET "https://api.smsfactor.com/send?text=$text&to=$to&sender=$sender"