API接口
我们支持 POST 或者 GET 方法。示例;
网址压缩
http://duande.com/api/shortener/url?content=http%3A%2F%2Fgoogle.com电邮压缩
http://duande.com/api/shortener/email?content=jglist@gmail.com文本短网址
<form action="http://duande.com/api/shortener/text" method="post">
<textarea name="content"></textarea>
...
</form>
图片短网址
从网络
<form action="http://duande.com/api/shortener/image" method="post">
<input type="text" name="content" id="url" />
...
</form>
从本机
<form action="http://duande.com/api/shortener/image" method="post" enctype="multipart/form-data">
<input type="file" name="content" />
...
</form>
