Updating .cirrus.yml
Swift library to gather information for an IP using https://ipdata.co
IPData.apiKey = "test"
or adding the apiKey parameter in each call
apiKey
IPData.lookup(apiKey: "test") { switch $0 { case .success(let ip): print(ip) case .failure(let error): print(error) } }
IPData.lookup { switch $0 { case .success(let ip): print(ip) case .failure(let error): print(error) } }
IPData.lookup(ip: "66.102.160.1") { switch $0 { case .success(let ip): print(ip) case .failure(let error): print(error) } }
IPData.lookup(bulk: ["66.102.160.1", "100.128.0.9"]) { switch $0 { case .success(let ip): print(ip) case .failure(let error): print(error) } }
IPData.carrier(ip: "66.102.160.1") { switch $0 { case .success(let ip): print(ip) case .failure(let error): print(error) } }
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
IPData
Swift library to gather information for an IP using https://ipdata.co
Getting Started
Setting your API Key
or adding the
apiKey
parameter in each callLooking up your own IP
Looking up a specific IP address (IPv4 or IPv6 address)
Bulk Lookup
Carrier Lookup