hersh
1
Hello!
I’m having some trouble figuring out how to write the data to package a url string that publishes an event.
If I have
$ curl https://api.particle.io/v1/devices/events -d “name=hi” -d “data=Hello World” -d “private=true” -d “ttl=60” -d access_token=[TOKEN]
how would said url string look…
ScruffR
2
You mean to find a string that you could just enter into your browsers address bar and “navigate” there?
The short answer is: “You can’t”
Navigating a browser to a particular address (URL) is actually GETting you there (or rather GET the data from the respective server).
But in order to trigger a function execution you need to POST the order, but browsers don’t that.
You can search the forum here for POST and GET HTTP request or google what the difference is.