[英]How to create Google calendar through auth api and share it for multiple user for edit and view in php
我嘗試了更多,但我沒有找到確切的文檔plz分享任何想法以動態實現Google日歷,並且可以共享給用戶進行編輯和查看。
我在Google Calendar API文檔中找到了此PHP快速入門指南。 它提供了有關如何集成一個簡單的PHP命令行應用程序的步驟,該應用程序向Google Calendar API發送請求。 這可能會有所幫助。
您可以通過調用calendarList.get方法來查看日歷 。 它返回用戶日歷列表中的條目。 參見示例 :
$calendarListEntry = $service->calendarList->get('calendarId');
echo $calendarListEntry->getSummary();
然后,您可以通過調用calendarList:update方法來編輯/更新用戶日歷列表中的條目。 范例 :
$updatedCalendarListEntry = service->calendarList->update($calendarListEntry->getId(), $calendarListEntry);
echo $updatedCalendarListEntry->getEtag();
查看下面的GitHub示例:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.