Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix up pubsub API docs to show returned 'next_page_token'. #894

Merged
merged 1 commit into from
May 26, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions docs/pubsub-usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,16 @@ List topics for the default project:
.. doctest::

>>> from gcloud.pubsub import list_topics
>>> [topic.name for topic in list_topics()] # API request
>>> topics, next_page_token = list_topics() # API request
>>> [topic.name for topic in topics]
['topic_name']

List topics for an explicit project:

.. doctest::

>>> from gcloud.pubsub import list_topics
>>> topics = list_topics(project='my.project') # API request
>>> topics, next_page_token = list_topics(project='my.project') # API request
>>> [topic.name for topic in topics]
['topic_name']

Expand Down Expand Up @@ -181,7 +182,7 @@ List subscriptions for a topic:

>>> from gcloud.pubsub import Topic
>>> topic = Topic('topic_name')
>>> subscriptions = topic.list_subscriptions() # API request
>>> subscriptions, next_page_token = topic.list_subscriptions() # API request
>>> [subscription.name for subscription in subscriptions]
['subscription_name']

Expand All @@ -190,7 +191,7 @@ List all subscriptions for the default project:
.. doctest::

>>> from gcloud.pubsub import list_subscriptions
>>> subscriptions = list_subscriptions() # API request
>>> subscription, next_page_tokens = list_subscriptions() # API request
>>> [subscription.name for subscription in subscriptions]
['subscription_name']

Expand Down