Re: REST API in 2.x (authenticate for some actions, etc)

2012-10-22 Thread Ivan Rimac
you can use cURL for simulating post requests: $data = 'data[User][token]=87f77a583929c700119878128dc108bd62ca7772'; $data .= '&data[Ride][start_address]=Osijek, Croatia'; $data .= '&data[Ride][end_address]=Pula, Croatia'; $ch = curl_init('http://domain.com/controller/action.json'); curl_setopt(

REST API in 2.x (authenticate for some actions, etc)

2012-10-22 Thread Zap
Hi everyone. The webfront of my website is ready, but I want to give access to core functions via an API. Thing is, for public data (like juse rinfo and such), I already used request handler to have json or XML special views, so I guess that's ok. But, I was wondering how to achieve POST actio