12 lines
306 B
Plaintext
12 lines
306 B
Plaintext
edit:add-var sendsms~ [@argv]{
|
|
use str
|
|
|
|
var api = https://smsapi.free-mobile.fr/sendmsg
|
|
var param = (cat $E:HOME/.config/elvish/private/freesms.json | from-json)
|
|
var msg = (str:join '%20' $argv)
|
|
|
|
var url = $api'?user='$param[user]'&pass='$param[password]'&msg='$msg
|
|
#put $url
|
|
curl $url
|
|
}
|