12 lines
325 B
Plaintext
12 lines
325 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 = (printf '%s?user=%s&pass=%s&msg=%s' $api $param[user] $param[password] $msg)
|
|
#put $url
|
|
e:curl $url
|
|
}
|