ShortUrl
目录 |
shortUrl
转换url成短url。
URL
http://api.t.sina.com.cn/shortUrl.format
格式
xml, json
HTTP请求方式
GET
是否需要登录
true
请求数限制
false
请求参数
- url 必选参数,需要转换的url
请求示例
- curl -i -u username:password http://api.t.sina.com.cn/shortUrl.json?url=http://www.sina.com.cn&source=appkey
返回结果
{ "shorturl": "http://sinaurl.cn/h5mh9" }