Porovnat verze

Klíč

  • Tento řádek byl přidán.
  • Tento řádek byl odstraněn.
  • Formátování bylo změněno.

...

curl -X GET "https://sms-api.voipex.io/SMS?startTime=2021-09-01T00%3A00%3A00.000%2B02%3A00&endTime=2021-10-01T00%3A00%3A00.000%2B02%3A00" -H "accept: application/json" -H "Authorization: Bearer eyJhbGci...Oi5c"

Sending instant SMS

Another option for sending SMS without mobile numbers is sending through central restapi. For authentication get bearer token:

https://ipexas.atlassian.net/wiki/spaces/VD/pages/626720808/Getting+Started+with+the+API+PBX#Working-with-IPBX-API.

With this token use route POST /v1/SMS:

Blok kódu
curl -X 'POST' 'https://restapi.ipex.cz/v1/sms' \
  -H 'accept: application/json' -H 'Content-Type: application/json' \
  -d '{
  "from": "222333444",
  "to": "777888999",
  "message": "Message text",
  "email": "delivery@yourdomain.com"
}'

Where 222333444 is some number from your trunk (will be used to billing), 777888999 is target number and email is used for delivery notification. On target phone SMS will have sender number 60030. Alternatively, when you have registered your own sender name, you can pass argument “shortname“ with that name.