Exemple API SMS 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 app.smsup.ch/developers/api-tokens
			text='Test bash'
			to='41781234567'
			sender='Bash'

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