public function getPersonalToken($username, $password)
    {
        $response = $this->client->request('POST', $this->authorization_url(),
            [
                "auth" => [ $username, $password],
                "json" => $this->authorizationsRequestJson()
            ]
        );
        $response = json_decode($response->getBody());
        $this->tokenName = $response->app->name;
        return $response->token;
    }
public function getPersonalToken($username, $password)
    {
        $response = $this->client->request('POST', $this->authorization_url(),
            [
                "auth" => [ $username, $password],
                "json" => $this->authorizationsRequestJson()
            ]
        );
        $response = json_decode($response->getBody());
        $this->tokenName = $response->app->name;
        return $response->token;
    }
public function getPersonalToken ( $ username , $ password ) { $ response = $ this -> client -> request ( 'POST' , $ this -> authorization_url ( ) , [ "auth" => [ $ username , $ password ] , "json" => $ this -> authorizationsRequestJson ( ) ] ) ; $ response = json_decode ( $ response -> getBody ( ) ) ; $ this -> tokenName = $ response -> app -> name ; return $ response -> token ; }
Obtain personal token.

@param $username
@param $password
@return mixed
Obtain personal token .