api: Remove hardcoded API keys from examples.

(imported from commit 64bf22298452a436d0aec796973a77f10d5e0bf9)
This commit is contained in:
Tim Abbott 2012-11-26 10:30:26 -05:00
parent 7314c12527
commit e3f6a6a752
8 changed files with 12 additions and 12 deletions

View File

@ -2,13 +2,13 @@
# Two quick API tests using curl
curl https://humbughq.com/api/v1/send_message \
-d "api-key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-d "email=tabbott@humbughq.com" \
-d "api-key=YOUR_API_KEY" \
-d "email=YOUR_EMAIL" \
-d "type=private" -d "content=test" \
-d "to=tabbott@humbughq.com"
-d "to=RECIPIENT_EMAIL"
curl https://humbughq.com/api/v1/get_messages \
-d "api-key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-d "email=tabbott@humbughq.com"
-d "api-key=YOUR_API_KEY" \
-d "email=YOUR_EMAIL"
# Or replace https://humbughq.com with your local test instance

View File

@ -16,7 +16,7 @@ parser.add_option('--site',
action='store')
parser.add_option('--api-key',
dest='api_key',
default="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
default=None,
action='store')
parser.add_option('--user',
dest='user',

View File

@ -16,7 +16,7 @@ parser.add_option('--site',
action='store')
parser.add_option('--api-key',
dest='api_key',
default="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
default=None,
action='store')
parser.add_option('--user',
dest='user',

View File

@ -16,7 +16,7 @@ parser.add_option('--site',
action='store')
parser.add_option('--api-key',
dest='api_key',
default="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
default=None,
action='store')
parser.add_option('--user',
dest='user',

View File

@ -16,7 +16,7 @@ parser.add_option('--site',
action='store')
parser.add_option('--api-key',
dest='api_key',
default="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
default=None,
action='store')
parser.add_option('--user',
dest='user',

View File

@ -16,7 +16,7 @@ parser.add_option('--site',
action='store')
parser.add_option('--api-key',
dest='api_key',
default='4e5d97591bec64bf57d2698ffbb563e3',
default=None,
action='store')
parser.add_option('--sender',
dest='sender',

View File

@ -16,7 +16,7 @@ parser.add_option('--site',
action='store')
parser.add_option('--api-key',
dest='api_key',
default="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
default=None,
action='store')
parser.add_option('--streams',
dest='streams',

View File

@ -16,7 +16,7 @@ parser.add_option('--site',
action='store')
parser.add_option('--api-key',
dest='api_key',
default="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
default=None,
action='store')
parser.add_option('--streams',
dest='streams',