Php Google日历中where的值不保存

Php Google日历中where的值不保存,php,google-calendar-api,where,Php,Google Calendar Api,Where,在我的代码中,我向谷歌日历添加了一个事件。一切正常,只是where中的值没有存储 这是我用来将事件添加到谷歌日历的教程的链接 这是我正在使用的代码: <?php include('includes/class1.php'); include('includes/class2.php'); define("APP_NAME", "MY APP"); $email = "test@gmail.com"; $password = "test";

在我的代码中,我向谷歌日历添加了一个事件。一切正常,只是where中的值没有存储

这是我用来将事件添加到谷歌日历的教程的链接

这是我正在使用的代码:

<?php
    include('includes/class1.php');
    include('includes/class2.php');
    define("APP_NAME", "MY APP");  
    $email = "test@gmail.com";  
    $password = "test";  
    $altEmail = "test@gmail.com";  
    $login = new GoogleClientLogin($email, $password, GoogleClientLogin::$CALENDAR_SERVICE, APP_NAME);  

    $cal = new GoogleCalendar($login);
    $cal->altEmail = $altEmail;  

     $entryData = $cal->addEvent(array(  
                    "title"=> "Auto Test event",  
                    "content"=> "This is a test event",  
                    "where"=> "Test location",  
                    "startTime"=> time(),
           "endTime"=>  time()
                ));  
    print_r($entryData);    
?>

已成功添加事件,但未保存位置。我的代码有什么问题


class1.php
class2.php
从上述链接下载。

在class1.php中,有如下代码:

 $xml = '<entry xmlns="http://www.w3.org/2005/Atom" xmlns:gd="http://schemas.google.com/g/2005">
                  <category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/g/2005#event"></category>
                  <title type="text">'.$params["title"].'</title>
                  <content type="text">'.$params["content"].'</content>
                  <gd:transparency value="http://schemas.google.com/g/2005#event.opaque">
                  </gd:transparency>
                  <gd:eventstatus value="http://schemas.google.com/g/2005#event.confirmed">
                  </gd:eventstatus>
                  <gd:where valuestring="'.$params["where"].'"></gd:where> 
                  <gd:when endTime="'.$params["endTime"].'" startTime="'.$params["startTime"].'"/>
                </entry>';
$xml='1!'
“.$params[“title”]”
“.$params[“content”]”
';
此处更改如下:

<gd:where valueString="'.$params["where"].'"/>

然后它还将存储位置