wanasit / google-calendar

Google Calendar API connection in Node.js
MIT License
230 stars 54 forks source link

How to get the updated Events? #10

Closed TheRiseOfNewEra closed 10 years ago

TheRiseOfNewEra commented 10 years ago

Hi Wanasi, I am trying to get the update events but now able to pass orderby value as it is string.

Will you please tell me how to pass this value so the api return me the updated events?

Thanks for the help

wanasit commented 10 years ago

Sorry for the delayed response.

You can pass orderly as an optional parameter to events.list function

var gcal = google_calendar(access_token);
gcal.events.list(calendar_id, { orderBy : 'updated', maxResults: 1 }, function(err, result) {

})