jeremyephron / simplegmail

A simple Gmail API client for applications in Python
MIT License
348 stars 74 forks source link

Add new fields to label #70

Open rasa opened 2 years ago

rasa commented 2 years ago

This adds all the fields returned by the labels.list API.

Example:

gmail = simplegmail.Gmail()

labels = gmail.list_labels()
for label in labels:
    print(label.name, label.id, label.type, label.messageListVisibility, label.labelListVisibility)

It also adds a predefined CHAT label, which was missing.