使用带有钛的Google Contacts API

时间:2016-10-07 17:36:44

标签: titanium appcelerator titanium-alloy appcelerator-titanium

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

1 个答案:

答案 0 :(得分:0)

您可能已经了解其中的一些内容,但这里是其他人的广泛概述和您的问题的答案(感谢任何帮助)。

您需要创建一个(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