POST url/getLinks

Request Information

URI Parameters

None.

Body Parameters

GetUrlsApiRequestModel
NameDescriptionTypeAdditional information
Token

string

Required

Request Formats

application/json, text/json

Sample:
{
  "Token": "sample string 1"
}

application/xml, text/xml

Sample:
<GetUrlsApiRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UrlShortener.ViewModel">
  <Token>sample string 1</Token>
</GetUrlsApiRequestModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GetUrlsApiResponseModel
NameDescriptionTypeAdditional information
Urls

Collection of UrlApiModel

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Urls": [
    {
      "Id": 1,
      "LongUrl": "sample string 2",
      "ShortUrl": "sample string 3",
      "Visits": 4,
      "Stats": [
        {
          "VisitDateTime": "2020-08-13T17:55:33.5525869+04:30",
          "Referrer": "sample string 2",
          "Browser": "sample string 3",
          "Ip": "sample string 4",
          "Country": "sample string 5"
        },
        {
          "VisitDateTime": "2020-08-13T17:55:33.5525869+04:30",
          "Referrer": "sample string 2",
          "Browser": "sample string 3",
          "Ip": "sample string 4",
          "Country": "sample string 5"
        }
      ]
    },
    {
      "Id": 1,
      "LongUrl": "sample string 2",
      "ShortUrl": "sample string 3",
      "Visits": 4,
      "Stats": [
        {
          "VisitDateTime": "2020-08-13T17:55:33.5525869+04:30",
          "Referrer": "sample string 2",
          "Browser": "sample string 3",
          "Ip": "sample string 4",
          "Country": "sample string 5"
        },
        {
          "VisitDateTime": "2020-08-13T17:55:33.5525869+04:30",
          "Referrer": "sample string 2",
          "Browser": "sample string 3",
          "Ip": "sample string 4",
          "Country": "sample string 5"
        }
      ]
    }
  ],
  "Message": "sample string 1"
}

application/xml, text/xml

Sample:
<GetUrlsApiResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UrlShortener.ViewModel">
  <Message>sample string 1</Message>
  <Urls>
    <UrlApiModel>
      <Id>1</Id>
      <LongUrl>sample string 2</LongUrl>
      <ShortUrl>sample string 3</ShortUrl>
      <Stats>
        <StatApiModel>
          <Browser>sample string 3</Browser>
          <Country>sample string 5</Country>
          <Ip>sample string 4</Ip>
          <Referrer>sample string 2</Referrer>
          <VisitDateTime>2020-08-13T17:55:33.5525869+04:30</VisitDateTime>
        </StatApiModel>
        <StatApiModel>
          <Browser>sample string 3</Browser>
          <Country>sample string 5</Country>
          <Ip>sample string 4</Ip>
          <Referrer>sample string 2</Referrer>
          <VisitDateTime>2020-08-13T17:55:33.5525869+04:30</VisitDateTime>
        </StatApiModel>
      </Stats>
      <Visits>4</Visits>
    </UrlApiModel>
    <UrlApiModel>
      <Id>1</Id>
      <LongUrl>sample string 2</LongUrl>
      <ShortUrl>sample string 3</ShortUrl>
      <Stats>
        <StatApiModel>
          <Browser>sample string 3</Browser>
          <Country>sample string 5</Country>
          <Ip>sample string 4</Ip>
          <Referrer>sample string 2</Referrer>
          <VisitDateTime>2020-08-13T17:55:33.5525869+04:30</VisitDateTime>
        </StatApiModel>
        <StatApiModel>
          <Browser>sample string 3</Browser>
          <Country>sample string 5</Country>
          <Ip>sample string 4</Ip>
          <Referrer>sample string 2</Referrer>
          <VisitDateTime>2020-08-13T17:55:33.5525869+04:30</VisitDateTime>
        </StatApiModel>
      </Stats>
      <Visits>4</Visits>
    </UrlApiModel>
  </Urls>
</GetUrlsApiResponseModel>