GET api/v1/addressbook/networks/{mobileNumber}

Retrieve network data for the provided mobile number.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
mobileNumber

The mobile number to get the network details for.

string

Required

Body Parameters

None.

Response Information

Resource Description

Network data.

TwoSms.CustomerPortalRole.API.Misc.ResponseOfTwoSms.CustomerPortalRole.API.AddressBooks.NetworkChecker
NameDescriptionTypeAdditional information
Error

TwoSms.CustomerPortalRole.API.Misc.Error

None.

ResponseData

TwoSms.CustomerPortalRole.API.Misc.ResponseDataOfTwoSms.CustomerPortalRole.API.AddressBooks.NetworkChecker

None.

Response Formats

application/json, text/json

Sample:
{
  "Error": {
    "ErrorCode": "sample string 1",
    "ErrorReason": "sample string 2"
  },
  "ResponseData": {
    "Identification": {
      "UserId": "sample string 1"
    },
    "Result": "sample string 1",
    "Detail": {
      "PhoneNumber": "sample string 1",
      "ServiceProvider": "sample string 2",
      "Prefix": "sample string 3",
      "Country": "sample string 4",
      "AllowLongSms": "sample string 5",
      "Mnc": "sample string 6",
      "Mcc": "sample string 7"
    }
  }
}

application/xml, text/xml

Sample:
<ResponseOfNetworkChecker xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Error>
    <ErrorCode>sample string 1</ErrorCode>
    <ErrorReason>sample string 2</ErrorReason>
  </Error>
  <ResponseData>
    <Result>sample string 1</Result>
    <Identification>
      <UserId>sample string 1</UserId>
    </Identification>
    <Detail>
      <PhoneNumber>sample string 1</PhoneNumber>
      <ServiceProvider>sample string 2</ServiceProvider>
      <Prefix>sample string 3</Prefix>
      <Country>sample string 4</Country>
      <AllowLongSms>sample string 5</AllowLongSms>
      <Mnc>sample string 6</Mnc>
      <Mcc>sample string 7</Mcc>
    </Detail>
  </ResponseData>
</ResponseOfNetworkChecker>