Exemple Bash

Voici un exemple de code bash simple qui vous permet d'envoyer un message unitaire.


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

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