diff --git a/htdocs/themes/bootstrap/views/api_help.php b/htdocs/themes/bootstrap/views/api_help.php index 3cd2ea0..28e0cc1 100644 --- a/htdocs/themes/bootstrap/views/api_help.php +++ b/htdocs/themes/bootstrap/views/api_help.php @@ -9,18 +9,25 @@
Create pastes from the commandline
-
- On success, the API returns the paste URL:
- On error, the API returns the error message: Error: Missing paste text
-
+
text=[your paste text]
The paste content. Required.
@@ -45,9 +52,13 @@reply=[pasteid]
Reply to existing paste.
-+
+ On success, the API returns the paste URL:
+ On error, the API returns the error message: Error: Missing paste text
+
curl -d text='this is my text'
Create a paste with the text 'this is my text'.
diff --git a/htdocs/themes/default/views/api_help.php b/htdocs/themes/default/views/api_help.php index 43982c8..5caa976 100644 --- a/htdocs/themes/default/views/api_help.php +++ b/htdocs/themes/default/views/api_help.php @@ -5,17 +5,24 @@Create pastes from the commandline
- On success, the API returns the paste URL:
- On error, the API returns the error message: Error: Missing paste text
-
- +
text=[your paste text]
The paste content. Required.
@@ -40,9 +47,13 @@reply=[pasteid]
Reply to existing paste.
-+
+ On success, the API returns the paste URL:
+ On error, the API returns the error message: Error: Missing paste text
+
curl -d text='this is my text'
Create a paste with the text 'this is my text'.
diff --git a/htdocs/themes/geocities/views/api_help.php b/htdocs/themes/geocities/views/api_help.php index 3cd2ea0..5caa976 100644 --- a/htdocs/themes/geocities/views/api_help.php +++ b/htdocs/themes/geocities/views/api_help.php @@ -1,69 +1,75 @@ load->view("defaults/header");?> -Create pastes from the commandline
+Create pastes from the commandline
-
- On success, the API returns the paste URL:
- On error, the API returns the error message: Error: Missing paste text
-
+
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.
+text=[your paste text]
+ The paste content. Required.
-lang=[language]
-
- Use alternative syntax highlighting.
- Possible values:
-
title=[title]
+ Title for the paste.
-expire=[minutes]
- Set paste expiration.
+name=[name]
+ The author's name.
-reply=[pasteid]
- Reply to existing paste.
+private=1
+ Make paste private.
-+
lang=[language]
+
+ Use alternative syntax highlighting.
+ Possible values:
+
curl -d text='this is my text'
- Create a paste with the text 'this is my text'.
+expire=[minutes]
+ Set paste expiration.
-curl -d private=1 -d name=Herbert --data-urlencode text@/etc/passwd
- Create a private paste with the author 'Herbert' and the contents of '/etc/passwd'.
+reply=[pasteid]
+ Reply to existing paste.
-curl -d lang=php --data-urlencode text@main.php
- Create a paste with PHP syntax highlighting.
+
+ On success, the API returns the paste URL:
+ On error, the API returns the error message: Error: Missing paste text
+
curl -d text='this is my text'
+ Create a paste with the text 'this is my text'.
+ +curl -d private=1 -d name=Herbert --data-urlencode text@/etc/passwd
+ Create a private paste with the author 'Herbert' and the contents of '/etc/passwd'.
+ +curl -d lang=php --data-urlencode text@main.php
+ Create a paste with PHP syntax highlighting.
+ +curl
+ Display paste.
-curl
- Display paste.
-