1
Google 캘린더 API (v2.6)에 대한 간단한 PHP 클래스를 찾았습니다.PHP Google 캘린더 API v2.6 - updateEvent() function
https://github.com/montania/Google-Calendar-API-PHP-Class
그리고 기능에게이 updateEvent ($ 핸들, $ 아이디, $의 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) 이전에 코드의 예를 들어주세요. 예 : 업데이트 이름과 이벤트 장소를 원합니다. –