From e164f69b01fe5ed79e14d1576928338c118040f7 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Apr 2012 11:41:01 +0200 Subject: [PATCH] api docs --- htdocs/application/views/api_help.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/htdocs/application/views/api_help.php b/htdocs/application/views/api_help.php index 9cd5274..8a6c33c 100755 --- a/htdocs/application/views/api_help.php +++ b/htdocs/application/views/api_help.php @@ -9,7 +9,7 @@

Return values

- On success, the API returns the paste URL in JSON format: {"url":""}
+ On success, the API returns the paste URL in JSON format: {"url":""}
On error, the API returns the error message in JSON format: {"error":"missing paste text"}

@@ -31,6 +31,12 @@ Possible values:

+ expire=[minutes] +

Set paste expiration.

+ + reply=[pasteid] +

Reply to existing paste.

+

Examples

 

@@ -46,6 +52,10 @@ curl -d lang=php --data-urlencode text@main.php

Create a paste with PHP syntax highlighting.

+

Get paste ;-)

+ curl +

Display paste.

+ load->view("defaults/footer");?>