用.net程序实现向docs.google写数据

用.net程序实现向docs.google写数据
在找IMC的资料时,无意中发现这个有趣,就记下来,自己写程序实现命令行方式,写内容到docs.google.com(很好用的google在线office系列服务,免费的),以下是文字介绍,还有源码下载。英文水平菜,所以,就不翻译了。更多请访问 www.123de6.cn

这是原文URL
http://www.dnnstuff.com/Download/tabid/298/view/topic/postid/1116/forumid/20/Default.aspx

I put this together quickly to use with SlickRun so I could maintain a log file of things I've done throughout the day. I couldn't find a lot of good samples on how to use the Google API. Both the binaries and the source is included in separate zips. Enjoy.

 

Quick start
-------------
1. Sign up with Google Docs at http://docs.google.com
2. Create a new spreadsheet, add two columns named 'Date' and 'Item', save spreadsheet as 'Log'

Run from the command line using the following syntax:

GoogleSpreadsheetLog -u "username" -p "password" -item "item to log"


Optional command line parameters
--------------------------------
-ss "spreadsheet"            [if you want to override the default spreadsheet name of 'Log']

-ws "worksheet"              [if you want to override the default worksheet name of 'Sheet1']

-datecol "date columnname"   [if you want to override the default date column name of 'date']

-itemcol "item columnname"   [if you want to override the default item column name of 'item']

--debug                      [turns on debugging mode and outputs some additional items to the console]


Examples
--------

GoogleSpreadsheetLog -u "me@google.com" -p "blah" -item "This is a test"
- logs into google docs as me@google.com with password 'blah', logs item named "This is a test" in 'Log' spreadsheet, Sheet1 worksheet

GoogleSpreadsheetLog -u "me@google.com" -p "blah" -item "This is a test" -ss "Daily Log"
- logs into google docs as me@google.com with password 'blah', logs item named "This is a test" in 'Daily Log' spreadsheet, Sheet1 worksheet

GoogleSpreadsheetLog -u "me@google.com" -p "blah" -item "This is a test" -ss "WhenWhatLog" -datecol "When" -itemcol "What"
- logs into google docs as me@google.com with password 'blah', logs item named "This is a test" in 'WhenWhatLog' spreadsheet, Sheet1 worksheet with columns named "When" for date and "What" for the item

Attachment: GoogleSpreadsheetLog_SOURCE.zip
Attachment: GoogleSpreadsheetLog.zip
Richard Edwards
DNNStuff Founder 

posted on   公众号73只蚂蚁  阅读(346)  评论(0编辑  收藏  举报

编辑推荐:
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
阅读排行:
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· Ollama——大语言模型本地部署的极速利器
· [AI/GPT/综述] AI Agent的设计模式综述

导航

< 2008年1月 >
30 31 1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31 1 2
3 4 5 6 7 8 9
点击右上角即可分享
微信分享提示