SMS Api, phone in URL?

Kjetil Pedersen2 years ago

How can i get the phone in URL field?

<entry key='sms.http.url'>https://myurl.jasper.com/rws/api/v1/devices/"{phone}"/smsMessages</entry>
<entry key='sms.http.user'>Test</entry>
<entry key='sms.http.password'>MyPassword</entry>
<entry key='sms.http.template'>
    {
        "messageText": "{message}"
    }
</entry>
Kjetil Pedersen2 years ago

Here are example from JasperWireless

curl -X POST --header "Content-Type: application/json" --header "Accept: application/json" --header "Authorization: Basic <YOUR-ENCRYPTED-CREDENTIALS>" -d "{
   \"messageText\": \"Hello world\"
}" "https://<YOUR-BASE-URL>/rws/api/v1/devices/PHONE/smsMessages"

As you can see, i need phone in url.

Anton Tananaev2 years ago

Placeholders are not supported in the URL.