Merge pull request #336 from The-Compiler/api-help-pipe

API help: Explain how to create a paste via a pipe.
This commit is contained in:
Claude 2016-01-07 22:49:12 +01:00
commit 9c72e8a93d
6 changed files with 24 additions and 0 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>