You API key is: {{apikey}}
{% endif %}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:
example API call with curl: curl -d "apikey={{apikey}}&short={{domain}}/example&long=http://example.com" -X POST {{url_scheme}}://{{domain}}/user/api
The response from the server is always made in json format it includes the following arguments:
Code | Meaning |
---|---|
0 | Success |
1 | The short URL argument is missing |
2 | The long URL is missing. |
3 | The doamin for the short URL is not in the list of allowed domains |
4 | The short URL is already taken. |