public function getToken(string $login, string $pass): GetTokenResponse
    {
        $response = $this->request('GET', 'getToken', [
            'login' => $login,
            'pass' => $pass,
        ]);

        return $this->converter->getResponseObject(GetTokenResponse::class, $response);
    }
public function getToken(string $login, string $pass): GetTokenResponse
    {
        $response = $this->request('GET', 'getToken', [
            'login' => $login,
            'pass' => $pass,
        ]);

        return $this->converter->getResponseObject(GetTokenResponse::class, $response);
    }
public function getToken ( string $ login , string $ pass ) : GetTokenResponse { $ response = $ this -> request ( 'GET' , 'getToken' , [ 'login' => $ login , 'pass' => $ pass , ] ) ; return $ this -> converter -> getResponseObject ( GetTokenResponse :: class , $ response ) ; }
Get auth token.

@param string $login
@param string $pass

@throws ParseException
@throws ValidationException

@return GetTokenResponse
Get auth token .