Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (12 sloc) 0.533 kb
<section name="curl" class="curl">
<p class="ioDesc">Request</p>
<pre class="incoming"><code class="language-bash">curl --include \
<% if @method is 'HEAD' : %> -I \
<% else if @method isnt 'GET' or @body: %> --request <%= @method %> \
<% end %>
<% if @headers: %><% for header,value of @headers: %>
--header <%= @helpers.escape "#{header}: #{value}" %> \
<% end %>
<% end %><% if @body: %> --data-binary '<%= @body.replace(/(')/g, "\\$1") %>' \
<% end %> '<%= @apiUrl %><%= @url %>'</code></pre>
</section>
Jump to Line
Something went wrong with that request. Please try again.