Watch requset in gmail API doesnt work
<p>I am trying to make a watch request using python referring <a href="https://developers.google.com/gmail/api/guides/push" rel="nofollow">google APIs</a> but it does not work. </p>

<pre><code>request = {
  'labelIds': ['INBOX'],
  'topicName': 'projects/myproject/topics/mytopic'
}
gmail.users().watch(userId='me', body=request).execute()
</code></pre>

<p>I could not find a library or a package to use <code>gmail.users()</code> function. how to make watch request using an access token</p>

<p>Do it in gmail python client(provide by google).under main function </p>

<pre><code>request = {
        'labelIds': ['INBOX'],
        'topicName': 'projects/myprojects/topics/getTopic'
    }
    print(service.users().watch(userId='me', body=request).execute())
</code></pre>

python gmail-api google-cloud-pubsub