2012-10-01 15:36:44 -04:00
|
|
|
#!/bin/sh
|
|
|
|
# Two quick API tests using curl
|
2012-10-25 00:11:28 -04:00
|
|
|
|
2013-07-24 17:53:39 -04:00
|
|
|
curl https://api.zulip.com/v1/send_message \
|
2013-05-29 14:00:27 -04:00
|
|
|
-d "api-key=BOT_API_KEY" \
|
|
|
|
-d "email=BOT_EMAIL" \
|
2012-11-07 18:38:21 -05:00
|
|
|
-d "type=private" -d "content=test" \
|
2012-11-26 10:30:26 -05:00
|
|
|
-d "to=RECIPIENT_EMAIL"
|
2012-10-25 00:11:28 -04:00
|
|
|
|
2013-07-24 17:53:39 -04:00
|
|
|
curl https://api.zulip.com/v1/get_messages \
|
2013-05-29 14:00:27 -04:00
|
|
|
-d "api-key=BOT_API_KEY" \
|
|
|
|
-d "email=BOT_EMAIL"
|
2012-10-02 16:28:47 -04:00
|
|
|
|