Draftin.com WebHook URL info

Interesting.

Draftin.com - WebHook URLs

There are a number of websites and services to which Draft can natively publish, including Wordpress, Reddit, {third example}. If there's a place we don't already post, you can use this to publish data securely to wherever you have access. Just add a URL and we'll POST your document's content to that URL.

If you'd like to test the WebHook, RequestBin is a great tool to use.

Here's an example of the JSON data we'll POST to your WebHook URL.

{   
    "id": your_document_id,
    "name": "The Name of your Document",
    "content": "The plain-text markdown of your document",
    "content_html": "Your document rendered as HTML",
    "user": {
        id: 1, 
        email: 'usersemail@example.com'
    },
    "created_at": "2013-05-23T14:11:54-05:00",
    "updated_at": "2013-05-23T14:11:58-05:00"
}
This is sent as a POST with a single parameter: 'payload'. If you return a Location header when Draft calls your WebHook, we'll store the Location as a "Published" link inside Draft.

#blogging - #api - #json - #rest - #programming

From JR's : articles
160 words - 1072 chars
created on
import date 2013-08-12 21:53:21 - #
source - versions - backlinks

Related articles
API-first-development design - Jun 23, 2014
Grebe API Returned JSON - Aug 19, 2014
Short list of REST API info - Jan 13, 2017
Indieweb links aug 29, 2016 - Aug 29, 2016
Web-based publishing platforms that I've created - Mar 03, 2015
more >>



A     A     A     A     A

© 2013-2017 JotHut - Online notebook

current date: Jun 27, 2022 - 7:27 p.m. EDT