2015-09-17 30 views
0

從第三方服務(例如跑道)同步的Google日曆活動通常在其描述中包含一個純文本鏈接,並且包含超鏈接的source字段(請參閱屏幕截圖)。日曆活動來源標題和URL

我似乎無法弄清楚如何在使用Google Apps腳本創建新事件時包含此source字段。

在Google Calendar API中,有可能:Google-calendar api, Source.link is not viewable on guest's calendar。在Google Apps腳本中如何處理:https://developers.google.com/apps-script/reference/calendar/calendar#createEvent(String,Date,Date,Object)https://developers.google.com/apps-script/reference/calendar/calendar-event

Google Calendar Event Source Field

+0

請[編輯]你的問題包括[MCVE。這將通過澄清問題來幫助Stack Overflow社區。 – Mogsdad

回答

0

你(目前)不能添加使用CalendarApp服務的源鏈接,但是你可以,如果你創建使用必須在Google Apps腳本專門啓用高級日曆服務中斷事件添加源鏈接您的Google Developers Console上的&。

參見:

https://developers.google.com/apps-script/guides/services/advanced#enabling_advanced_services

https://developers.google.com/apps-script/advanced/calendar

https://developers.google.com/google-apps/calendar/v3/reference/events/insert#request-body