Google Drive API - We're sorry… but your computer or network may be sending automated queries

前端 未结 2 675
一整个雨季
一整个雨季 2021-01-19 17:30

We have a Google Drive Oauth2 App integration. We are using Google Drive API export and get endpoints in order to read data from our customers within their Google Drive Fold

2条回答
  •  北荒
    北荒 (楼主)
    2021-01-19 18:05

    We managed to make it work again. We've found this: https://cloud.google.com/blog/products/application-development/upcoming-changes-to-the-google-drive-api-and-google-picker-api

    Google didn't update their Drive API document, so we didn't know about this change.

    Basically we have to switch from the access_token URL parameter to the Authorization Header. This is, to authenticate the API you should use the Header like this:

    "Authorization" : "Bearer ACCESS_TOKEN"
    

    This worked for us.

    Thank you everyone for the help.

提交回复
热议问题