[英]Using Google Contacts API with titanium
I am new to titanium and am trying to make a directory of contacts using Google Contact API. 我是Titan的新手,正在尝试使用Google Contact API创建联系人目录。 I have read up on it yet aren't seeing too many helpful examples.
我已经阅读了它,但没有看到太多有用的示例。 I know I need authentication yet I can't seem to figure out where to start.
我知道我需要身份验证,但似乎无法弄清楚从哪里开始。 Any help is appreciated.
任何帮助表示赞赏。
You may know some of this already but here's the broad strokes overview for others and an answer to your question (Any help is appreciated). 您可能已经知道其中一些内容,但这是其他内容的中风概述以及您的问题的答案(不胜感激)。
You need to create an (Google) account and register your project/application first in order to make requests for non-public user data. 您需要创建一个(Google)帐户并首先注册您的项目/应用程序,才能请求非公开用户数据。 The request must include an access token.
该请求必须包含访问令牌。 The token also identifies your application to Google.
令牌还会向Google标识您的申请。
In order to authenticate a user/application: 为了验证用户/应用程序:
You will need to Use OAuth 2.0 to authorize requests. 您将需要使用OAuth 2.0来授权请求。 You must register your project in the Google API Console and enable the Contacts API service in order to use OAuth 2.0.
您必须在Google API控制台中注册项目并启用Contacts API服务才能使用OAuth 2.0。
To implement the OAuth protocol in a Titanium app you can follow along with the sample/tutorial in this blog post: 要在Titanium应用程序中实现OAuth协议,您可以按照以下博客文章中的示例/教程进行操作:
OAuth Login for Titanium 钛金的OAuth登录
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.