如何使用API检索google日历上各种日历的日历ID,我知道使用
page_token = None
while True:
calendar_list = service.calendarList().list(pageToken=page_token).execute()
for calendar_list_entry in calendar_list['items']:
print calendar_list_entry['summary']
page_token = calendar_list.get('nextPageToken')
if not page_token:
break
它将返回名称,但我想让它返回CalendarId
google API ^{} resource representation
你可以打印出条目本身,而不是一个键。在
或直接获取
^{pr2}$id
:相关问题 更多 >
编程相关推荐