最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Google Slides add-on vrerification oauth scope - Stack Overflow

programmeradmin1浏览0评论

I'm now oauth verification for the Slides add-on by google apps script.

First, I use drive.readonly scope. OAuth Dev teams point use drive.file scope instead of drive.readonly.

So I rewrite my app from editor add-on to google workspace add-on.

It is very hard, http I/F to Card service.

Then I apply oauth verification, the teams replys this message.

Minimum Scope Requirement You requested the following sensitive scope(s):

Please review the following information to understand if the drive.file scope is a better fit for your application. If your request does not meet the eligibility requirements outlined below, we won’t be able to grant your request for restricted Drive APIs.

I confused and disapoint.My app is slides add-on, so I think, it is necessary presentations scope.

I read Slides API references, I know drive.file scope is use Slides Api, SpreadSheet Api, Documents APi.

Can Slides API use only drive.file scope

but it mean rewrite SlidesApp class's all methods and field. I think it is very nonsence. I reply. but teams reply is same.

Please teach me, slides add-on written by google apps script approved oauth verification use auth/presentations.

I'm now oauth verification for the Slides add-on by google apps script.

First, I use drive.readonly scope. OAuth Dev teams point use drive.file scope instead of drive.readonly.

So I rewrite my app from editor add-on to google workspace add-on.

It is very hard, http I/F to Card service.

Then I apply oauth verification, the teams replys this message.

Minimum Scope Requirement You requested the following sensitive scope(s):

https://www.googleapis/auth/presentations Please review the following information to understand if the drive.file scope is a better fit for your application. If your request does not meet the eligibility requirements outlined below, we won’t be able to grant your request for restricted Drive APIs.

I confused and disapoint.My app is slides add-on, so I think, it is necessary presentations scope.

I read Slides API references, I know drive.file scope is use Slides Api, SpreadSheet Api, Documents APi.

Can Slides API use only drive.file scope

but it mean rewrite SlidesApp class's all methods and field. I think it is very nonsence. I reply. but teams reply is same.

Please teach me, slides add-on written by google apps script approved oauth verification use auth/presentations.

Share Improve this question edited Mar 13 at 8:40 Toshiyuki Kawashima asked Mar 13 at 8:25 Toshiyuki KawashimaToshiyuki Kawashima 51 silver badge2 bronze badges 4
  • 1 Related: issuetracker.google/issues/112272756 – TheMaster Commented Mar 13 at 9:14
  • How about just https://www.googleapis/auth/presentations.currentonly? If you're not accessing any other presentation, this should work. – TheMaster Commented Mar 13 at 9:20
  • thank you. My app new slides from template files. I say its teams. So my app not only current documnet also create new slides file. – Toshiyuki Kawashima Commented Mar 13 at 9:31
  • my source code publish in github. Please see github/toskaw/koyomi_no_shiori – Toshiyuki Kawashima Commented Mar 13 at 9:39
Add a comment  | 

1 Answer 1

Reset to default 0

Unfortunately, This feature is not available. You maybe able to access

  • current presentation using inbuilt methods with scope: https://www.googleapis/auth/presentations.currentonly

  • To create new presentations, using drive.file scope, you should use the REST API using UrlFetchApp:

    • https://github/googleworkspace/apps-script-oauth2/tree/main/samples/NoLibrary

    • https://developers.google/slides/api/reference/rest/v1/presentations/create

  • Related issue tracker: https://issuetracker.google/issues/112272756


You can create a new bug report or a feature request about this in the issue tracker.

Click Here to create an issue!


发布评论

评论列表(0)

  1. 暂无评论