URL SHORTNER API

API INFO

요청한 URL을 단축 URL로 변환해 주는 API로, trdt.me 도메인을 사용합니다.

Method : POST
URL : http://trandent.com/api/shorturl/make
DataType : json
Content-Type : application/json; charset=UTF-8
Parameter : url (required)

REQUEST

curl
curl -X POST --header "Content-Type: application/json" --header "Accept: application/json;charset=UTF-8" -d "{ \"url\": \"http://trandent.com\" }" "http://trandent.com/api/shorturl/make"

RESPONSE

Success
{"result":"success","resultCode":0,"url":"http://trdt.me/1r2ZtX"}
Fail
{"result":"fail","resultCode":1,"message":"Parameter (url) Required"}
{"result":"fail","resultCode":1,"message":"Wrong URL"}
{"result":"fail","resultCode":1,"message":"Not Safety URL"}
{"result":"fail","resultCode":2,"message":"System Error"}
keyboard_arrow_up