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
Short list of REST API info - Jan 13, 2017
API-first-development design - Jun 23, 2014
Grebe API Returned JSON - Aug 19, 2014
Web-based publishing platforms that I've created - Mar 03, 2015
Rest and Json links to keep around - Oct 10, 2013
more >>



A     A     A     A     A

© 2013-2017 JotHut - Online notebook

current date: Mar 28, 2024 - 2:39 p.m. EDT