python-zulip-api/examples/curl-examples
acrefoot dfb8a16a55 [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)
2013-06-05 17:34:41 -04:00

15 lines
390 B
Bash
Executable file

#!/bin/sh
# Two quick API tests using curl
curl https://humbughq.com/api/v1/send_message \
-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=BOT_API_KEY" \
-d "email=BOT_EMAIL"
# Or replace https://humbughq.com with your local test instance