カレンダーAPI
GASでイベントを作成する方法
// admin@fuga.google.com ユーザで実行したとする // 事前に admin@fuga.google.com ユーザで hogehoge@fuga.google.com にカレンダー作成権限を付けておく var app = UiApp.getActiveApplication(); var calendar = CalendarApp.getCalendarById('hogehoge@fuga.google.com'); // 作成したい人のメールアドレス var event = calendar.createEvent( 'タイトル', new Date('2015/1/24 18:00:00'), new Date('2015/1/24 20:00:00'), { description: '概要', location: '場所' } ); event.getCreators(); // 実行したユーザアカウント(admin@fuga.google.com) event.getSummary(); // タイトル event.getTitle(); // タイトル event.getStartTime(); // 開始日時 Sat Jan 24 2015 18:00:00 GMT+0900 (JST) event.getEndTime(); // 終了日時 Sat Jan 24 2015 20:00:00 GMT+0900 (JST) event.getDescription(); // 概要 event.getId(); // qlmksi3gukov2ad1tcro8tdd1g@google.com event.getLocation; // 場所 event.getOriginalCalendarId // このカレンダーのユーザアカウント(hogehoge@fuga.google.com)