Bob O'Brien
Bob O'Brien

Reputation: 1583

Partial GET request for Google Calendar html download

Hi I'm working on an Arduino project and I'd like to display the next event from a Google calendar on a small display. I want to know if there's a way to limit the size of a HTML request from Google. Right now when I do the request I'm getting my full calendar's data. This significantly slows down the time it takes to get the event. I tried using a GET request and Range bytes 1000-3000 but this doesn't seem to work. Does anyone know any workarounds for this without going through Oauth?

Upvotes: 1

Views: 227

Answers (1)

Rick Jolly
Rick Jolly

Reputation: 3019

You want the "maxResults" parameter and you may also like to limit the fields returned using the "fields" parameter as well. Check the events > list docs for details.

Upvotes: 1

Related Questions