Posting data to a REST API

I am newbie to writing firmware for particle,
How do I post data to a REST API through firmware?

e.g. I want to periodically send data to a REST API hosted on
how to do this in firmware?


Take a look into webhooks:
Those will handle the hard parts in the cloud, taking away the strain from your devices.
If you really want to do it locally, there are some libraries available for that as well.

What’s the use case?

Hi Moors7,
It will be very good if you point me some libraries to do it locally.


Have a look at the HTTPClient library: