【问题标题】:Performing OAUth Authentication within android在 android 中执行 OAUth 身份验证
【发布时间】:2012-08-16 01:16:47
【问题描述】:

我已尽可能多地扫描了有关此的信息并发现了此

WARNING:Google Play services is required to compile and run this sample. It will launch soon. Please check on https://developers.google.com/android/google-play-services for more details. For now, we have provided a dummy google-play-services.jar that only compiles the sample but will not run correctly.

Android application registration: You first need to register your Android application and sign up for access to the Google Calendar API in the Google APIs Console. First, you need the "Signing certificate fingerprint (SHA1)" for the debug and release builds:

我想知道这是否可用,如果没有,我还有另一种方法可以有效地访问 google API。此外,如果我能获得非常好的逐步资源来完成此任务,我将不胜感激。 并且请下载的示例代码不起作用,我尝试了几次无济于事。还是使用旧版本更好还是使用客户端登录。

谢谢。

【问题讨论】:

    标签: java android oauth google-play-services


    【解决方案1】:

    很遗憾,Google Play Services API 尚不可用。您可以使用这些 API 查看一些 sample code,但您将无法运行它们,因为您需要在手机上安装这些服务。

    与此同时,您可以使用 AccountManager 检索匿名 OAuth 2.0 令牌,如此 blog post 中所述;但请记住,使用此技术不适用于 Google Drive API,因为不再支持 ?key= 查询参数。

    【讨论】:

    • Google Play 服务现已推出
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-02-02
    • 2011-09-09
    • 1970-01-01
    • 2016-09-07
    • 2018-07-10
    • 2011-09-17
    • 1970-01-01
    相关资源
    最近更新 更多