PUBSUB_SCOPES = ['https://www.googleapis.com/auth/pubsub']
credentials = oauth2client.GoogleCredentials.get_application_default()
if credentials.create_scoped_required():
credentials = credentials.create_scoped(PUBSUB_SCOPES)
http = httplib2.Http(timeout=timeout)
credentials.authorize(http)
return discovery.build('pubsub', 'v1', http=http)
Confidentiality Note:
This email and the information transmitted in this email, including within any attachments, is confidential and/or privileged information. The information contained herein is intended only for the person/s or entity to which it is addressed. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient/s is prohibited.
If you received this in error, please destroy the message and any attachment and contact us immediately at in...@consumerphysics.com.
--
You received this message because you are subscribed to the Google Groups "Google Cloud Pub/Sub Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-pubsub-discuss/ee502eb7-3d3a-4c08-937f-8a38efba9aaa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
When I set the timeout to 91 seconds I get no errors.
I can have my own timed loop in it I can pull with immediate return = True, but that is not really long polling and not very efficient.
--
You received this message because you are subscribed to a topic in the Google Groups "Google Cloud Pub/Sub Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cloud-pubsub-discuss/4AwNT2YDb7I/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cloud-pubsub-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-pubsub-discuss/c407a5e2-fcf1-4a75-921f-d56cb2819ac2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.