Skip to content

Get a subscription from a topic #912

@jgeewax

Description

@jgeewax

In pubsub-usage.rst we have:

client = pubsub.Client()
topic = client.topic('topic-name')
sub = pubsub.Subscription('sub-name', topic)

I think we should consider changing this to

client = pubsub.Client()
topic = client.topic('topic-name')
sub = topic.subscription('sub-name')

Metadata

Metadata

Assignees

Labels

api: pubsubIssues related to the Pub/Sub API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions