FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
278 views 0 comments
by anonymous
Hi

I got a RUT950 with the latest FW.

Is it possible to also send e HTTP Header with the request?

I want to use it to redirect SMS to a Threema Group Chat, but that needs the API Key in the header.

The use case is to redirect all received sms to a threema group chat. To use the Threema API I have to send POST request like this:

curl -X POST -H 'X-Api-Key: AAAABBBBBCCCCCCDDDDDEEEEEE' -d '{"type": "text", "body": "THE MESSAGE"}' 'https://broadcast.threema.ch/api/v1/identities/BCID/groups/GROUPID/chat'

Regards

1 Answer

0 votes
by anonymous
Hi,

Unfortunately, the SMS gateway "SMS FORWARDING TO HTTP" feature does not allow adding the requested header. However, you could try to write a custom script that reads and filters (if needed) the incoming messages and send the required POST request to the API.

To develop the script, you may find helpful the following information in the links below:

GSMCTL commands:

https://wiki.teltonika-networks.com/view/Gsmctl_commands#SMS_management_options

Crontabs:

https://wiki.teltonika-networks.com/view/Crontabs

I hope you find this information helpful in solving your query.

Regards.