我正在使用我的Google文档编写Google Apps脚本脚本,并想知道如何将光标移动到文档的最开头.我最后想要做的只是用一些字符串替换第一行.
我正在尝试通过 Google Apps 脚本将访客添加到日历活动,并在我的脚本添加访客后立即发送邀请。但我找不到向客人发送电子邮件邀请的方法。
var events = calendar.getEvents(start_date, end_date)
event.addGuest('guest_email@gmail.com');
Run Code Online (Sandbox Code Playgroud)
有没有办法从 Apps 脚本向访客发送邀请?
我用高级 Google 服务重写了,但我添加的访客仍然无法收到邀请电子邮件。
var body = {
'sendNotification': true,
'attendees': attendees
};
var ret = Calendar.Events.patch(body, calendarId, eventId);
Run Code Online (Sandbox Code Playgroud) 我可以使用Google App Engine Launcher将我的文件部署(上传)到Google App Engine,但我无法使用appcfg命令.我尝试使用--oauth2而不使用--oauth2.
$ $APP_ENGINE/appcfg.py --email=my.account@gmail.com --oauth2 update myapp
06:49 PM Application: myapp; version: 20141116
06:49 PM Host: appengine.google.com
06:49 PM
Starting update of app: myapp, version: 20141116
06:49 PM Getting current resource limits.
06:49 PM Scanning files on local disk.
06:49 PM Scanned 500 files.
Error 404: --- begin server output ---
This application does not exist (app_id=u'myapp').
--- end server output ---
$ $APP_ENGINE/appcfg.py --email=my.account@gmail.com update myapp
06:54 PM Application: myapp; version: 20141116
06:54 PM …Run Code Online (Sandbox Code Playgroud)