2012-10-01 15:36:44 -04:00
|
|
|
#!/bin/sh
|
|
|
|
# Two quick API tests using curl
|
2012-10-25 00:11:28 -04:00
|
|
|
|
2012-10-27 11:36:55 -04:00
|
|
|
curl https://humbughq.com/api/v1/send_message \
|
2012-10-25 00:11:28 -04:00
|
|
|
-d "api-key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
|
|
|
|
-d "email=tabbott@humbughq.com" \
|
2012-11-07 18:38:21 -05:00
|
|
|
-d "type=private" -d "content=test" \
|
2012-11-14 17:21:46 -05:00
|
|
|
-d "to=tabbott@humbughq.com"
|
2012-10-25 00:11:28 -04:00
|
|
|
|
2012-10-27 11:36:55 -04:00
|
|
|
curl https://humbughq.com/api/v1/get_messages \
|
2012-10-25 00:11:28 -04:00
|
|
|
-d "api-key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
|
|
|
|
-d "email=tabbott@humbughq.com"
|
2012-10-02 16:28:47 -04:00
|
|
|
|
2012-10-27 11:36:55 -04:00
|
|
|
# Or replace https://humbughq.com with your local test instance
|