Exemplo n.º 1
0
        // Fetches a new Access Token using the credentials from the client

        //private com.amadeus.Response fetchAccessToken() throws com.amadeus.exceptions.ResponseException
        private Response FetchAccessToken()
        {
            Configuration config = client.Configuration;

            return(client.UnauthenticatedRequest(Constants.POST, Constants.AUTH_URL, Params.With(Constants.GRANT_TYPE, Constants.CLIENT_CREDENTIALS).And(Constants.CLIENT_ID, config.ClientId).And(Constants.CLIENT_SECRET, config.ClientSecret), null));
        }