[api version bump] Update API documentation in the example scripts
Give better examples, and rewrite options parsing to be more consistent across examples. Make it more obvious that you can use "--user" and "--api-key" with our python examples. This bumps our python bindings to v0.1.9 (imported from commit 297468088f864b7d585e567dc45523ea681f1856)
This commit is contained in:
parent
35b822b58d
commit
dfb8a16a55
22 changed files with 92 additions and 87 deletions
|
@ -2,13 +2,13 @@
|
|||
# Two quick API tests using curl
|
||||
|
||||
curl https://humbughq.com/api/v1/send_message \
|
||||
-d "api-key=YOUR_API_KEY" \
|
||||
-d "email=YOUR_EMAIL" \
|
||||
-d "api-key=BOT_API_KEY" \
|
||||
-d "email=BOT_EMAIL" \
|
||||
-d "type=private" -d "content=test" \
|
||||
-d "to=RECIPIENT_EMAIL"
|
||||
|
||||
curl https://humbughq.com/api/v1/get_messages \
|
||||
-d "api-key=YOUR_API_KEY" \
|
||||
-d "email=YOUR_EMAIL"
|
||||
-d "api-key=BOT_API_KEY" \
|
||||
-d "email=BOT_EMAIL"
|
||||
|
||||
# Or replace https://humbughq.com with your local test instance
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue