是否可以使用谷歌应用程序脚本检索域用户配置文件图像

时间:2012-07-13 18:35:07

标签: google-apps-script google-apps

我正在大量使用Apps脚本来维护我们的Google Apps for Business帐户,而现在使用ContentService和HtmlService,我们正在将其范围扩展到可直接从公司内部网访问的某些功能。

是否可以使用Apps脚本公开的Google域或用户API来检索用户个人资料图片。我可以使用python API这样做但不想引入到AppEngine或其他托管服务的往返来实现同样的目的。

可能的?

1 个答案:

答案 0 :(得分:0)

单独使用Apps脚本是不可能的。但是,Apps Script和User Profiles API在理论上是可行的。 (https://developers.google.com/google-apps/profiles/#retrieving_photo)。

要结合这两者,您可以使用知名库页面(https://developers.google.com/apps-script/notable-script-libraries)中列出的OAuth服务