Returns json data about a link shorted.

  • URL
    https://short.admicro.vn/api/link

  • Method:
    POST

  • Header Params
    Required: token=[string]

  • Data Params
    Required: { url : “http://string-url”, [option] }

Option: { alias: “alias-for-url” }

  • Success Response:

    • Content: { short : "//short.admicro.vn/alias", msg : "success" }

  • Error Response:

    • Content: { error : "Token is invalid" } ||

  { msg : "parameters invalid" }
 

Sample Call:

  $.ajax({

    url: "https://short.admicro.vn/api/link",

    headers: {"token": "1ee8be85a91e3600816fad0a38401cc"},

    dataType: "json",

    data: {"url": "https://kenh14.vn"},

    type : "POST",

    success : function(r) {

      console.log(r);

    }

});