mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 04:51:08 -05:00
API help: Explain how to create a paste via a pipe.
This commit is contained in:
parent
226780d97d
commit
cf2c15181a
@ -74,6 +74,10 @@
|
||||
<code>curl -d lang=php --data-urlencode text@main.php <?php echo site_url('api/create'); ?></code>
|
||||
<p class="explain">Create a paste with PHP syntax highlighting.</p>
|
||||
|
||||
<h3>Create paste via a pipe</h3>
|
||||
<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>Get paste ;-)</h3>
|
||||
<code>curl <?php echo site_url('view/raw/[pasteid]'); ?></code>
|
||||
<p class="explain">Display paste.</p>
|
||||
|
@ -69,6 +69,10 @@
|
||||
<code>curl -d lang=php --data-urlencode text@main.php <?php echo site_url('api/create'); ?></code>
|
||||
<p class="explain">Create a paste with PHP syntax highlighting.</p>
|
||||
|
||||
<h3>Create paste via a pipe</h3>
|
||||
<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>Get paste ;-)</h3>
|
||||
<code>curl <?php echo site_url('view/raw/[pasteid]'); ?></code>
|
||||
<p class="explain">Display paste.</p>
|
||||
|
@ -69,6 +69,10 @@
|
||||
<code>curl -d lang=php --data-urlencode text@main.php <?php echo site_url('api/create'); ?></code>
|
||||
<p class="explain">Create a paste with PHP syntax highlighting.</p>
|
||||
|
||||
<h3>Create paste via a pipe</h3>
|
||||
<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>Get paste ;-)</h3>
|
||||
<code>curl <?php echo site_url('view/raw/[pasteid]'); ?></code>
|
||||
<p class="explain">Display paste.</p>
|
||||
|
@ -74,6 +74,10 @@
|
||||
<code>curl -d lang=php --data-urlencode text@main.php <?php echo site_url('api/create'); ?></code>
|
||||
<p class="explain">Create a paste with PHP syntax highlighting.</p>
|
||||
|
||||
<h3>Create paste via a pipe</h3>
|
||||
<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>Get paste ;-)</h3>
|
||||
<code>curl <?php echo site_url('view/raw/[pasteid]'); ?></code>
|
||||
<p class="explain">Display paste.</p>
|
||||
|
@ -74,6 +74,10 @@
|
||||
<code>curl -d lang=php --data-urlencode text@main.php <?php echo site_url('api/create'); ?></code>
|
||||
<p class="explain">Create a paste with PHP syntax highlighting.</p>
|
||||
|
||||
<h3>Create paste via a pipe</h3>
|
||||
<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>Get paste ;-)</h3>
|
||||
<code>curl <?php echo site_url('view/raw/[pasteid]'); ?></code>
|
||||
<p class="explain">Display paste.</p>
|
||||
|
@ -74,6 +74,10 @@
|
||||
<code>curl -d lang=php --data-urlencode text@main.php <?php echo site_url('api/create'); ?></code>
|
||||
<p class="explain">Create a paste with PHP syntax highlighting.</p>
|
||||
|
||||
<h3>Create paste via a pipe</h3>
|
||||
<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>Get paste ;-)</h3>
|
||||
<code>curl <?php echo site_url('view/raw/[pasteid]'); ?></code>
|
||||
<p class="explain">Display paste.</p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user