cvent soap api错误(php)

cvent soap api错误(php),php,api,soap,Php,Api,Soap,我试图使用php访问CVentSOAPAPI,以显示即将发生的事件的列表。我发现: 当涉及到这个函数时,我得到了“无效的\u CVENT\u头\u值”: public function SearchByFilter($objecttype, $type, $filters){ $response = $this->client->Search((object) array('ObjectType' => $objecttype, 'CvSearchObject'

我试图使用php访问CVentSOAPAPI,以显示即将发生的事件的列表。我发现:

当涉及到这个函数时,我得到了“无效的\u CVENT\u头\u值”:

public function SearchByFilter($objecttype, $type, $filters){   
    $response = $this->client->Search((object) array('ObjectType' => $objecttype, 'CvSearchObject' => (object) array('SearchType' => $type, 'Filter' => $filters)));
    return $response;
}
$objecttype = 'Event';
$type = 'AndSearch';
$filters = 

Array
(
    [0] => stdClass Object
        (
            [Field] => EventStartDate
            [Operator] => Greater than
            [Value] => 2016-11-28T00:00:00
        )

)
我重复了发送给该功能的内容:

public function SearchByFilter($objecttype, $type, $filters){   
    $response = $this->client->Search((object) array('ObjectType' => $objecttype, 'CvSearchObject' => (object) array('SearchType' => $type, 'Filter' => $filters)));
    return $response;
}
$objecttype = 'Event';
$type = 'AndSearch';
$filters = 

Array
(
    [0] => stdClass Object
        (
            [Field] => EventStartDate
            [Operator] => Greater than
            [Value] => 2016-11-28T00:00:00
        )

)
我所做的只是保存文件、添加凭据并尝试回显$events

$account    = /* my account */
$username   = /* my username */
$password   = /* my password */

require('/templates/home/assets/CventClient.class.php');
$cc = new CventClient();
$cc->Login($account,$username,$password);
$events = $cc->GetUpcomingEvents();

我已经找到了这个文档,但我不确定是什么地方出了问题,或者为什么它不起作用。我对肥皂没有任何经验。任何帮助都将不胜感激

当您
var\u dump($event)
是事件的键时返回的结果。要获取事件的标题,您必须获取
eventId

 `require('/templates/home/assets/CventClient.class.php');

 $cc = new CventClient();

 $cc->Login($account,$username,$password);

 $events = $cc->GetUpcomingEvents();

  foreach($events as $event)
    {
    $response = $cc->GetEventById($event);
    //This retrieves the title of all events
     $eventsTitle = $response->EventTitle;

     var_dump($eventsTitle );
   }`