/** * Post a collection of values to remote service * Method : push(String $action [, Array $parameters]) * Return : a JSON object, same structure as returned by Web Service **/ public function post($action, $parameters) { $url = $this->baseURL . '/' . (!!$this->version ? $this->version . '/' : '') . $action; $data = $this->merge($parameters); $response = Remote::push($url, $data); if (!!$response) { $ob = json_decode($response); if (!!$ob && is_object($ob)) { return $ob; } } return false; }