Outdated info on the Pub/Sub Client Library landing page: https://github.com/googleapis/google-cloud-python/tree/master/pubsub:
If folks follow the subscriber guide to this step, they will get this error, which makes no sense.
>>> subscription = subscriber.subscribe(subscription_name)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: subscribe() takes at least 3 arguments (2 given)
Additionally, everywhere else in the API reference, the import statement says from google.cloud import pubsub_v1. We need to standardize the import statements.
Outdated info on the Pub/Sub Client Library landing page: https://github.com/googleapis/google-cloud-python/tree/master/pubsub:
If folks follow the subscriber guide to this step, they will get this error, which makes no sense.
Additionally, everywhere else in the API reference, the import statement says
from google.cloud import pubsub_v1. We need to standardize the import statements.