예제 #1
0
파일: Client.php 프로젝트: Rhenan/teamwork
 /**
  * Response
  *
  * this send the request from the built response and
  * returns the response as a JSON payload
  */
 public function response()
 {
     $this->response = $this->client->send($this->request);
     return $this->response->json();
 }
예제 #2
0
 /**
  * Response
  *
  * this send the request from the built response and
  * returns the response as a JSON payload
  * returns an array?
  */
 public function response()
 {
     $this->response = $this->client->send($this->request);
     return array_merge($this->response->json(), ['records' => $this->response->getHeader('x-records'), 'pages' => $this->response->getHeader('x-pages'), 'page' => $this->response->getHeader('x-page')]);
     //return $this->response->json();
 }