예제 #1
0
        public IObservable<Unit> TestUserNameAndPassword()
        {
            var client = new RestClient("https://api.github.com");
            client.Authenticator = new HttpBasicAuthenticator(User, Password);

            return client.RequestAsync<GitHubUser>(new RestRequest("user"))
                .Do(res => this.Log().Info("User's URL: {0}", res.Data.url))
                .Select(_ => Unit.Default);
        }