1
我在Windows Phone 7.5应用程序的Google身份验证期间收到404-未找到错误。在使用oAuth和RestSharp在C#中进行WP登录时出现404错误
public void login()
{
var cli = new RestClient("https://accounts.google.com/o/oauth2/auth");
cli.Authenticator = new HttpBasicAuthenticator(user, password);
var request = new RestRequest("token", Method.POST);
cli.ExecuteAsync(request, response =>
{
MessageBox.Show(response.Content);
});
}
我给了有效的登录凭证,但它显示的响应为404-NotFound。可以请帮我解决这个问题
感谢
感谢您的回复。我经历了两个文档。在成功登录后,他们访问用户配置文件。在我的情况下,我不想访问用户的个人资料。只是我需要验证凭据,成功凭证我会继续我的应用程序。否则我不会允许他们..这是我的场景.. – 2012-07-31 04:09:03