Github Webhooks + Cloudant
At Cloudant.com:
- created a
webhooked-wiki
database inlabs.cloudant.com
- generated an API Key & Secret (kept a copy of both for later use)
- changed that API Key's permission from "Reader" to "Writer" (only)
At Github.com:
- created this repo
- went to
Settings | Webhooks & Services
for the repo & added a webhook toPOST
tohttps://API_KEY:API_SECRET@labs.cloudant.com/webhooked-wiki
- set the "Payload version" dropdown to
application/vnd.github.v3+json
- set it to "Send me everything."
- saved it.
- reloaded the
Webhooks & Services
page and was happy to see a green checkmark showing that the webhook succeeded.
Back at Cloudant.com:
- checked the contents of the DB which now contained this document
{
"_id": "48117e624b7c7046321a91d7d9458466",
"_rev": "1-1b43993ced1056aba9cdb3e3b05be0e5",
"zen": "Anything added dilutes everything else.",
"hook_id": 1808374
}