dacastro4 / laravel-gmail

Laravel wrapper for the Gmail API
MIT License
292 stars 134 forks source link

Is it possible to login with just the API Key ? #229

Open mr-Sepi0l opened 2 years ago

mr-Sepi0l commented 2 years ago

Hello there,

I am creating a cron that must fetch the inbox every X minutes to check for new emails and upload attachement somewhere within my app. Question is, I mainly use that in CLI and there is no login/logout consent screen or anything like that since I'm the owner of the gmail account and this feature will be totally invisible for end user.

Is there a way to skip the OAuth and just use the API key ? Only thing i need is to read email, get attachments and move email.

Thanks ^^

Snakzi commented 2 years ago

Have you found a solution for this?

Wessam-Ahmed commented 2 years ago

I have the same use case. Any solution?