
內容簡介
使用者可以將多個公共 Google 行事曆合併成一個供 REST API 使用的進料,或在 WordPress 前端生成一個議程行事曆。
使用者可以有多個結合的行事曆,並使用不同的 shortcode 在不同的 API 呼叫或前端視圖上使用。此外,此外掛允許使用者輸入所有公共 Google 行事曆的清單、未來幾天的天數以及時區,以顯示行事曆的日期和時間。
RESTful 呼叫生成的 JSON 例如:
{
‘date’:’2016-03-31′,
‘events’:[
{‘title’:’Mayor's Masters Reception’,
‘link’:’https://calendar.google.com/calendar/event?eid=X2Q…&ctz=America/New_York’},
{‘time’:’10am’,
‘title’:’AARP Tax Help’,
‘link’:’https://calendar.google.com/calendar/event?eid=aWwy…&ctz=America/New_York’}
]
}
RESTful 呼叫可以使用自訂的 URL 被執行:
/wp-json/sd-google-calendar/v1/sdcalendar/
行事曆可以透過下列 shortcode 插入到 WordPress 文章:
[sd_show_calendar id=””]
還有一個預設為「agenda」的「type」參數,但最終將進一步發展為使用完整日曆顯示滾動不同的月份。
外掛標籤
開發者團隊
原文外掛簡介
The user can combine multiple public Google calendars into one feed to use on the REST API or generate one agenda calendar on the WordPress frontend.
The user can have multiple combined calendars to use on different API calls or front end views with different shortcodes. This plugin allows the user to enter a list of all public Google Calendars, the number of look-ahead days, and the timezone for displaying the dates and times of the calendar.
The RESTful call generates JSON that looks like the following as an example:
{
‘date’:’2016-03-31′,
‘events’:[
{‘title’:’Mayor's Masters Reception’,
‘link’:’https://calendar.google.com/calendar/event?eid=X2Q…&ctz=America/New_York’},
{‘time’:’10am’,
‘title’:’AARP Tax Help’,
‘link’:’https://calendar.google.com/calendar/event?eid=aWwy…&ctz=America/New_York’}
]
}
The RESTful call can be made by using a custom url to:
/wp-json/sd-google-calendar/v1/sdcalendar/
The agenda calendar can be inserted to your wordpress post using the shortcode:
[sd_show_calendar id=””]
There’s also a “type” parameter which is defaulted to “agenda” for now but will be further developed to eventually use full calendar displays for scrolling different months.
