Complete the steps described in the Gmail API Quickstart, and in about five minutes you'll have a simple PHP command-line application that makes requests to the Gmail API.
Before running this quickstart, be sure you have Composer installed globally.
composer install
- Follow the steps in the quickstart instructions to download your developer
credentials and save them in a file called
credentials.json
in this directory.
php quickstart.php