ユーザーがアプリから移動せずにカレンダーでイベントを整理できるようにするWebアプリを開発する。GASユーザーのGoogleカレンダーをスタンドアロンのウェブアプリにどのように埋め込みますか?
1 に答える
You can't embed the users calendar UI (user interface) directly in your app. Currently there is no 'calendar-widget' that emulates the google-calendar UI. There is however a simple calendar widget called 'DatePicker' but on assumption i don't think that's what you mean.
You can however interact with the user's calendar at a data-level with the calendar service https://developers.google.com/apps-script/service_calendar. Keep in mind that the security level in this case is very important. If you publish your web-app to execute as the current user, it can interact freely with that user's calendar. If it's set to execute as you (the maker of the script) it can't access that user's calendar. It can only access that calendar if it's security level has been adjusted to be shared and editable by and with you (by the owner of that calendar).
In all, the read/write/access rules are exactly the same as if you use the services as 'normal' thru google's own webservices. Keep that in mind when developing your app and you avoid a lot of headaches ;-)