https://console.cloud.google.com/apis/
api
https://developers.google.com/gmail/api/v1/reference/users/getProfile#try-it
php client
https://github.com/googleapis/google-api-php-client
doc php api google
https://developers.google.com/resources/api-libraries/documentation/gmail/v1/php/latest/class-Google_Service_Gmail.html