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