Php 搜索谷歌日历扩展属性
我在执行Php 搜索谷歌日历扩展属性,php,google-calendar-api,Php,Google Calendar Api,我在执行privateExtendedProperty搜索时遇到以下问题 $service = new Google_CalendarService($client); $extendedProperties = New Google_EventExtendedProperties(); $param = array(); $param['singleEvents'] = false; $param['extendedProperties'] = "CodeID=66"; $events =
privateExtendedProperty
搜索时遇到以下问题
$service = new Google_CalendarService($client);
$extendedProperties = New Google_EventExtendedProperties();
$param = array();
$param['singleEvents'] = false;
$param['extendedProperties'] = "CodeID=66";
$events = $service->events->listEvents($calendarioId,$param);
致命错误:
未捕获异常“Google_exception”,其中包含消息“(列表)未知参数:“extendedProperties”
..\google\service\google\u ServiceResource.php:111
堆栈跟踪:
#0…\includes\google\contrib\google\u CalendarService.php(529):google\u ServiceResource->\u调用('list',Array)
#1…\google_calendario.php(198):google_events服务资源->listEvents('hude3h3fjolua08…',数组)
#2..\google_calendario.php(442):c_googlecalendario->proc_google('hude3h3fjolua08…','66'))
使用最新的api,您可以执行以下操作:
$events = $service->events->listEvents($calendarId, array('privateExtendedProperty'=>'codeID='.$yourId));
请注意,它可能是privateExtendedProperty
或sharedExtendedProperty
,具体取决于您创建事件的方式