Guest User

Untitled

a guest
Jan 29th, 2016
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.93 KB | None | 0 0
  1. 4cs = 4CS
  2. 6502acme = 6502 ACME Cross Assembler
  3. 6502kickass = 6502 Kick Assembler
  4. 6502tasm = 6502 TASM/64TASS
  5. abap = ABAP
  6. actionscript = ActionScript
  7. actionscript3 = ActionScript 3
  8. ada = Ada
  9. aimms = AIMMS
  10. algol68 = ALGOL 68
  11. apache = Apache Log
  12. applescript = AppleScript
  13. apt_sources = APT Sources
  14. arm = ARM
  15. asm = ASM (NASM)
  16. asp = ASP
  17. asymptote = Asymptote
  18. autoconf = autoconf
  19. autohotkey = Autohotkey
  20. autoit = AutoIt
  21. avisynth = Avisynth
  22. awk = Awk
  23. bascomavr = BASCOM AVR
  24. bash = Bash
  25. basic4gl = Basic4GL
  26. dos = Batch
  27. bibtex = BibTeX
  28. blitzbasic = Blitz Basic
  29. b3d = Blitz3D
  30. bmx = BlitzMax
  31. bnf = BNF
  32. boo = BOO
  33. bf = BrainFuck
  34. c = C
  35. c_winapi = C (WinAPI)
  36. c_mac = C for Macs
  37. cil = C Intermediate Language
  38. csharp = C#
  39. cpp = C++
  40. cpp-winapi = C++ (WinAPI)
  41. cpp-qt = C++ (with Qt extensions)
  42. c_loadrunner = C: Loadrunner
  43. caddcl = CAD DCL
  44. cadlisp = CAD Lisp
  45. cfdg = CFDG
  46. chaiscript = ChaiScript
  47. chapel = Chapel
  48. clojure = Clojure
  49. klonec = Clone C
  50. klonecpp = Clone C++
  51. cmake = CMake
  52. cobol = COBOL
  53. coffeescript = CoffeeScript
  54. cfm = ColdFusion
  55. css = CSS
  56. cuesheet = Cuesheet
  57. d = D
  58. dart = Dart
  59. dcl = DCL
  60. dcpu16 = DCPU-16
  61. dcs = DCS
  62. delphi = Delphi
  63. oxygene = Delphi Prism (Oxygene)
  64. diff = Diff
  65. div = DIV
  66. dot = DOT
  67. e = E
  68. ezt = Easytrieve
  69. ecmascript = ECMAScript
  70. eiffel = Eiffel
  71. email = Email
  72. epc = EPC
  73. erlang = Erlang
  74. fsharp = F#
  75. falcon = Falcon
  76. fo = FO Language
  77. f1 = Formula One
  78. fortran = Fortran
  79. freebasic = FreeBasic
  80. freeswitch = FreeSWITCH
  81. gambas = GAMBAS
  82. gml = Game Maker
  83. gdb = GDB
  84. genero = Genero
  85. genie = Genie
  86. gettext = GetText
  87. go = Go
  88. groovy = Groovy
  89. gwbasic = GwBasic
  90. haskell = Haskell
  91. haxe = Haxe
  92. hicest = HicEst
  93. hq9plus = HQ9 Plus
  94. html4strict = HTML
  95. html5 = HTML 5
  96. icon = Icon
  97. idl = IDL
  98. ini = INI file
  99. inno = Inno Script
  100. intercal = INTERCAL
  101. io = IO
  102. ispfpanel = ISPF Panel Definition
  103. j = J
  104. java = Java
  105. java5 = Java 5
  106. javascript = JavaScript
  107. jcl = JCL
  108. jquery = jQuery
  109. json = JSON
  110. julia = Julia
  111. kixtart = KiXtart
  112. latex = Latex
  113. ldif = LDIF
  114. lb = Liberty BASIC
  115. lsl2 = Linden Scripting
  116. lisp = Lisp
  117. llvm = LLVM
  118. locobasic = Loco Basic
  119. logtalk = Logtalk
  120. lolcode = LOL Code
  121. lotusformulas = Lotus Formulas
  122. lotusscript = Lotus Script
  123. lscript = LScript
  124. lua = Lua
  125. m68k = M68000 Assembler
  126. magiksf = MagikSF
  127. make = Make
  128. mapbasic = MapBasic
  129. matlab = MatLab
  130. mirc = mIRC
  131. mmix = MIX Assembler
  132. modula2 = Modula 2
  133. modula3 = Modula 3
  134. 68000devpac = Motorola 68000 HiSoft Dev
  135. mpasm = MPASM
  136. mxml = MXML
  137. mysql = MySQL
  138. nagios = Nagios
  139. netrexx = NetRexx
  140. newlisp = newLISP
  141. nginx = Nginx
  142. nimrod = Nimrod
  143. text = None
  144. nsis = NullSoft Installer
  145. oberon2 = Oberon 2
  146. objeck = Objeck Programming Langua
  147. objc = Objective C
  148. ocaml-brief = OCalm Brief
  149. ocaml = OCaml
  150. octave = Octave
  151. pf = OpenBSD PACKET FILTER
  152. glsl = OpenGL Shading
  153. oobas = Openoffice BASIC
  154. oracle11 = Oracle 11
  155. oracle8 = Oracle 8
  156. oz = Oz
  157. parasail = ParaSail
  158. parigp = PARI/GP
  159. pascal = Pascal
  160. pawn = Pawn
  161. pcre = PCRE
  162. per = Per
  163. perl = Perl
  164. perl6 = Perl 6
  165. php = PHP
  166. php-brief = PHP Brief
  167. pic16 = Pic 16
  168. pike = Pike
  169. pixelbender = Pixel Bender
  170. plsql = PL/SQL
  171. postgresql = PostgreSQL
  172. postscript = PostScript
  173. povray = POV-Ray
  174. powershell = Power Shell
  175. powerbuilder = PowerBuilder
  176. proftpd = ProFTPd
  177. progress = Progress
  178. prolog = Prolog
  179. properties = Properties
  180. providex = ProvideX
  181. puppet = Puppet
  182. purebasic = PureBasic
  183. pycon = PyCon
  184. python = Python
  185. pys60 = Python for S60
  186. q = q/kdb+
  187. qbasic = QBasic
  188. qml = QML
  189. rsplus = R
  190. racket = Racket
  191. rails = Rails
  192. rbs = RBScript
  193. rebol = REBOL
  194. reg = REG
  195. rexx = Rexx
  196. robots = Robots
  197. rpmspec = RPM Spec
  198. ruby = Ruby
  199. gnuplot = Ruby Gnuplot
  200. rust = Rust
  201. sas = SAS
  202. scala = Scala
  203. scheme = Scheme
  204. scilab = Scilab
  205. scl = SCL
  206. sdlbasic = SdlBasic
  207. smalltalk = Smalltalk
  208. smarty = Smarty
  209. spark = SPARK
  210. sparql = SPARQL
  211. sqf = SQF
  212. sql = SQL
  213. standardml = StandardML
  214. stonescript = StoneScript
  215. sclang = SuperCollider
  216. swift = Swift
  217. systemverilog = SystemVerilog
  218. tsql = T-SQL
  219. tcl = TCL
  220. teraterm = Tera Term
  221. thinbasic = thinBasic
  222. typoscript = TypoScript
  223. unicon = Unicon
  224. uscript = UnrealScript
  225. ups = UPC
  226. urbi = Urbi
  227. vala = Vala
  228. vbnet = VB.NET
  229. vbscript = VBScript
  230. vedit = Vedit
  231. verilog = VeriLog
  232. vhdl = VHDL
  233. vim = VIM
  234. visualprolog = Visual Pro Log
  235. vb = VisualBasic
  236. visualfoxpro = VisualFoxPro
  237. whitespace = WhiteSpace
  238. whois = WHOIS
  239. winbatch = Winbatch
  240. xbasic = XBasic
  241. xml = XML
  242. xorg_conf = Xorg Config
  243. xpp = XPP
  244. yaml = YAML
  245. z80 = Z80 Assembler
  246. zxbasic = ZXBasic
  247. Creating A New Paste, The 'api_paste_expire_date' Paramater In Detail
  248. We have 7 valid values available which you can use with the 'api_paste_expire_date' parameter:
  249. N = Never
  250. 10M = 10 Minutes
  251. 1H = 1 Hour
  252. 1D = 1 Day
  253. 1W = 1 Week
  254. 2W = 2 Weeks
  255. 1M = 1 Month
  256. Creating A New Paste, The 'api_paste_private' Paramater In Detail
  257. We have 3 valid values available which you can use with the 'api_paste_private' parameter:
  258. 0 = Public
  259. 1 = Unlisted
  260. 2 = Private (only allowed in combination with api_user_key, as you have to be logged into your account to access the paste)
  261. Creating An 'api_user_key' Using The API Member Login System
  262. With this API we allow you to create applications which use the Pastebin members system. Sending a valid POST request to our API login system will return a unique user session key which can then be used to create a paste as a logged in user for example. Please send a POST request to the link shown below:
  263. http://pastebin.com/api/api_login.php
  264. Include all the following POST parameters when you request the URL:
  265. 1. api_dev_key - this is your API Developer Key, in your case: YOUR API DEVELOPER KEY
  266. 2. api_user_name - this is the username of the user you want to login.
  267. 3. api_user_password - this is the password of the user you want to login.
  268.  
  269. If all 3 values match, a valid user session key will be returned. This key can be used as the 'api_user_key' paramater. Multiple keys can be active at the same time for the same user. We do this to allow people to be signed in at multiple locations at once. The api_user_key does not expire.
  270.  
  271. Below is a PHP example using cURL how to create a valid 'api_user_key':
  272. $api_dev_key = 'YOUR API DEVELOPER KEY';
  273. $api_user_name = 'a_users_username';
  274. $api_user_password = 'a_users_password';
  275. $api_user_name = urlencode($api_user_name);
  276. $api_user_password = urlencode($api_user_password);
  277. $url = 'http://pastebin.com/api/api_login.php';
  278. $ch = curl_init($url);
  279.  
  280. curl_setopt($ch, CURLOPT_POST, true);
  281. curl_setopt($ch, CURLOPT_POSTFIELDS, 'api_dev_key='.$api_dev_key.'&api_user_name='.$api_user_name.'&api_user_password='.$api_user_password.'');
  282. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  283. curl_setopt($ch, CURLOPT_VERBOSE, 1);
  284. curl_setopt($ch, CURLOPT_NOBODY, 0);
  285.  
  286. $response = curl_exec($ch);
  287. echo $response;
  288. Possible Good API Responses: (example)
  289. 6c6d3fe13b19bbd6e479b705df0a607f
  290. Possible Bad API Responses:
  291. Bad API request, use POST request, not GET
  292. Bad API request, invalid api_dev_key
  293. Bad API request, invalid login
  294. Bad API request, account not active
  295. Bad API request, invalid POST parameters
  296. If you quickly need to set just one api_user_key, you can use this form to generate one.
  297. Listing Pastes Created By A User
  298. With this API you can list all the pastes created by a certain user. You will need send a valid POST request to the URL below to access the data:
  299. http://pastebin.com/api/api_post.php
  300. Include all the following POST parameters when you request the URL:
  301. 1. api_dev_key - this is your API Developer Key, in your case: YOUR API DEVELOPER KEY
  302. 2. api_user_key - this is the session key of the logged in user. How to obtain such a key
  303. 3. api_results_limit - this is not required, by default its set to 50, min value is 1, max value is 1000
  304. 4. api_option - set as 'list'
  305.  
  306. Below is a PHP example using cURL how to list pastes:
  307. $api_dev_key = 'YOUR API DEVELOPER KEY';
  308. $api_user_key = '';
  309. $api_results_limit = '100';
  310. $url = 'http://pastebin.com/api/api_post.php';
  311. $ch = curl_init($url);
  312.  
  313. curl_setopt($ch, CURLOPT_POST, true);
  314. curl_setopt($ch, CURLOPT_POSTFIELDS, 'api_option=list&api_user_key='.$api_user_key.'&api_dev_key='.$api_dev_key.'&api_results_limit='.$api_results_limit.'');
  315. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  316. curl_setopt($ch, CURLOPT_VERBOSE, 1);
  317. curl_setopt($ch, CURLOPT_NOBODY, 0);
  318.  
  319. $response = curl_exec($ch);
  320. echo $response;
  321. Below is an example output of a users paste listing:
  322. <paste>
  323. <paste_key>0b42rwhf</paste_key>
  324. <paste_date>1297953260</paste_date>
  325. <paste_title>javascript test</paste_title>
  326. <paste_size>15</paste_size>
  327. <paste_expire_date>1297956860</paste_expire_date>
  328. <paste_private>0</paste_private>
  329. <paste_format_long>JavaScript</paste_format_long>
  330. <paste_format_short>javascript</paste_format_short>
  331. <paste_url>http://pastebin.com/0b42rwhf</paste_url>
  332. <paste_hits>15</paste_hits>
  333. </paste>
  334. <paste>
  335. <paste_key>0C343n0d</paste_key>
  336. <paste_date>1297694343</paste_date>
  337. <paste_title>Welcome To Pastebin V3</paste_title>
  338. <paste_size>490</paste_size>
  339. <paste_expire_date>0</paste_expire_date>
  340. <paste_private>0</paste_private>
  341. <paste_format_long>None</paste_format_long>
  342. <paste_format_short>text</paste_format_short>
  343. <paste_url>http://pastebin.com/0C343n0d</paste_url>
  344. <paste_hits>65</paste_hits>
  345. </paste>
  346. Other Possible Good API Responses:
  347. No pastes found.
  348. Possible Bad API Responses:
  349. Bad API request, invalid api_option
  350. Bad API request, invalid api_dev_key
  351. Bad API request, invalid api_user_key
  352. Listing Trending Pastes
  353. With this API you can list the 18 currently trending pastes. You will need send a valid POST request to the URL below to access the data:
  354. http://pastebin.com/api/api_post.php
  355. Include all the following POST parameters when you request the URL:
  356. 1. api_dev_key - this is your API Developer Key, in your case: YOUR API DEVELOPER KEY
  357. 2. api_option - set as 'trends'
  358.  
  359. Below is a PHP example using cURL how to list pastes:
  360. $api_dev_key = 'YOUR API DEVELOPER KEY';
  361. $url = 'http://pastebin.com/api/api_post.php';
  362. $ch = curl_init($url);
  363.  
  364. curl_setopt($ch, CURLOPT_POST, true);
  365. curl_setopt($ch, CURLOPT_POSTFIELDS, 'api_option=trends&api_dev_key='.$api_dev_key.'');
  366. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  367. curl_setopt($ch, CURLOPT_VERBOSE, 1);
  368. curl_setopt($ch, CURLOPT_NOBODY, 0);
  369.  
  370. $response = curl_exec($ch);
  371. echo $response;
  372. Below is an example output of a users paste listing:
  373. <paste>
  374. <paste_key>4eWYATXe</paste_key>
  375. <paste_date>1319458935</paste_date>
  376. <paste_title>577 French MPs</paste_title>
  377. <paste_size>29397</paste_size>
  378. <paste_expire_date>0</paste_expire_date>
  379. <paste_private>0</paste_private>
  380. <paste_format_long>None</paste_format_long>
  381. <paste_format_short>text</paste_format_short>
  382. <paste_url>http://pastebin.com/4eWYATXe</paste_url>
  383. <paste_hits>804</paste_hits>
  384. </paste>
  385. Possible Bad API Responses:
  386. Bad API request, invalid api_option
  387. Bad API request, invalid api_dev_key
  388. Deleting A Paste Created By A User
  389. With this API you can delete pastes created by certain users. You will need to send a valid POST request to the URL below to access the data:
  390. http://pastebin.com/api/api_post.php
  391. Include all the following POST parameters when you request the URL:
  392. 1. api_dev_key - this is your API Developer Key, in your case: YOUR API DEVELOPER KEY
  393. 2. api_user_key - this is the session key of the logged in user. How to obtain such a key
  394. 3. api_paste_key - this is the unique key of the paste you want to delete.
  395. 4. api_option - set as 'delete'
  396.  
  397. Below is a PHP example using cURL how to create a valid 'api_user_key':
  398. $api_dev_key = 'YOUR API DEVELOPER KEY';
  399. $api_user_key = '';
  400. $api_paste_key = '';
  401. $url = 'http://pastebin.com/api/api_post.php';
  402. $ch = curl_init($url);
  403.  
  404. curl_setopt($ch, CURLOPT_POST, true);
  405. curl_setopt($ch, CURLOPT_POSTFIELDS, 'api_option=delete&api_user_key='.$api_user_key.'&api_dev_key='.$api_dev_key.'&api_paste_key='.$api_paste_key.'');
  406. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  407. curl_setopt($ch, CURLOPT_VERBOSE, 1);
  408. curl_setopt($ch, CURLOPT_NOBODY, 0);
  409.  
  410. $response = curl_exec($ch);
  411. echo $response;
  412. Possible Good API Responses:
  413. Paste Removed
  414. Possible Bad API Responses:
  415. Bad API request, invalid api_option
  416. Bad API request, invalid api_dev_key
  417. Bad API request, invalid api_user_key
  418. Bad API request, invalid permission to remove paste
  419. Getting A Users Information And Settings
  420. With this API you can obtain a users personal information and certain settings. You will need to send a valid POST request to the URL below to access the data:
  421. http://pastebin.com/api/api_post.php
  422. Include all the following POST parameters when you request the URL:
  423. 1. api_dev_key - this is your API Developer Key, in your case: YOUR API DEVELOPER KEY
  424. 2. api_user_key - this is the session key of the logged in user. How to obtain such a key
  425. 3. api_option - set as 'userdetails'
  426.  
  427. Below is a PHP example using cURL how to create a valid 'api_user_key':
  428. $api_dev_key = 'YOUR API DEVELOPER KEY';
  429. $api_user_key = '';
  430. $url = 'http://pastebin.com/api/api_post.php';
  431. $ch = curl_init($url);
  432.  
  433. curl_setopt($ch, CURLOPT_POST, true);
  434. curl_setopt($ch, CURLOPT_POSTFIELDS, 'api_option=userdetails&api_user_key='.$api_user_key.'&api_dev_key='.$api_dev_key.'');
  435. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  436. curl_setopt($ch, CURLOPT_VERBOSE, 1);
  437. curl_setopt($ch, CURLOPT_NOBODY, 0);
  438.  
  439. $response = curl_exec($ch);
  440. echo $response;
  441. Below is an example output of a user information listing:
  442. <user>
  443. <user_name>wiz_kitty</user_name>
  444. <user_format_short>text</user_format_short>
  445. <user_expiration>N</user_expiration>
  446. <user_avatar_url>http://pastebin.com/cache/a/1.jpg</user_avatar_url>
  447. <user_private>1</user_private> (0 Public, 1 Unlisted, 2 Private)
  448. <user_website>http://myawesomesite.com</user_website>
  449. <user_email>oh@dear.com</user_email>
  450. <user_location>New York</user_location>
  451. <user_account_type>1</user_account_type> (0 normal, 1 PRO)
  452. </user>
  453. Possible Bad API Responses:
  454. Bad API request, invalid api_option
  455. Bad API request, invalid api_dev_key
  456. Bad API request, invalid api_user_key
  457. Getting raw paste output of users pastes including 'private' pastes
  458. With this API you can obtain the raw paste output of a users pastes, including private pastes:
  459. http://pastebin.com/api/api_raw.php
  460. Include all the following POST parameters when you request the URL:
  461. 1. api_dev_key - this is your API Developer Key, in your case: YOUR API DEVELOPER KEY
  462. 2. api_user_key - this is the session key of the logged in user. How to obtain such a key
  463. 3. api_paste_key - this is paste key you want to fetch the data from.
  464. 4. api_option - set as 'show_paste'
  465.  
  466. Below is a PHP example using cURL how to fetch a users raw paste output:
  467. $api_dev_key = 'YOUR API DEVELOPER KEY';
  468. $api_user_key = '';
  469. $url = 'http://pastebin.com/api/api_raw.php';
  470. $ch = curl_init($url);
  471.  
  472. curl_setopt($ch, CURLOPT_POST, true);
  473. curl_setopt($ch, CURLOPT_POSTFIELDS, 'api_option=show_paste&api_user_key='.$api_user_key.'&api_dev_key='.$api_dev_key.'&api_paste_key=A_VALID_PASTE_KEY_HERE');
  474. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  475. curl_setopt($ch, CURLOPT_VERBOSE, 1);
  476. curl_setopt($ch, CURLOPT_NOBODY, 0);
Add Comment
Please, Sign In to add comment