简体   繁体   中英

Get the Event ID in the event created in the Google Calendar

I'm implementing calendar application in java using google calendar api. I have inserted an event to the calendar with the name "Test Entry" which repeats for several weeks. I found the calendar id in the settings of the particular. But couldn't find the event id of the Event i created.

I need the event id for the following java statement

Event event = service.events().get('calendarId', "eventId").execute();

Any help will be greatly appreciated. Thank you.

What you can do is use Event's list method, which will return a list of event resources in the items property of the response. Items[].id will contain the eventID which would pass into your get method. In order to search for specific events, you can search through the items for matching properties, such as the summary property, which would be the title of the event.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM