3 ms·
I have a shell login canary that uses the twilio API to send me an SMS: ~/.login contains the line: /usr/local/sbin/sms ... ... where 'sms' calls the twilio
by rsync 4y ago
I have a shell login canary that uses the twilio API to send me an SMS:
~/.login contains the line:
/usr/local/sbin/sms ...
... where 'sms' calls the twilio API like this:
/usr/local/bin/curl -s -X POST -d "Body=$msg" -d "From=$from" -d "To=$to" "https://api.twilio.com/2010-04-01/Accounts/$accountsid/Messages" -u "$accountsid:$authtoken"