Can we access GMAIL API using Service Account?

前端 未结 6 1660
予麋鹿
予麋鹿 2020-11-29 07:20

I have a desktop application to read mail using GMAIL API over REST Interface. I want to use service account so that we can download the mails using domain setting and user

6条回答
  •  离开以前
    2020-11-29 07:21

    If you want to "read mail" you'll need the newer Gmail API (not the older admin settings API that 'lost in binary' pointed out). Yes you can do this with oauth2 and the newer Gmail API, you need to whitelist the developer in Cpanel and create a key you can sign your requests with--it take a little bit to setup: https://developers.google.com/accounts/docs/OAuth2ServiceAccount#formingclaimset

提交回复
热议问题