3:47 pm

June 17, 2019

Hi there!
To send data to an external REST API, I need to create the following URL:
https://somewebsite.com/api.json?key=123&value1=22&valueb=99
whereas actually it should read like
https://somewebsite.com/api.json?key=123&value1=%%channelxxxx_field1%%&valueb=%%channelxxxx_field2%%
Now my question is - how do I do that? When I try to enter the URL as above, ThingHTTP tells me I must enter a valid URL. If I add those as a header parameters, obiously the value are in the header but not in the URL. The same goes for the body.
What am I doing wrong?
This is so obvious and easy, there must be a way surely, right?!
Thanks
Andreas
8:26 am


Moderators
March 7, 2017

4:14 pm

June 17, 2019

cstapels said
I would recommend you use a MATLAB analysis to build the URL, and then webwrite() to trigger the action.
I will look into the replacement keys in the ThingHTTP body, I was also having some trouble with them recently.
Hi cstapels,
thanks for your reply!
This sounds very complicated to me for such an easy thing 🙂 As a newbie, for me this feature is so obvious, that I could not believe it is not working.
At the moment I found a workaround via IFTTT - I just send the data via json in the body and IFTTT then makes the webhook URL with the parameters in the URL out of the JSON, but obviously in an ideal world this step would be unnecessary.
Thanks
Andreas
Most Users Ever Online: 166
Currently Online:
33 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
rw950431: 272
Vinod: 240
piajola: 95
turgo: 70
vespapierre: 63
Adarsh_Murthy: 62
Member Stats:
Guest Posters: 1
Members: 8665
Moderators: 1
Admins: 2
Forum Stats:
Groups: 3
Forums: 14
Topics: 1600
Posts: 5760
Newest Members:
huldacormier, bogart, estebanmateo93, mikewrite, onlinebusiness, winzy99Moderators: cstapels: 460
Administrators: Hans: 405, lee: 457