1
我发现了Google Calendar API(v2.6)的简单PHP类。PHP Google Calendar API v2.6 - updateEvent()函数
https://github.com/montania/Google-Calendar-API-PHP-Class
而且还有功能updateEvent($处理,$ ID,$ ETAG,$ JSON){...}
/**
* Method to update an event in the calendar.
If $etag is submitted it won't update your event if it has been updated since
you last retreived it
* @param string $handle E-mail or handle to identify the calendar
* @param string $id The id of the event
* @param string $etag The e-tag of the event (optional)
* @param string $json The complete json code from the event that you've
retrieved with the changes that you want
* @return bool|object Returns false on failure and object on success
*/
我应该投入到$ JSON参数? 有人可以给我代码示例吗?
谢谢。
我理解这3个步骤和JSON必须包含的内容,但我不知道如何编写更改并将它们编码为JSON。 Simplyfied ...给我例子的代码$ json = json_encode($ string);例如:我想要更新名称和事件地点。 – 2012-02-06 10:36:14