我以前使用日历ID获取日历名称,并使用以下API调用:
https://www.googleapis.com/calendar/v3/calendars/877rak5vqdsj68q52tehukeopg@group.calendar.google.com
然后我得到了像
这样的回复{
""""kind"""": """"calendar#calendar"""",
""""etag"""": """"\""""ULsH1YPfrSsaWJsYynxh4efocZw/z3mgue7ZR46jHMp-7DrpcXUmmDY\"""""""",
""""id"""": """"877rak5vqdsj68q52tehukeopg@group.calendar.google.com"""",
""""summary"""": """"HELLO"""",
""""description"""": """"HELLO"""",
""""timeZone"""": """"UTC"""",
""""conferenceProperties"""": {
""""allowedConferenceSolutionTypes"""": [
""""eventHangout""""
]
}
}
现在,我如何知道此日历的状态,是否已通过Google Calendar API删除。请帮帮我。
答案 0 :(得分:0)
如果您要检查CalendarList,日历资源会删除一个属性,如果删除该属性,则该属性可以具有布尔值。
{
"kind": "calendar#calendarListEntry",
"etag": etag,
"id": string,
"summary": string,
"description": string,
"location": string,
"timeZone": string,
"summaryOverride": string,
"colorId": string,
"backgroundColor": string,
"foregroundColor": string,
"hidden": boolean,
"selected": boolean,
"accessRole": string,
"defaultReminders": [
{
"method": string,
"minutes": integer
}
],
"notificationSettings": {
"notifications": [
{
"type": string,
"method": string
}
]
},
"primary": boolean,
"deleted": boolean,
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
string
]
}
}
希望这有帮助。