Bash Beispiel

Hier ist ein Beispiel für einfachen Bash-Code, mit dem Sie ein Einzel-SMS senden können.


#!/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"