Async ISP lookup

This commit is contained in:
JonnyWong16 2016-07-31 17:51:40 -07:00
commit ba8e4ff33c
5 changed files with 149 additions and 69 deletions

41
API.md
View file

@ -342,18 +342,7 @@ Returns:
"timezone": "America/Los_Angeles",
"latitude": 37.386,
"longitude": -122.0838,
"accuracy": 1000,
"net": [{"description": "Google Inc.",
"address": "1600 Amphitheatre Parkway",
"city": "Mountain View",
"state": "CA",
"postal_code": "94043",
"country": "United States",
...
},
{...}
]
"accuracy": 1000
}
json:
{"error": "The address 127.0.0.1 is not in the database."
@ -1716,6 +1705,34 @@ Returns:
```
### get_whois_lookup
Get the ISP info for an IP address.
```
Required parameters:
ip_address
Optional parameters:
None
Returns:
json:
[{"description": "Google Inc.",
"address": "1600 Amphitheatre Parkway",
"city": "Mountain View",
"state": "CA",
"postal_code": "94043",
"country": "United States",
...
},
{...}
]
json:
{"error": "The address 127.0.0.1 is not in the database."
}
```
### import_database
Import a PlexWatch or Plexivity database into PlexPy.