Skip to content
Advertisement

Tag: google-api-python-client

Using the gmail python API how can I get the most recent email that does not have a label “read”

this snippet gets the most recent email that has the arbitrary label “read”. How can I adapt it get the most recent email that does not have this label? replacing = with != doesn’t work for some reason returning the error: Answer Answer: Rather than using the labelIds parameter, you can use a Gmail search operator to do your query.

Libraries cannot be found on Dataflow/Apache-beam job launched from CircleCI

I am having serious issues running a python Apache Beam pipeline using a GCP Dataflow runner, launched from CircleCI. I would really appreciate if someone could give any hint on how to tackle this, I’ve tried it all but nothing seems to work. Basically, I’m running this python Apache Beam pipeline which runs in Dataflow and uses google-api-python-client-1.12.3. If I

Advertisement