书面形式向谷歌驱动器■preadsheet [英] writing to Google Drive spreadsheet

查看:182
本文介绍了书面形式向谷歌驱动器■preadsheet的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读到有关谷歌云端硬盘API,谷歌API的床单,和其他人吨,但所有的版本随时都在变化我不明白,我应该用什么...

I read tons about the Google Drive API, Google Sheets API, and others, but with all the versions changing all the time I didn't understand what I should use...

我有一个Android应用程序,以及所有我想要做它来写文本到现有的谷歌驱动器■preadsheet。

例如:只要有一个EditText上,我可以把文本,并把它在S preadsheet特定的细胞

Example: Just have a edittext where I can put text and put it in a specific cell in the spreadsheet.

在S preadsheet是与某些人共享文件夹中,我希望用户输入邮件地址,比(后我请确保该文件夹与他分享)可以写入该文件夹在S preadsheets。

The spreadsheet is in a folder that is shared with some people, and I want the user to enter a mail address and than (after I make sure that the folder is shared with him) can write to the spreadsheets in the folder.

另外检索的文本是必要的。

Also retrieving text from the spreadsheets is needed.

没有任何人有任何的Andr​​oid做这方面的经验?

Does anybody have any experience doing this in android??

谢谢!

推荐答案

根据我们交换意见:结果
结果
你看: Android的 - 谷歌小号preadsheet阿比其中提到3项目:结果
谷歌云端硬盘API: https://developers.google.com/drive/ 结果
是创建A S preadsheet。您可能不需要,如果您使用的是现在的S preadsheet。结果
结果
谷歌小号preadsheet API: https://developers.google.com/谷歌 - 应用程序/ S preadsheets / 结果
读取/写入到S preadsheet结果
结果
谷歌API Java客户端: HTTP://$c$c.google .COM / p /谷歌API-Java的客户端/ 结果
包装在方便使用的库的API。否则,使用原始HTTPS直接调用。结果
结果
对于认证,您将需要的oauth2。看样品在android系统做了谷歌+按钮登录。结果
https://developers.google.com/+/mobile/android/sign-in 结果
一旦你有一个用正确的范围会(S preadsheets,也许驱动器),该库会给你访问令牌,你需要调用在S preadsheets客户端库。搜索

Based on the comments we exchanged:

you looked at: Android - Google Spreadsheet Api which mentions 3 items:
Google Drive Api : https://developers.google.com/drive/
is for creating a spreadsheet. you might not need that if you are using an existing spreadsheet.

Google Spreadsheet Api: https://developers.google.com/google-apps/spreadsheets/
reads/writes to the spreadsheet

Google APi java client: http://code.google.com/p/google-api-java-client/
Wraps the api in a library for easy usage. Otherwise use the raw https calls directly.

For authentication you will need oauth2. Look at the samples for doing a google+ button login in android.
https://developers.google.com/+/mobile/android/sign-in
Once you have that going with the correct scopes (spreadsheets and maybe drive), that library will give you the "access token" you need to call the spreadsheets client library.

这篇关于书面形式向谷歌驱动器■preadsheet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆