如何停止觀看整個頻道?下面轉載的API reference需要resourceId
,似乎暗示它只會停止觀看特定於resourceId
的事件。對我而言,我認爲channelId
就足夠了,因此不知道要爲resourceId
投放什麼。該字段不是可選的。如何停止整個Google日曆活動頻道的觀看?
POST https://www.googleapis.com/calendar/v3/channels/stop
Authorization: Bearer {auth_token_for_current_user}
Content-Type: application/json
{
"id": "4ba78bf0-6a47-11e2-bcfd-0800200c9a66",
"resourceId": "ret08u3rv24htgh289g"
}
如果您不想提供資源ID,那麼只有選項是爲通道自動停止通知設置到期時間。請點擊此處查看此鏈接https://developers.google.com/google-apps/calendar/v3/push#stopping – SGC 2015-04-02 17:26:44
@SCG您是否說沒有辦法根據需要停止通知渠道? – FullStack 2015-04-03 03:16:53