
This must be deployed after we update our running nginx configuration to serve api.humbughq.com. (imported from commit b5c34ebdd595f55eecd6dca6a18a37f105107bd5)
14 lines
326 B
Bash
Executable file
14 lines
326 B
Bash
Executable file
#!/bin/sh
|
|
# Two quick API tests using curl
|
|
|
|
curl https://api.humbughq.com/v1/send_message \
|
|
-d "api-key=BOT_API_KEY" \
|
|
-d "email=BOT_EMAIL" \
|
|
-d "type=private" -d "content=test" \
|
|
-d "to=RECIPIENT_EMAIL"
|
|
|
|
curl https://api.humbughq.com/v1/get_messages \
|
|
-d "api-key=BOT_API_KEY" \
|
|
-d "email=BOT_EMAIL"
|
|
|