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-11-26 16:30:26 +01:00
|
|
|
-d "api-key=YOUR_API_KEY" \
|
|
|
|
-d "email=YOUR_EMAIL" \
|
2012-11-08 00:38:21 +01:00
|
|
|
-d "type=private" -d "content=test" \
|
2012-11-26 16:30:26 +01:00
|
|
|
-d "to=RECIPIENT_EMAIL"
|
2012-10-25 06:11:28 +02:00
|
|
|
|
2012-10-27 17:36:55 +02:00
|
|
|
curl https://humbughq.com/api/v1/get_messages \
|
2012-11-26 16:30:26 +01:00
|
|
|
-d "api-key=YOUR_API_KEY" \
|
|
|
|
-d "email=YOUR_EMAIL"
|
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
|