<p>The usage of the API is very simple, you have to make a push request to {{domain}}/user/api which have to include the folowing Arguments:</p>
<p>The usage of the API is very simple, you have to make a POST request to {{domain}}/user/api which have to include the folowing Arguments as JSON Body:</p>
<ul>
<ul>
<li>short: the short URL you want to get. example: {{domain}}/example</li>
<li>short: the short URL you want to get. example: {{domain}}/example</li>
<li>long: the long URL you want to short</li>
<li>long: the long URL you want to short</li>
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<li>password: this value contains the password, that is needed to short a link.</li>
<li>password: this value contains the password, that is needed to short a link.</li>
{% endif %}
{% endif %}
</ul>
</ul>
<p>example API call with curl: <i>curl -d "{% if apikey %}apikey={{apikey}}&{% endif %}short={{domain}}/example&long=http://example.com" -X POST {{url_scheme}}://{{domain}}/user/api</i>
<p>Except long all parameters are optional.</p>
<h2>Responses from Server</h2>
<h2>Responses from Server</h2>
<p>The response from the server is always made in json format it includes the following arguments:</p>
<p>The response from the server is always made in json format it includes the following arguments:</p>