[英]how to fetch calendar data for a particular date in Google calendar API v3?
如何在Google calendar API v3中獲取特定日期的日歷數據? 在參數中,timeMax和timeMin與事件的創建日期進行比較,而不是事件發生的日期。
timeMin和timeMax根據事件日期為我工作。 我正在使用api url for events> list。 您可以運行實時測試,以驗證頁面底部的事件>列表的Google日歷api文檔 。 請記住,日期格式應為yyyy-mm-ddT00:00:00 + 00:00
php中的示例
$cal = new Google_Service_Calendar($client);
$optParams = array('timeMax' => '2014-12-03T23:59:59+00:00','timeMin' => '2014-12-02T00:00:01+00:00');
$events = $cal->events->listEvents('primary',$optParams);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.