oauth 2.0 - Gmail API read metadata only scope -


i using service account , domain wide delegation access email accounts under client's domain read-only scope https://www.googleapis.com/auth/gmail.readonly in message get request use format option "metadata" fields='payload/headers' returns email headers not content of message.

is there way restrict app access metadata , not content of emails? ensure application can not read sensitive email content information , have access metadata only.

thanks!

set scope https://www.googleapis.com/auth/gmail.metadata. see https://developers.google.com/gmail/api/auth/scopes

https://www.googleapis.com/auth/gmail.metadata
read resources metadata including labels, history records, , email message headers, not message body or attachments


Comments

Popular posts from this blog

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -