#webhooker - A simple webhooks implementation that uses rabbit for probably too much. (or not quite enough)
#For Subscribers
# Request
POST /api/register
{
"url": "https://user-e-nelson.com/api/sourceapp-callback",
"email": "[email protected]",
"name": "Bropocalypse.com"
}
# Response
STATUS 201 Created
BODY "An api access key has been emailed to the specified address."
# Request
POST /api/webhook
{
"evt": "user.*",
"src": "sourceApp",
"key": "Company_123"
}
# Response
STATUS 201 Created
HEADER "Location": "https://webhooker.com/api/webhook/c0bfa00b-02be-4493-9464-29f185836d4a"
Stand up an api listening at the url you specified when creating the webhook listening for messages such as:
# Request
POST https://user-e-nelson.com/api/sourceapp-callback
{
"evt": "user.new",
"src": "sourceApp",
"key": "Company_123",
"time": "2015-01-01 3:00:00 UCT", // or something
"data": {
"user_email": "[email protected]",
"user_name": "Somenew User",
"role": "king of the universe"
}
}
# Response
STATUS 200 OK
#License MIT License