新的Google API集可以在Android中与客户端库一起使用,并且可以使用进行身份验证
OAuth1.0 OAuth2.0的 客户端身份验证(android)。有人可以使用GoogleAccountManager类向我展示客户端身份验证的示例吗? 我不能让一个人工作。
此外,当我使用OAuth2.0并使用像buzz-sample:///这样的重定向网址时,并向Manifest添加一个intent过滤器
<intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="buzz-sample" /> </intent-filter>它在浏览器invalid-request中抛出一个错误:redirect_uri的参数值无效:缺少权限:buzz-sample:///
错误400
任何帮助,将不胜感激。
The new set of Google APIs could be used in Android with the Client Library and can be authenticated using
OAuth1.0 OAuth2.0 Client Authentication (android).Can someone show me an example of Client Authentication using GoogleAccountManager class? I can't get one working.
Also when I use OAuth2.0 and use a redirect URL like buzz-sample:/// and add an intent filter to the Manifest like
<intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="buzz-sample" /> </intent-filter>It throws an error in the browser invalid-request: Invalid parameter value for redirect_uri: Missing authority: buzz-sample:///
Error 400
Any help would be appreciated.
最满意答案
这里有一个很好的例子,应该做你想要的。 http://code.google.com/p/google-api-java-client/source/browse/buzz-v1-json-oauth2-android-sample/?repo=samples
这是一个小代码片段,演示了如何使用AccountManager#getAuthToken来获取AccessToken: http ://chiarg.com/?p = 429
There's a pretty good example here that should do what you want. http://code.google.com/p/google-api-java-client/source/browse/buzz-v1-json-oauth2-android-sample/?repo=samples
Here's a small code snippet demonstrates how to use AccountManager#getAuthToken to get an AccessToken: http://chiarg.com/?p=429
是否有针对Android的Google Buzz API(实验室)的任何实际示例?(Is there any working example of Google Buzz API (Labs) for Android?)新的Google API集可以在Android中与客户端库一起使用,并且可以使用进行身份验证
OAuth1.0 OAuth2.0的 客户端身份验证(android)。有人可以使用GoogleAccountManager类向我展示客户端身份验证的示例吗? 我不能让一个人工作。
此外,当我使用OAuth2.0并使用像buzz-sample:///这样的重定向网址时,并向Manifest添加一个intent过滤器
<intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="buzz-sample" /> </intent-filter>它在浏览器invalid-request中抛出一个错误:redirect_uri的参数值无效:缺少权限:buzz-sample:///
错误400
任何帮助,将不胜感激。
The new set of Google APIs could be used in Android with the Client Library and can be authenticated using
OAuth1.0 OAuth2.0 Client Authentication (android).Can someone show me an example of Client Authentication using GoogleAccountManager class? I can't get one working.
Also when I use OAuth2.0 and use a redirect URL like buzz-sample:/// and add an intent filter to the Manifest like
<intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="buzz-sample" /> </intent-filter>It throws an error in the browser invalid-request: Invalid parameter value for redirect_uri: Missing authority: buzz-sample:///
Error 400
Any help would be appreciated.
最满意答案
这里有一个很好的例子,应该做你想要的。 http://code.google.com/p/google-api-java-client/source/browse/buzz-v1-json-oauth2-android-sample/?repo=samples
这是一个小代码片段,演示了如何使用AccountManager#getAuthToken来获取AccessToken: http ://chiarg.com/?p = 429
There's a pretty good example here that should do what you want. http://code.google.com/p/google-api-java-client/source/browse/buzz-v1-json-oauth2-android-sample/?repo=samples
Here's a small code snippet demonstrates how to use AccountManager#getAuthToken to get an AccessToken: http://chiarg.com/?p=429
发布评论