Ejemplo n.º 1
0
 /**
  * @param string $username
  *
  * @return \Github\Entities\User
  */
 public function user($username)
 {
     $url = $this->base . '/users/' . $username;
     $response = $this->adapter->sendRequest(new Request('GET', $url));
     $body = (string) $response->getBody();
     return User::create(json_decode($body, true));
 }