Google Calendar events empty

We collect Google calendar events through OAuth2 tokens with the Google Calendar API V3 for our customers, but for some of the customer calendar we get an empty answer. We received an empty answer for the same calendar on the Google OAuth playground.

{
  "nextPageToken": "CjkKK2xwamMycHJ2MDU2cGp2YFxcmY3OXRtNTg0XzIwMTQwMjEyVDA0MzAwMFoYASCAgMDEtcaFoBQaDQgAEgAY2M-X7qfLvAI=", 
  "kind": "calendar#events", 
  "defaultReminders": [
    {
      "minutes": 30, 
      "method": "popup"
    }
  ], 
  "items": [], 
  "updated": "2014-02-14T09:32:57.943Z", 
  "summary": "TEST", 
  "etag": "\"TuPKiPtcUnaxp3U8BefUMu26Bg/LWnnxrAP6L1-mgjBDhy0rIebYaE\"", 
  "timeZone": "Asia/Calcutta", 
  "accessRole": "owner"
}

But when the same user authenticates through AuthSub, it retrieves the list of events. Does anyone have the same problem? Any help would be appreciated.

TIA, Riyaz.A

+4
source share
2 answers

We cannot set pageToken for event instance

Calendar.Events.List events = service.build().events().list(gCalId);

Events , pageToken

com.google.api.services.calendar.model.Events events = service.build().events().list(gCalId).setPageToken(pageToken).execute();
0

API nextPageToken? , . , , nextPageToken .

API.

+1

Source: https://habr.com/ru/post/1527309/


All Articles