1
0
Fork 0

Improved API help and style

Dieser Commit ist enthalten in:
sqozz 2016-02-13 07:01:42 +01:00
Ursprung 98fe49a761
Commit 681157d4ec
2 geänderte Dateien mit 12 neuen und 7 gelöschten Zeilen

Datei anzeigen

@ -101,12 +101,12 @@ span .description {
display: none;
opacity: 0;
text-align: left;
margin-left: -100px;
margin-left: -6%;
max-width: 300px;
margin-top: 10px;
padding: 3px;
box-shadow: 3px 3px 10px gray;
max-height: 33%;
max-height: 35%;
overflow-y: auto;
}

Datei anzeigen

@ -21,11 +21,16 @@
<a href="">
<div class="link">API</div>
<div class="description">
There is no dedicated API for schort. Just make a POST-request to / with the parameter "url" set to your desired destination. Schort will generate an id for your and gives back the short link in plain text.
<br/><br/>
If you wish to create a custom URL with your script, you can also set the parameter "wishId". If the requested id is free, schort will print out the short link with your requested id. If not, schort will just generate one and print that one out.
<br/><br/>
To resolve a link you just have to call the short url appendet by an plus sign ("+"). This makes schort to print out a plain text string of the original URL.
<ul>
<li>API</li>
<div>There is no dedicated API for schort. Just make a POST-request to / with the parameter "url" set to your desired destination. Schort will generate an id for your and gives back the short link in plain text.</div>
<br/>
<li>Creation of new links</li>
<div>If you wish to create a custom URL with your script, you can also set the parameter "wishId". If the requested id is free, schort will print out the short link with your requested id. If not, schort will just generate one and print that one out.</div>
<br/>
<li>Resolving links</li>
<div>To resolve a link you just have to make a GET-request and add the "resolve" parameter. The value of this parameter doesn't matter and gets ignored. This makes schort to print out a plain text string of the original URL.</div>
</ul>
</div>
</a>
</span>