PasteBin API
You can access the pasting ability of the PasteBin via this API. To use it, you need to create a HTTP POST connection to this page with the following variables.
POST Variable
(CASE SENSITIVE)
code (REQUIRED)
title
expiration
password
highlightAs
private
lineNumbers
|
Description
Code to be pasted.
Title of the Paste
Time in seconds.
Password to protect with.
Language to highlight with.
Make paste Private?
Enable Line Numbers?
|
Default Value
NULL
NULL
3600 (1 HOUR)
NULL
txt
0 (false)
1 (true)
|
Language Highlight List
The PasteBin current supports the following languages for highlighting. Use the Code for use with the highlightAs variable.
Language
None
Action Script
ASP / ASP.net
ASM
Bash
C
C++
C#
Cold Fusion
CSS
DOS / Batch
Htaccess
HTML
Java
JavaScript
mIRC
MySQL
Pascal
Perl
PHP
Python
Ruby On Rails
SMARTY
Visual Basic / (Script)
Visual Basic.net
XML
Whitespace
Colbol
LOLCode
Diff
Change Me
|
Code
txt
action script
asp
asm
bash
c
cpp
csharp
cfm
css
dos
htaccess
html
java
js
mirc
mysql
pas
pl
php
py
rb
tpl
vb
vbnet
xml
ws
cbl
lolcode
diff
-1
|
|
PasteBin Tools /
Scripts Currently Avalible
Python Script by Guest
C Script by Biber
API Error Codes
On successful Paste you will be presented with the URL. Upon error you will be presented with an error below.
Code
-1
0
1
2
|
Meaning
Insert Failed
Unknown Error
code Var Missing or Empty
Caught By Spam Filter
|
|