Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
329 views
in Technique[技术] by (71.8m points)

Enable drive activity API in a google app published in Google Marketplace

We have a google app that is published in the Google marketplace.

The app is approved and used by our customers.

enter image description here

App's installation settings and visibility is as given below -

enter image description here

We were using the Drive Activity API v1 to get file activities.

As drive Activity API v1 has reached the end of its deprecation period and is shutting down as announced in December 2018. We need to Migrate to API v2 as soon as possible to avoid disruptions in the application.

As pet the migration link(https://developers.google.com/drive/activity/v2/migrating) we found that The v2 API requires one of the following scopes:

https://www.googleapis.com/auth/drive.activity
https://www.googleapis.com/auth/drive.activity.readonly

So we figured that we need to -

1. Enable Drive Activity API in API Library.

enter image description here

2. Add two new scopes into OAuth scopes -

enter image description here

Question

  1. Do we need to republish our app after the above changes. ?

  2. Google will automatically reflect two new scopes into each customer's account. ?

    For example, right now one of my customers is seeing 8 scopes in their Data Access section in-app view.

enter image description here

After the above changes, I want two scopes to be visible here so each of my customers will start using Drive activity v2 API.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...