如何使用Google Calendar API创建任务 [英] How to create Task using Google Calendar API

查看:64
本文介绍了如何使用Google Calendar API创建任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用C#在Google日历中创建任务. 寻找一些示例代码.

I want to create Task in Google Calendar using Google Calendar API.Using C#. Looking for some sample codes.

推荐答案

不幸的是,Google日历中没有用于任务"功能的API.虽然Calendar Data API相当广泛,但Tasks团队尚未发布API.包括您在内的许多人都要求使用这样的API,但Google尚未采取任何措施来弥补这一空白. Data API组中有很多与此相关的帖子,例如.

Unfortunately, there is no API for the Tasks feature in Google Calendar. While the Calendar Data API is pretty extensive, the Tasks team hasn't released an API yet. Many people, including you, have requested such an API, but Google hasn't done anything to fill the gap yet. There are many posts on the Data API group about this, such as this one.

但是,Google可能会很快将其发​​布.在此之前,如果您确实需要使用任务",则必须进行屏幕抓取.换句话说,您必须研究GCalendar UI的工作原理,并模拟与之的交互.

However, Google might release one into the wild soon. Until then, if you really need to use Tasks, you're going to have to do screen-scraping. In other words, you have to investigate how the GCalendar UI works and mimic interaction with it.

有些人可能已经解决了这个问题,并创建了抓屏库.经过一番搜索之后,我还没有找到一个C#.如果您决定采用这种方法,请创建一个开放源代码库,以使其他想要完成此任务的人受益.

Some people have probably approached this problem and created screen-scraping libraries. After searching a little bit, I haven't found a C# one. If you do decide to take this approach, please create an open-source library for the benefit of others who want to accomplish such a task.

祝你好运!

更新(2011/5/26)-有一个新的Google Tasks API 文档在这里.祝您好运!

**更新(2014年6月25日):链接已断开文档链接;这是新的 Google App任务

**UPDATE (25jun2014): the link is broken to documentation; here is the new one Google App Tasks

这篇关于如何使用Google Calendar API创建任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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