Reputation: 11
I have developed a script using the Google Calendar API for PHP that recovers the event data of a managed business account with GSUITE, it recovers practically all the data except the colorID and the creator-> displayName that delivers them in null.
I tested this same script with my personal gmail account and it recovers me absolutely everything.
What should I consider in this case?
Upvotes: 1
Views: 765
Reputation: 17631
This is the intended behavior. If you perform this API call on the events that you yourself have created, it will return the colorId and your creator. But if you didn't create the event, you wont have access to these properties.
Here's a sample response from my own event:
{
"colorId": "5",
"creator": {
"email": "[email protected]",
"self": true
}
Additional Note:
The creator.displayName isn't always available.
The creator's name, if available.
Upvotes: 1