0

I have an application where I am creating a Google Calendar and am adding a lot of events to it, all at once. It seems that the Google Calendar API doesn't allow me to add events to the calendar locally and then insert the calendar with a request, or add multiple events with a single request. So I have to usually make 40 requests in a loop to add all my events, which usually results in me getting a response of "rate limit exceeded"...

Is there any way I can achieve this?

thekuhninator
  • 53
  • 1
  • 4

1 Answers1

1

According to an answer from a quite similar post about Insert multiple calendar.events in google calendar(API), it is advised to use the Batch method to be able to add multiple events at once. However, I'm no expert on Swift nor knowledgeable enough on how to implement Batch method in Swift programming, but you can refer to the article.

Additionally, when you encounter a 403: Rate Limit Exceeded error, it is suggested to use the exponential backoff method. Alternatively, you may also check Resolve a 403 error: Daily limit exceeded.

SputnikDrunk2
  • 3,398
  • 1
  • 5
  • 17