I created a Web API server. I can use the program POSTMAN to create a POST and see that the new data is in my SQL database.
In POSTMAN, I can click on “code button” to get the request that POSTMAN sent to my Web API. (In my example I have changed the url)
POST /api/trails HTTP/1.1
“traillName”: “Holo Trail”,
I went into my Hologram Dashboard and setup a WebHook. I took a screen shot of my WebHook and will add here as a photo.
In the Hologram Dashboard, I called the webhook – myTrail
I have looked through the Community forums and through the Hologram docs to see if I could find an Arduino example of how to call the webhook and add the appropriate json data. Is there an webhook example in the docs for Arudino code?
(Note - I have a SIM808 and an Arduino UNO. I have downloaded the arduino library Hologram-SIM and have successful run the Kitchen sink example program.)
After posting, I did find a webpage - Step by step example
In the above webpage, his Hologram webhook is called Ubidots Route, but in his code I don’t see where he does anything to call that route. He just has the following code.
/* Send JSON data to Hologram’s Cloud */
How does his program know to use the correct route?