[manual] Uniformize the subscriptions API method names.
This requires a zephyr_mirror deployment when it is pushed to prod. (imported from commit 6543441fb264b518f8705d7989d068a1d50ce5d6)
This commit is contained in:
parent
5b285f2321
commit
584743eca8
4 changed files with 9 additions and 9 deletions
|
@ -3,11 +3,11 @@ import sys
|
|||
import os
|
||||
import optparse
|
||||
|
||||
usage = """get-subscriptions --user=<email address> [options]
|
||||
usage = """list-subscriptions --user=<email address> [options]
|
||||
|
||||
Prints out a list of the user's subscriptions.
|
||||
|
||||
Example: get-subscriptions --user=tabbott@humbughq.com --site=http://127.0.0.1:8000
|
||||
Example: list-subscriptions --user=tabbott@humbughq.com --site=http://127.0.0.1:8000
|
||||
"""
|
||||
parser = optparse.OptionParser(usage=usage)
|
||||
parser.add_option('--site',
|
||||
|
@ -30,4 +30,4 @@ client = api.common.HumbugAPI(email=options.user,
|
|||
verbose=True,
|
||||
site=options.site)
|
||||
|
||||
print client.get_subscriptions()
|
||||
print client.list_subscriptions()
|
|
@ -38,4 +38,4 @@ if options.streams == "":
|
|||
print >>sys.stderr, "Usage:", parser.usage
|
||||
sys.exit(1)
|
||||
|
||||
print client.subscribe(options.streams.split())
|
||||
print client.add_subscriptions(options.streams.split())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue