getWafGeoInfo — Retrieving a list of continents and countries
The getWafGeoInfo
method retrieves the names and ISO 3166 two-character codes for continents and individual countries.
The API endpoint is:
https://api.sitelock.com/v1/partner
Request format
-
SiteLockOnlineRequest: This element is used to delineate the full API request.
-
authentication: The partner’s username, password, and branding
-
username: The partner’s API username
-
password: The partner’s API password
-
partner: (Optional) The brand name to use in messaging
-
-
getWafGeoInfo: The method name
-
Response format
-
SiteLockOnlineResponse: This element is used to delineate the full API response.
-
getWafGeoInfo: The method name
-
continents: A list of continents
-
continent: (Repeatable) The name and ID code of the continent
-
name: The name of the continent
-
code: The ID code of the continent
-
-
country: (Repeatable) The name and ID code of the country
-
name: The name of the country
-
code: The ID code of the country
-
-
-
-
Example response
<SiteLockOnlineResponse>
<getWafGeoInfo>
<continents>
<continent>
<name>Antarctica</name>
<code>AN</code>
</continent>
<continent>
<name>South America</name>
<code>SA</code>
</continent>
...
</continents>
<countries>
<country>
<name>Greenland</name>
<code>GL</code>
</country>
<country>
<name>Djibouti</name>
<code>DJ</code>
</country>
...
</countries>
<status>ok</status>
</getWafGeoInfo>
</SiteLockOnlineResponse>