You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to Google Workspace developer documentation docs event object should contain docs.id and docs.title if the https://www.googleapis.com/auth/drive.file scope has been authorized by the user.
However this is not the case in practice when attempting to deploy Google-provided example code for smart chips with the drive.file OAuth scope added. The docs event object only contains matchedUrl and it's missing docs.id and docs.title.
Description
According to Google Workspace developer documentation docs event object should contain
docs.id
anddocs.title
if thehttps://www.googleapis.com/auth/drive.file
scope has been authorized by the user.However this is not the case in practice when attempting to deploy Google-provided example code for smart chips with the
drive.file
OAuth scope added. The docs event object only containsmatchedUrl
and it's missingdocs.id
anddocs.title
.Code
Code from https://github.com/googleworkspace/add-ons-samples/tree/main/python/3p-resources with additional OAuth scope added (
https://www.googleapis.com/auth/drive.file
) and a print debug statement forevent
increate_link_preview/main.py
Output
Note the last line in the output which only contains the
matchedUrl
field.Steps to replicate
The text was updated successfully, but these errors were encountered: