Skip to content
Advertisement

Tag: gmail-api

Google API – Auth server to server

I need a service to manipulate emails in a gmail account within a project developed in PHP Symfony… I found this example : https://github.com/googleapis/google-api-php-client/blob/main/docs/oauth-server.md But more confusing than helping… I wrote this code : src/Service/Gmail.php Then I followed the steps described in Google Workspace for developers : Create a new project : https://developers.google.com/workspace/guides/create-project?hl=en Enable Gmail API : https://developers.google.com/workspace/guides/enable-apis?hl=en Create credentials

Fetch sender email address in Gmail message list API

I’m using Gmail API to fetch email address (of the sender) for last 10 emails. URL: https://developers.google.com/gmail/api/v1/reference/users/messages/list But Users.messages: list API returns message resource (which includes only email ID). And for fetching sender email address, I have to make one Users.messages: get API call for each message resources, that’s increases load time. How can I fetch email address of sender

Advertisement