Returns json data about total link click

  • URL
    https://short.admicro.vn/api/count-click

  • Method:
    POST

  • Header Params
    Required: token=[string]

  • Data Params
    Required: { aliases= [array]}
    Option: { from = “date-string”, to = “date-string”}

  • Success Response:

    • Content: {
      success : [alias1:100, alias2:80], 

errors : [alias3:’alias not found!’] 

  }

  • Error Response:

    • Content: { error : "Process error!" } ||

  { msg : "Alias not found!" } || 

        { msg : "Parameters invalid!" }
 

Sample Call:

$.ajax({

    url: "https://short.admicro.vn/api/count-click",

    headers: {"token": "aed10b630f0fbace1e33f0dd4dc3902"},

    dataType: "json",

    data: {"aliases": ['alias1', 'alias2', 'alias3']},

    type : "POST",

    success : function(r) {

      console.log(r);

    }

});