aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2023-01-13 12:07:04 +0100
committerDaniel Lange <DLange@git.local>2023-01-13 12:09:23 +0100
commitd684709eae01e2d197780d8f6e0f5a888ff1c2c8 (patch)
treee039d5bd7e10d66bff4a0b989857b5cdd6b32f56
parent0bb46d5e0289d76998eb5bb323f49302a6c1a422 (diff)
downloadstikked-fit-d684709eae01e2d197780d8f6e0f5a888ff1c2c8.tar.gz
stikked-fit-d684709eae01e2d197780d8f6e0f5a888ff1c2c8.tar.bz2
stikked-fit-d684709eae01e2d197780d8f6e0f5a888ff1c2c8.zip
Add a(nother) real-world API usage example0.15.0-fit
-rw-r--r--htdocs/themes/bootstrap/views/api_help.php4
-rw-r--r--htdocs/themes/cleanwhite/views/api_help.php4
-rw-r--r--htdocs/themes/default/views/api_help.php4
-rw-r--r--htdocs/themes/geocities/views/api_help.php4
-rw-r--r--htdocs/themes/i386/views/api_help.php4
-rw-r--r--htdocs/themes/stikkedizr/views/api_help.php4
6 files changed, 24 insertions, 0 deletions
diff --git a/htdocs/themes/bootstrap/views/api_help.php b/htdocs/themes/bootstrap/views/api_help.php
index 2109feb..25e6160 100644
--- a/htdocs/themes/bootstrap/views/api_help.php
+++ b/htdocs/themes/bootstrap/views/api_help.php
@@ -78,6 +78,10 @@
<code>echo foo | curl --data-urlencode text@- <?php echo site_url('api/create'); ?></code>
<p class="explain">Create a paste based on standard output of a command.</p>
+ <h3>Create paste via a pipe with sudo, text format, setting the author and a 30 minute expiry</h3>
+ <code>sudo dmesg | curl -d private=1 -d lang=text -d name=`whoami` -d expire=30 --data-urlencode text@- <?php echo site_url('api/create'); ?></code>
+ <p class="explain">Create a paste based capturing sudo dmesg and showing how to employ optional parameters to the paste creation.</p>
+
<h3>Get paste ;-)</h3>
<code>curl <?php echo site_url('view/raw/[pasteid]'); ?></code>
<p class="explain">Display paste.</p>
diff --git a/htdocs/themes/cleanwhite/views/api_help.php b/htdocs/themes/cleanwhite/views/api_help.php
index 4806733..a36887b 100644
--- a/htdocs/themes/cleanwhite/views/api_help.php
+++ b/htdocs/themes/cleanwhite/views/api_help.php
@@ -73,6 +73,10 @@
<code>echo foo | curl --data-urlencode text@- <?php echo site_url('api/create'); ?></code>
<p class="explain">Create a paste based on standard output of a command.</p>
+ <h3>Create paste via a pipe with sudo, text format, setting the author and a 30 minute expiry</h3>
+ <code>sudo dmesg | curl -d private=1 -d lang=text -d name=`whoami` -d expire=30 --data-urlencode text@- <?php echo site_url('api/create'); ?></code>
+ <p class="explain">Create a paste based capturing sudo dmesg and showing how to employ optional parameters to the paste creation.</p>
+
<h3>Get paste ;-)</h3>
<code>curl <?php echo site_url('view/raw/[pasteid]'); ?></code>
<p class="explain">Display paste.</p>
diff --git a/htdocs/themes/default/views/api_help.php b/htdocs/themes/default/views/api_help.php
index 4806733..a36887b 100644
--- a/htdocs/themes/default/views/api_help.php
+++ b/htdocs/themes/default/views/api_help.php
@@ -73,6 +73,10 @@
<code>echo foo | curl --data-urlencode text@- <?php echo site_url('api/create'); ?></code>
<p class="explain">Create a paste based on standard output of a command.</p>
+ <h3>Create paste via a pipe with sudo, text format, setting the author and a 30 minute expiry</h3>
+ <code>sudo dmesg | curl -d private=1 -d lang=text -d name=`whoami` -d expire=30 --data-urlencode text@- <?php echo site_url('api/create'); ?></code>
+ <p class="explain">Create a paste based capturing sudo dmesg and showing how to employ optional parameters to the paste creation.</p>
+
<h3>Get paste ;-)</h3>
<code>curl <?php echo site_url('view/raw/[pasteid]'); ?></code>
<p class="explain">Display paste.</p>
diff --git a/htdocs/themes/geocities/views/api_help.php b/htdocs/themes/geocities/views/api_help.php
index 2109feb..25e6160 100644
--- a/htdocs/themes/geocities/views/api_help.php
+++ b/htdocs/themes/geocities/views/api_help.php
@@ -78,6 +78,10 @@
<code>echo foo | curl --data-urlencode text@- <?php echo site_url('api/create'); ?></code>
<p class="explain">Create a paste based on standard output of a command.</p>
+ <h3>Create paste via a pipe with sudo, text format, setting the author and a 30 minute expiry</h3>
+ <code>sudo dmesg | curl -d private=1 -d lang=text -d name=`whoami` -d expire=30 --data-urlencode text@- <?php echo site_url('api/create'); ?></code>
+ <p class="explain">Create a paste based capturing sudo dmesg and showing how to employ optional parameters to the paste creation.</p>
+
<h3>Get paste ;-)</h3>
<code>curl <?php echo site_url('view/raw/[pasteid]'); ?></code>
<p class="explain">Display paste.</p>
diff --git a/htdocs/themes/i386/views/api_help.php b/htdocs/themes/i386/views/api_help.php
index 2109feb..25e6160 100644
--- a/htdocs/themes/i386/views/api_help.php
+++ b/htdocs/themes/i386/views/api_help.php
@@ -78,6 +78,10 @@
<code>echo foo | curl --data-urlencode text@- <?php echo site_url('api/create'); ?></code>
<p class="explain">Create a paste based on standard output of a command.</p>
+ <h3>Create paste via a pipe with sudo, text format, setting the author and a 30 minute expiry</h3>
+ <code>sudo dmesg | curl -d private=1 -d lang=text -d name=`whoami` -d expire=30 --data-urlencode text@- <?php echo site_url('api/create'); ?></code>
+ <p class="explain">Create a paste based capturing sudo dmesg and showing how to employ optional parameters to the paste creation.</p>
+
<h3>Get paste ;-)</h3>
<code>curl <?php echo site_url('view/raw/[pasteid]'); ?></code>
<p class="explain">Display paste.</p>
diff --git a/htdocs/themes/stikkedizr/views/api_help.php b/htdocs/themes/stikkedizr/views/api_help.php
index 992c985..be94a02 100644
--- a/htdocs/themes/stikkedizr/views/api_help.php
+++ b/htdocs/themes/stikkedizr/views/api_help.php
@@ -78,6 +78,10 @@
<code>echo foo | curl --data-urlencode text@- <?php echo site_url('api/create'); ?></code>
<p class="explain">Create a paste based on standard output of a command.</p>
+ <h3>Create paste via a pipe with sudo, text format, setting the author and a 30 minute expiry</h3>
+ <code>sudo dmesg | curl -d private=1 -d lang=text -d name=`whoami` -d expire=30 --data-urlencode text@- <?php echo site_url('api/create'); ?></code>
+ <p class="explain">Create a paste based capturing sudo dmesg and showing how to employ optional parameters to the paste creation.</p>
+
<h3>Get paste ;-)</h3>
<code>curl <?php echo site_url('view/raw/[pasteid]'); ?></code>
<p class="explain">Display paste.</p>

© 2014-2024 Faster IT GmbH | imprint | privacy policy