Tinkering with Gmail Rest API using Python

This simple script will get the number of unread messages in the label




Gmail API Browser Quickstart

Complete the steps described in the quickstart instructions, and in about five minutes you’ll have a simple browser application that makes requests to the Gmail API.


After following the quickstart instructions, run the sample:

python -m SimpleHTTPServer 8000

And opening the web page:

open http://localhost:8000





messagesUnread integer The number of unread messages with the label.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s