More Features added to Geolocation API
This commit is contained in:
@@ -2222,12 +2222,9 @@ function geoLocationForm() {
|
||||
$ispTextBox.Clear()
|
||||
$countryTextBox.Clear()
|
||||
$ipToSearch = $ipSearchBox.Text
|
||||
$response = Invoke-RestMethod -Method GET -URI "http://ip-api.com/json/$ipToSearch"
|
||||
$ispTextBox.Text = $response.isp
|
||||
$countryTextBox.Text = $response.country
|
||||
$stateTextBox.Text = $response.regionName
|
||||
$cityTextBox.Text = $response.city
|
||||
|
||||
$response = Invoke-RestMethod -Method GET -URI "https://api.iplocation.net/?ip=$ipToSearch"
|
||||
$ispTextBox.Text = $response.ISP
|
||||
$countryTextBox.Text = $response.Country_Name
|
||||
}
|
||||
$geoLocationFormBox.ShowDialog()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user