Exemplo n.º 1
0
        public RequestAuthToken GetRequestAuthToken(string successUrl, string errorUrl)
        {
            HttpWebRequest   request          = AccountsRequestBuilder.ConstructAuthTokenRequest(apiKey, successUrl, errorUrl);
            RequestAuthToken requestAuthToken = ProcessBodylessRequest(request).ToObject <RequestAuthToken>();

            return(requestAuthToken);
        }
Exemplo n.º 2
0
        public void TestGetRequestAuthToken()
        {
            RequestAuthToken requestAuthToken = client.GetRequestAuthToken("https://m.bol.com/nl/", "https://m.bol.com/nl/error/");

            Assert.IsNotNull(requestAuthToken.Code);
            Assert.IsNotNull(requestAuthToken.PrivateToken);
            Assert.IsNotNull(requestAuthToken.Url);
        }