API
Create pastes from the commandline
API URL
http://pb.stoleyour.com/api/create
Return values
On success, the API returns the paste URL: http://pb.stoleyour.com/view/[pasteid]
On error, the API returns the error message: Error: Missing paste text
POST parameters
text=[your paste text]
The paste content. Required.
title=[title]
Title for the paste.
name=[name]
The author's name.
private=1
Make paste private.
lang=[language]
Use alternative syntax highlighting.
Possible values: html5, css, javascript, php, python, ruby, lua, bash, erlang, go, c, cpp, diff, latex, sql, xml, text, 0, 4cs, 6502acme, 6502kickass, 6502tasm, 68000devpac, abap, actionscript, actionscript3, ada, algol68, apache, applescript, apt_sources, asm, asp, autoconf, autohotkey, autoit, avisynth, awk, bascomavr, basic4gl, bf, bibtex, blitzbasic, bnf, boo, c_loadrunner, c_mac, caddcl, cadlisp, cfdg, cfm, chaiscript, cil, clojure, cmake, cobol, coffeescript, csharp, cuesheet, d, dcs, delphi, div, dos, dot, e, ecmascript, eiffel, email, epc, euphoria, f1, falcon, fo, fortran, freebasic, fsharp, gambas, gdb, genero, genie, gettext, glsl, gml, gnuplot, groovy, gwbasic, haskell, hicest, hq9plus, html4strict, icon, idl, ini, inno, intercal, io, j, java, java5, jquery, klonec, klonecpp, lb, lisp, llvm, locobasic, logtalk, lolcode, lotusformulas, lotusscript, lscript, lsl2, m68k, magiksf, make, mapbasic, matlab, mirc, mmix, modula2, modula3, mpasm, mxml, mysql, newlisp, nsis, oberon2, objc, objeck, ocaml, oobas, oracle11, oracle8, oxygene, oz, pascal, pcre, per, perl, perl6, pf, pic16, pike, pixelbender, pli, plsql, postgresql, povray, powerbuilder, powershell, proftpd, progress, prolog, properties, providex, purebasic, q, qbasic, rails, rebol, reg, robots, rpmspec, rsplus, sas, scala, scheme, scilab, sdlbasic, smalltalk, smarty, systemverilog, tcl, teraterm, thinbasic, tsql, typoscript, unicon, uscript, vala, vb, vbnet, verilog, vhdl, vim, visualfoxpro, visualprolog, whitespace, whois, winbatch, xbasic, xorg_conf, xpp, yaml, z80, zxbasic
expire=[minutes]
Set paste expiration.
reply=[pasteid]
Reply to existing paste.
Examples
Create paste
curl -d text='this is my text' http://pb.stoleyour.com/api/create
Create a paste with the text 'this is my text'.
Create paste from a file
curl -d private=1 -d name=Herbert --data-urlencode text@/etc/passwd http://pb.stoleyour.com/api/create
Create a private paste with the author 'Herbert' and the contents of '/etc/passwd'.
Create paste from a php file
curl -d lang=php --data-urlencode text@main.php http://pb.stoleyour.com/api/create
Create a paste with PHP syntax highlighting.
Get paste ;-)
curl http://pb.stoleyour.com/view/raw/[pasteid]
Display paste.