Exemplo n.º 1
0
 /**
  * @inheritdoc
  *
  * Configure the URL with Body since Payload is sent via Query String
  */
 public function send()
 {
     $body = '';
     if (!empty($this->body)) {
         $body = "?" . $this->body;
     }
     $this->setURL($this->url . $body);
     return parent::send();
 }
Exemplo n.º 2
0
 /**
  * JSON Encode Body
  * @inheritdoc
  */
 public function setBody($body)
 {
     return parent::setBody(json_encode($body));
 }