1
A
回答
1
是的,這是可能的!
$url = 'http://www.googleapis.com/calendar/v3/calendars';
$data = array(
'summary' => 'MyNewCalendarTitle'
);
// use key 'http' even if you send the request to https://...
$options = array(
'http' => array(
'header' => "Content-type: application/x-www-form-urlencoded\r\n",
'method' => 'POST',
'content' => http_build_query($data),
),
);
$context = stream_context_create($options);
$result = file_get_contents($url, false, $context);
var_dump($result);
link to doc for Calendar Insert
但它的方式更容易使用Google API PHP client library
$calendar = new Calendar();
$calendar->setSummary('calendarSummary');
$calendar->setTimeZone('America/Los_Angeles');
$createdCalendar = $service->calendars->insert($calendar)
2
參考這個URL,它會幫助你
https://developers.google.com/google-apps/calendar/v1/developers_guide_php
https://developers.google.com/google-apps/calendar/
http://www.sanisoft.com/blog/2010/04/26/howto-google-calendar-api-php/
http://googleappsdeveloper.blogspot.in/2010/09/new-json-format-for-google-calendar-api.html
http://mark.biek.org/blog/2010/07/addingdeleting-events-with-the-google-calendar-api/
http://www.phpclasses.org/package/7420-PHP-Generate-links-to-add-events-to-Google-Calendar.html6
相關問題
- 1. 谷歌日曆API:選擇/創建日曆?
- 2. 如何在谷歌日曆上創建事件的谷歌API?
- 3. API谷歌日曆
- 4. 谷歌日曆API
- 5. 谷歌日曆API創建事件返回403禁止和日曆公開 - PHP
- 6. 谷歌日曆API創建事件回報日曆使用限制超過
- 7. 谷歌日曆API一旦
- 8. 谷歌日曆API - 共享日曆
- 9. 創建谷歌日曆事件
- 10. 谷歌日曆PHP API不返回nextsynctoken
- 11. PHP谷歌日曆API - 更新事件
- 12. 谷歌日曆api v2 for php
- 13. 谷歌日曆api與PHP訪問
- 14. 使用谷歌日曆api v3與谷歌日曆創建reccuring事件(jQuery的ajax POST)
- 15. 使用谷歌日曆API來創建一個事件,但沒有出現在我的谷歌日曆
- 16. 谷歌日曆api v3使用asp.net
- 17. 在Swift中使用谷歌日曆API
- 18. Python的 - 使用谷歌日曆API
- 19. 無法使用谷歌日曆API
- 20. 在Django中使用谷歌日曆api
- 21. 谷歌日曆api .net
- 22. 在谷歌日曆API V3
- 23. 谷歌日曆Api v3 EventDateTime
- 24. 谷歌日曆api提醒
- 25. 谷歌日曆API OAUTH
- 26. 請求谷歌日曆api
- 27. Java:谷歌日曆API
- 28. 谷歌日曆api delphi
- 29. 谷歌日曆v3 api
- 30. 谷歌日曆API v3 setRecurrence