Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create Task using Google Calendar API

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

like image 520
Preeti Avatar asked Mar 15 '10 07:03

Preeti


People also ask

Can you make tasks on Google Calendar?

From your computer or mobile device, you can create, view, and modify tasks in Google Calendar. Important: Only you can view Tasks in your Google Calendar. They won't appear to other users with access to your Calendar.

Can you add tasks to Google Calendar app?

You can now create and view tasks in Google Calendar on Android and iOS. Previously, you could only do this in Calendar on the web. Adding tasks to your calendar keeps to-do's visible and allocates time for you to accomplish them, helping you accomplish what's important.

Does Google Tasks have an API?

The Google Tasks API lets you search, read, and update Google Tasks content and metadata. This document describes how to use a RESTful calling style and client libraries for various programming languages (currently Java, Python, and PHP) to access and edit Google Tasks data.


1 Answers

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.

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.

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.

Good luck!

UPDATE (5/26/2011) - There is a new Google Tasks API, released just a few weeks ago. Here are the docs. Good luck!

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

like image 123
Maxim Zaslavsky Avatar answered Sep 23 '22 06:09

Maxim Zaslavsky