MarkdownShare API

JSON API

Rather than using the website you may also submit text by POSTing your data directly to the creation end-point:

$ curl -H "Accept: application/json" -X POST --data "text=text+goes+here" https://markdownshare.com/create/

Or by reading the contents from a file:

$ curl -H "Accept: application/json" -X POST -F "text=</path/to/text.md" https://markdownshare.com/create/

If you wish to allow a post to expire then add an expire= parameter too:

ParameterMeaning
expire=NExpire in N seconds.
expire=NhExpire in N hours.
expire=NdExpire in N days.

Console Clients

There are many command-line paste-clients out there. If you've got pastebinit installed you can save this file beneath /usr/share/pastebin.d/ and use this site directly:

shelob ~ $ uptime | pastebinit -b http://markdownshare.com/
http://markdownshare.com/view/11