在Android中使用谷歌API的使用OAuth 2.0 [英] Using the Google APIs with OAuth 2.0 in Android

查看:187
本文介绍了在Android中使用谷歌API的使用OAuth 2.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近发现从谷歌一个很有趣的服务它提供了访问谷歌API的各种谷歌服务,如巴斯,地方,纬度等等。我可以成立一个项目出现,并为Web应用程序(通过OAuth2.0)和本机应用程序的API访问。 我想用本机API为我的Andr​​oid应用程序。它的API给了我的客户端ID,客户端秘密和重定向的URL。在我的Andr​​oid应用程序如何使用这些,说访问巴兹? 任何示例应用程序,代码段可用?

I recently found a very interesting service from Google which provides to access to Google APIs for various Google Services like Buzz, Places, Latitude etc. I could set up a project there and create API access for web applications (via OAuth2.0) and native applications. I wanted to use the native API for my Android app. It API gives me Client ID, Client Secret and redirect URL. How do I use these in my Android Application, say to access Buzz? Any sample apps, snippets available?

推荐答案

试试这个页面:的谷歌的API客户端库的Java

您可以看到很多的样品在这里:的 HTTP://$c$c.google.com/p/google-api-java-client/source/browse/回购=采样

You can see a lot of samples here: http://code.google.com/p/google-api-java-client/source/browse/?repo=samples

这篇关于在Android中使用谷歌API的使用OAuth 2.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆