Ejemplo n.º 1
0
 /**
  * Returns the authentication token for the given username and password.
  *
  * @param string $username
  * @param string $password
  * @return string
  */
 public function getToken($username, $password)
 {
     return (string) simplexml_load_string($this->client->post('/tokens/active', http_build_query(array('username' => $username, 'password' => $password))))->guid;
 }
Ejemplo n.º 2
0
 /**
  * Returns a list of projects for the currently authenticated user.
  *
  * @return object
  */
 public function getProjects()
 {
     return json_decode($this->client->get("/projects"));
 }
Ejemplo n.º 3
0
 /**
  * Returns a list of projects for the currently authenticated user.
  *
  * @return object
  */
 public function getProjects()
 {
     return $this->processResponse($this->client->get("/projects"));
 }