Tag: google authentication

如何使用OAuth2.0访问Google Feed(Reader)?

我想使用OAuth2.0访问Google Feed。 我使用google-oauth-java-client获取访问令牌。 如何使用它来访问feeds API? 我引用了dailymotion-cmdline-sample ,并将SCOPE更改为http://www.google.com/reader/api以获取凭据。 它返回: 401 Unauthorized You must be signed in to access this stream. 我不知道出了什么问题…… 我还阅读了一些post,显示OAuth2.0可以完成这项工作,但它们对我来说不够详细: 仅对Google OAuth 2.0令牌具有读取权限? 使用Google阅读器API 使用OAuth2 access_token访问Google阅读器订阅

Google ClientLogin身份validation

我尝试使用ClientLogin进行身份validation URL url = new URL(“https://www.google.com/accounts/ClientLogin”); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setDoOutput(true); connection.setRequestMethod(“POST”); connection.setRequestProperty(“Email”, “testonly%2Ein%2E2011%40gmail%2Ecom”); connection.setRequestProperty(“Passwd”, “mypass”); connection.setRequestProperty(“accountType”, “HOSTED”); connection.setRequestProperty(“service”, “apps”); connection.connect(); 但我得到Error=BadAuthentication 。 我该如何纠正我的代码?

谷歌+域名API快速启动java无法正常工作

我正在尝试使用Google +中提供的域API,我正在尝试使用域范围委派快速启动java我已按照步骤操作,我也请求我的域管理员授予对我创建的项目的访问权限在控制台中,恢复我可以编译java文件,但是当我运行时,我得到一个404错误,这里是代码: /* * Copyright 2013 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the “License”); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law […]