API リファレンス
API リファレンスです!思いついたら追加するよ!
http://yourl.be/?api=method-name&var1=val1&var2=val2 といった感じのアドレスにアクセスして呼び出す形になります。
create: URL を短縮する
引数: url ... 短縮対象の URL
戻り値: 短縮された URL (content-type: text/plain; charset=utf-8)
例:
http://yourl.be/?api=create&url=http://www.killertomatoes.com/
* 注意: &url= 以降はすべて URL として扱われます。http://yourl.be/?url=http://www.killertomatoes.com/&api=create と呼び出した場合、
短縮対象 URL が http://www.killertomatoes.com/&api=create と解釈されます。