I'm trying to fetch emails from a GSuite email account. I've tried everything I found on internet but I can't find the right way to do it.
I have Gsuite administration credentials, I have created my service account, activated domain delegation, created my project, activated gmail api, added the authorization to my service account into ManageOAuthClients page from admin.google.com (set to the https://mail.google.com/). I have downloaded secret json and service account json.
I tried many sources but everything that seems to works is using oAuth flow (with web authorization asked to the user). I need to avoid this because I'm developping a console app that will be a scheduled task so it should run without human intervention.
It's been a day long I'm searching, trying but not finding anything working. Any idea please ?