Full format of POST request to Photon function

Any reason against using the javascript SDK, which was made to do these exact things?
https://docs.particle.io/reference/javascript/#callfunction

There's always this (amazing) tutorial if you're keen on doing it manually:

Considering you're suing Node.js, and there's a library written for it, I'd suggest using that though...

2 Likes