I am building an API using Codeigniter and Phils RESTServer. I want to send a bounch of email addresses to the API (best in JSON format).
How can I do this? How can I "receive" and "use" the JSON object that is sent to the server?
Right now I can send and receive parameters like this:
[email protected]
and I receive and use them like this:
$this->post('email')
I want to send and receive in this format instead
{"email":"[email protected]"}
How can I achieve this and how can I use the object?
UPDATE: I at least need to be able to send a normal array to the RESTserver.
Thankful for all input!