Exemplo n.º 1
0
 /**
  * Run API call to the webserver
  * @return object
  */
 public function get()
 {
     // Run parent for validation
     parent::get();
     $this->_response = $this->getHttpClient()->request('POST', $this->getMethodName(), ['form_params' => $this->getQuery()] + $this->getClient()->getHttpClientOptions());
     return $this;
 }
 /**
  * Run API call to the webserver
  * @return object
  */
 public function get()
 {
     // Run parent for validation
     parent::get();
     $this->_response = $this->getHttpClient()->request('GET', $this->getMethodName(), ['query' => $this->getQuery()] + $this->getClient()->getHttpClientOptions());
     // return an instance for chaining
     return $this;
 }