| Crates.io | ipinfodb |
| lib.rs | ipinfodb |
| version | 0.1.1 |
| created_at | 2018-05-23 00:07:50.4518+00 |
| updated_at | 2018-05-23 00:14:41.722193+00 |
| description | Rust wrapper for ipinfodb geolocation api. |
| homepage | https://github.com/zxey/ipinfodb-rs |
| repository | |
| max_upload_size | |
| id | 66711 |
| size | 15,574 |
Rust wrapper for ipinfodb api.
extern crate ipinfodb;
// query for current ip
ipinfodb::query("YOUR_API_TOKEN", None);
// or you can specify ip to check geolocation for
ipinfodb::query("YOUR_API_TOKEN", Some("8.8.8.8".parse()?));
MIT/Apache-2.0