Sending POST data to an API in PHP
Had a fairly eventful day building an API teamed with a bespoke Codeigniter-driven content management system, and fell into a few problems when POST’ing information from the CMS to my web service. I’ve put together a quick + dirty function that’ll get you started, and I’ll publish a more in-depth post later, with a dedicated Codeigniter library.
Read post