【问题标题】:Using Google Contacts API with titanium将 Google Contacts API 与钛一起使用
【发布时间】:2023-03-07 20:16:02
【问题描述】:

我是钛的新手,正在尝试使用 Google Contact API 创建联系人目录。我已经阅读了它,但没有看到太多有用的例子。我知道我需要身份验证,但我似乎不知道从哪里开始。任何帮助表示赞赏。

【问题讨论】:

    标签: titanium appcelerator titanium-alloy appcelerator-titanium


    【解决方案1】:

    您可能已经知道其中的一些,但这里是其他人的粗略概述和您问题的答案(感谢任何帮助)。

    您需要先创建一个 (Google) 帐户并注册您的项目/应用程序,以便请求非公开用户数据。请求必须包含访问令牌。该令牌还会向 Google 识别您的应用程序。

    为了验证用户/应用程序:
    您需要Use OAuth 2.0 to authorize requests. You must register your project in the Google API Console and enable the Contacts API service in order to use OAuth 2.0.

    要在 Titanium 应用中实现 OAuth 协议,您可以按照此博文中的示例/教程进行操作:
    OAuth Login for Titanium

    【讨论】:

      猜你喜欢
      • 2021-03-09
      • 2015-09-07
      • 1970-01-01
      • 2014-03-04
      • 2012-09-12
      • 2014-11-25
      • 2016-11-06
      • 1970-01-01
      • 2015-03-04
      相关资源
      最近更新 更多