Hello, Take a look at the JSON output format for google data APIs: http://code.google.com/apis/gdata/json.html#Samples
There is an example at the bottom of that page which gets the length of feed.entry via feed.entry.length in the for loop. This would be the total number of entries retrieved in the feed. If you code your query right, each entry would represent a single event- I would add the singleevents=true query param to represent individual instances of recurring events as a separate entry --- see below: http://www.google.com/calendar/feeds/pifdXXXXXXXXXXXmaas8v8250%40group.calendar.google.com/public/full?start-min=2007-03-05&start-max=2007-03-06&singleevents=true You can also take a look at this JSON sample: http://code.google.com/apis/gdata/samples/cal_sample.html Note: There is no way to get simply a count back from the API. You'll have to get the list and then count them up as discussed above. Also, there are some issues re all-day events and timezones that we have a bug filed to fix-- this could throw your count off if you have both all-day and timed events (all-day events are being interpreted in the wrong timezones). Cheers, -Ryan On Apr 4, 9:35 am, "davidex" <[EMAIL PROTECTED]> wrote: > Hello, > I am searching for a solution to achieve this task *in Javascript* : > > I have the full url of my google calendar under the following format, > with a start date and end date. > "http://www.google.com/calendar/feeds/pifdXXXXXXXXXXXmaas8v8250%40grou..." > > How can I retrieve the number of events present in my google calendar > in this slice of time, coded in javascript ? > > Many Thanks to all. > D. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Calendar Data API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-calendar-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
