/** * 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; }
/** * Returns a list of projects for the currently authenticated user. * * @return object */ public function getProjects() { return json_decode($this->client->get("/projects")); }
/** * Returns a list of projects for the currently authenticated user. * * @return object */ public function getProjects() { return $this->processResponse($this->client->get("/projects")); }