2012-10-01 21:36:44 +02:00
|
|
|
#!/bin/sh
|
|
|
|
# Two quick API tests using curl
|
2012-10-25 06:11:28 +02:00
|
|
|
|
2012-10-27 17:36:55 +02:00
|
|
|
curl https://humbughq.com/api/v1/send_message \
|
2012-10-25 06:11:28 +02:00
|
|
|
-d "api-key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
|
|
|
|
-d "email=tabbott@humbughq.com" \
|
|
|
|
-d "type=personal" -d "content=test" \
|
|
|
|
-d "recipient=tabbott@humbughq.com"
|
|
|
|
|
2012-10-27 17:36:55 +02:00
|
|
|
curl https://humbughq.com/api/v1/get_messages \
|
2012-10-25 06:11:28 +02:00
|
|
|
-d "api-key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
|
|
|
|
-d "email=tabbott@humbughq.com"
|
2012-10-02 22:28:47 +02:00
|
|
|
|
2012-10-27 17:36:55 +02:00
|
|
|
# Or replace https://humbughq.com with your local test instance
|