GET api/General/DefaultProxy/{ip}
Returns the default proxy using geolocation for the given ip address.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| ip | string |
Required |
Body Parameters
None.
Response Information
Resource Description
ProxyCountryModel| Name | Description | Type | Additional information |
|---|---|---|---|
| CountryId | integer |
None. |
|
| CountryName | string |
None. |
|
| CountryCode | string |
None. |
|
| ProxyUrl | string |
None. |
|
| IsProxySupported | boolean |
None. |
|
| IsProxyUp | boolean |
None. |
|
| DefaultLanguageId | integer |
None. |
|
| LanguageName | string |
None. |
|
| LanguageCode | string |
None. |
|
| IsDefault | boolean |
None. |
|
| ScanRegionId | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"CountryId": 1,
"CountryName": "sample string 2",
"CountryCode": "sample string 3",
"ProxyUrl": "sample string 4",
"IsProxySupported": true,
"IsProxyUp": true,
"DefaultLanguageId": 7,
"LanguageName": "sample string 8",
"LanguageCode": "sample string 9",
"IsDefault": true,
"ScanRegionId": 11
}
application/xml, text/xml
Sample:
<ProxyCountryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gadget.Shared.Library.Core.DataStructures"> <CountryCode>sample string 3</CountryCode> <CountryId>1</CountryId> <CountryName>sample string 2</CountryName> <DefaultLanguageId>7</DefaultLanguageId> <IsDefault>true</IsDefault> <IsProxySupported>true</IsProxySupported> <IsProxyUp>true</IsProxyUp> <LanguageCode>sample string 9</LanguageCode> <LanguageName>sample string 8</LanguageName> <ProxyUrl>sample string 4</ProxyUrl> <ScanRegionId>11</ScanRegionId> </ProxyCountryModel>