简体   繁体   English

结合使用Google Contacts API和Titan

[英]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.

相关问题 Android:无法使用钛在联系人中添加jobTitle字段 - Android: Not able to add jobTitle field in Contacts using titanium Titanium_iphone联系人 - Titanium_iphone contacts 具有Titanium的Android的Google Places API自动完成功能 - Google Places API Autocomplete for Android With Titanium 使用Titan将视频上传到Google云存储 - video upload to google cloud storage using titanium 如何使用超级循环在Titanium Android中使用Google Maps API Utility Library中的PolyUtil.containsLocation方法 - How to use PolyUtil.containsLocation method from Google Maps API Utility Library in titanium android using hyper loop 与PayPal集成在此处使用Titanium Appcelerator(合金框架)中的sideloader API - Integrating with PayPal Here using the sideloader api in Titanium Appcelerator (alloy framework) 如何使用xmlrpc API中的方法使用javascript for titanium mobile访问网站? - How to access a site with javascript for titanium mobile using the methods in an xmlrpc API? 将使用Titanium开发的Android App部署到Google Play商店的步骤 - Steps in deploying Android App developed using Titanium to Google Play store 钛和谷歌云消息传递 - Titanium and google cloud messaging 钛移动和谷歌地图 - Titanium Mobile and Google Maps
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM