private function execute() { $this->bind(); //$this->_state->set('apisecret',$this->apisecret); $this->path = str_replace('{GUID}', $this->_state->get('guid'), $this->path); $url = EZC_BASEURL . $this->path . '?apisecret=' . EZC_API_SECRET; $curl = new Sp4kAppsEasycollectCurl($url); $curl->setPost($this); $curl->createCurl(); $response = json_decode($curl->__toString()); $this->id = $response->ID; }
private function execute() { $this->bind(); //$this->_state->set('apisecret',$this->apisecret); $url = EZC_BASEURL . $this->path . '?apisecret=' . EZC_API_SECRET; $curl = new Sp4kAppsEasycollectCurl($url); $curl->setPost($this->_state->toArray()); $curl->createCurl(); $response = json_decode($curl->__toString()); if (isset($response->error)) { $this->_error = $response->error; } else { $this->guid = $response->ID; } }