When using the test API in Google's documentation for calendar.calendars.insert I always get back Invalid resource id value.
as a response when setting the request like this
{
"summary": "Events",
"description": "This is where you will keep your events",
"id": "test.events"
}
The documentation says that the id
can be any string as long as it doesn't have two consecutive dots and it is longer than 0 and shorter than 101.
What am I doing wrong? I would like to be able to set the id
so I don't have to store the id that has random characters in my database.
You don't set the calendar ID Google Assignes it a Calendar id.
I would assume a Calendar IDs is a primary key and there for must be unique. Google cant allow you to insert your own because then they would have to assume that every programmer bothered to check first that they didn't have one with that ID already.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With