以编程方式导出Google演示文稿幻灯片图像

hab*_*her 5 google-drive-api

我正在尝试使用OAuth2.0,Google Picker API和Google Drive SDK/API的某种组合,以便能够将演示文稿的幻灯片导出为图像.我现在可以通过此URL完成此操作:

网址="https://docs.google.com/presentation/d/ {{PRESENTATION_ID}}/export/png?id = {{PRESENTATION_ID}}&pageid = {{SLIDE_ID}}"

如果我已登录并通过此URL发送GET请求(分别带有有效的演示文稿和幻灯片ID),我可以获得一张可爱的幻灯片.

我做必要的OAuth2.0舞蹈来获取令牌,另外Picker API对用户进行身份验证并给我这样的信息:

docs : [
  {
     description:
     embedUrl:
     iconUrl: 
     id:
     lastEditedUtc
     serviceId
     mimeType:
     name:
     type:
     url:

  },
  ...
],
viewTokens : [ ... ]
Run Code Online (Sandbox Code Playgroud)

我正在使用google-api-nodejs-client服务器端.

这应该是非常可能的吗?我一直在挖掘文档,小组,这个网站等等,但是如何做到这一点并不明显.

链接: - Picker API:https://developers.google.com/picker/docs/ - google-api-nodejs-client:https://github.com/google/google-api-nodejs-client