2012-10-01 21:36:44 +02:00
|
|
|
#!/bin/sh
|
|
|
|
# Two quick API tests using curl
|
2012-10-02 23:25:14 +02:00
|
|
|
curl -k --digest -u tabbott:xxxxxxxxxxxxxxxxx https://app.humbughq.com/api/v1/send_message -d "api-key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -d "email=tabbott@humbughq.com" -d "type=personal" -d "content=test" -d "recipient=tabbott@humbughq.com"
|
2012-10-02 22:28:47 +02:00
|
|
|
curl -k --digest -u "tabbott:xxxxxxxxxxxxxxxxx" https://app.humbughq.com/api/v1/get_messages -d "api-key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -d "email=tabbott@humbughq.com"
|
|
|
|
|
|
|
|
# Replace '-k --digest -u tabbott:xxxxxxxxxxxxxxxxx https://app.humbughq.com'
|
|
|
|
# with "http://127.0.0.1:8000" for local testing
|