ipgeolocation_sdk 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +288 -2003
- data/lib/ipgeolocation_sdk/client.rb +223 -0
- data/lib/ipgeolocation_sdk/client_config.rb +102 -0
- data/lib/ipgeolocation_sdk/enums.rb +110 -0
- data/lib/ipgeolocation_sdk/errors.rb +38 -0
- data/lib/ipgeolocation_sdk/json_output.rb +30 -0
- data/lib/ipgeolocation_sdk/models.rb +186 -0
- data/lib/ipgeolocation_sdk/request_models.rb +175 -0
- data/lib/ipgeolocation_sdk/serde.rb +433 -0
- data/lib/ipgeolocation_sdk/transport.rb +109 -0
- data/lib/ipgeolocation_sdk/value_object.rb +60 -0
- data/lib/ipgeolocation_sdk/version.rb +1 -13
- data/lib/ipgeolocation_sdk.rb +19 -101
- metadata +29 -310
- data/Gemfile +0 -9
- data/Rakefile +0 -10
- data/docs/ASNConnection.md +0 -22
- data/docs/ASNDetails.md +0 -48
- data/docs/ASNLookupApi.md +0 -89
- data/docs/ASNResponse.md +0 -20
- data/docs/ASNResponseXML.md +0 -20
- data/docs/ASNResponseXMLAsn.md +0 -48
- data/docs/Abuse.md +0 -40
- data/docs/AbuseContactApi.md +0 -85
- data/docs/AbuseResponse.md +0 -20
- data/docs/AbuseResponseXML.md +0 -20
- data/docs/Astronomy.md +0 -68
- data/docs/AstronomyApi.md +0 -97
- data/docs/AstronomyEvening.md +0 -36
- data/docs/AstronomyLocation.md +0 -50
- data/docs/AstronomyMorning.md +0 -36
- data/docs/AstronomyResponse.md +0 -22
- data/docs/AstronomyXMLResponse.md +0 -22
- data/docs/BulkIPGeolocation.md +0 -42
- data/docs/BulkIPSecurity.md +0 -42
- data/docs/CountryMetadata.md +0 -22
- data/docs/Currency.md +0 -22
- data/docs/ErrorResponse.md +0 -18
- data/docs/ErrorXMLResponse.md +0 -18
- data/docs/ErrorXMLResponseArray.md +0 -18
- data/docs/GeolocationResponse.md +0 -38
- data/docs/GeolocationXMLResponse.md +0 -38
- data/docs/GeolocationXMLResponseArray.md +0 -38
- data/docs/GetBulkIpGeolocation200ResponseInner1.md +0 -49
- data/docs/GetBulkIpGeolocationRequest.md +0 -18
- data/docs/GetBulkIpSecurityInfo200ResponseInner1.md +0 -49
- data/docs/IPLocationApi.md +0 -175
- data/docs/Location.md +0 -58
- data/docs/LocationMinimal.md +0 -52
- data/docs/Network.md +0 -22
- data/docs/NetworkAsn.md +0 -38
- data/docs/NetworkCompany.md +0 -22
- data/docs/NetworkMinimal.md +0 -20
- data/docs/NetworkMinimalAsn.md +0 -22
- data/docs/NetworkMinimalCompany.md +0 -18
- data/docs/ParseBulkUserAgentStringsRequest.md +0 -18
- data/docs/ParseUserAgentStringRequest.md +0 -18
- data/docs/Security.md +0 -38
- data/docs/SecurityAPIResponse.md +0 -34
- data/docs/SecurityAPIXMLResponse.md +0 -34
- data/docs/SecurityAPIXMLResponseArray.md +0 -34
- data/docs/SecurityApi.md +0 -175
- data/docs/TimeConversionApi.md +0 -109
- data/docs/TimeConversionResponse.md +0 -24
- data/docs/TimeConversionXMLResponse.md +0 -24
- data/docs/TimeZone.md +0 -36
- data/docs/TimeZoneDetailedResponse.md +0 -26
- data/docs/TimeZoneDetailedXMLResponse.md +0 -26
- data/docs/TimeZoneDstEnd.md +0 -28
- data/docs/TimeZoneDstStart.md +0 -28
- data/docs/TimezoneAirport.md +0 -40
- data/docs/TimezoneApi.md +0 -99
- data/docs/TimezoneDetail.md +0 -56
- data/docs/TimezoneDetailDstEnd.md +0 -28
- data/docs/TimezoneDetailDstStart.md +0 -28
- data/docs/TimezoneLocation.md +0 -48
- data/docs/TimezoneLocode.md +0 -32
- data/docs/UserAgentApi.md +0 -235
- data/docs/UserAgentData.md +0 -32
- data/docs/UserAgentDataDevice.md +0 -24
- data/docs/UserAgentDataEngine.md +0 -24
- data/docs/UserAgentDataOperatingSystem.md +0 -26
- data/docs/UserAgentXMLData.md +0 -32
- data/docs/UserAgentXMLDataArray.md +0 -32
- data/git_push.sh +0 -57
- data/ipgeolocation_sdk.gemspec +0 -29
- data/lib/ipgeolocation_sdk/api/abuse_contact_api.rb +0 -86
- data/lib/ipgeolocation_sdk/api/asn_lookup_api.rb +0 -92
- data/lib/ipgeolocation_sdk/api/astronomy_api.rb +0 -116
- data/lib/ipgeolocation_sdk/api/ip_geolocation_api.rb +0 -186
- data/lib/ipgeolocation_sdk/api/ip_security_api.rb +0 -184
- data/lib/ipgeolocation_sdk/api/time_conversion_api.rb +0 -122
- data/lib/ipgeolocation_sdk/api/timezone_api.rb +0 -113
- data/lib/ipgeolocation_sdk/api/user_agent_api.rb +0 -158
- data/lib/ipgeolocation_sdk/api_client.rb +0 -393
- data/lib/ipgeolocation_sdk/api_error.rb +0 -58
- data/lib/ipgeolocation_sdk/configuration.rb +0 -308
- data/lib/ipgeolocation_sdk/models/abuse.rb +0 -305
- data/lib/ipgeolocation_sdk/models/abuse_response.rb +0 -229
- data/lib/ipgeolocation_sdk/models/abuse_response_xml.rb +0 -229
- data/lib/ipgeolocation_sdk/models/asn_connection.rb +0 -238
- data/lib/ipgeolocation_sdk/models/asn_response.rb +0 -230
- data/lib/ipgeolocation_sdk/models/asn_response_asn.rb +0 -368
- data/lib/ipgeolocation_sdk/models/asn_response_xml.rb +0 -229
- data/lib/ipgeolocation_sdk/models/asn_response_xml_asn.rb +0 -364
- data/lib/ipgeolocation_sdk/models/astronomy.rb +0 -445
- data/lib/ipgeolocation_sdk/models/astronomy_evening.rb +0 -301
- data/lib/ipgeolocation_sdk/models/astronomy_location.rb +0 -364
- data/lib/ipgeolocation_sdk/models/astronomy_morning.rb +0 -301
- data/lib/ipgeolocation_sdk/models/astronomy_response.rb +0 -238
- data/lib/ipgeolocation_sdk/models/astronomy_xml_response.rb +0 -238
- data/lib/ipgeolocation_sdk/models/bulk_ip_geolocation.rb +0 -113
- data/lib/ipgeolocation_sdk/models/bulk_ip_security.rb +0 -113
- data/lib/ipgeolocation_sdk/models/country_metadata.rb +0 -240
- data/lib/ipgeolocation_sdk/models/currency.rb +0 -238
- data/lib/ipgeolocation_sdk/models/error_response.rb +0 -220
- data/lib/ipgeolocation_sdk/models/error_xml_response.rb +0 -220
- data/lib/ipgeolocation_sdk/models/error_xml_response_array.rb +0 -220
- data/lib/ipgeolocation_sdk/models/geolocation_response.rb +0 -310
- data/lib/ipgeolocation_sdk/models/geolocation_xml_response.rb +0 -310
- data/lib/ipgeolocation_sdk/models/geolocation_xml_response_array.rb +0 -310
- data/lib/ipgeolocation_sdk/models/get_bulk_ip_geolocation200_response_inner1.rb +0 -105
- data/lib/ipgeolocation_sdk/models/get_bulk_ip_geolocation_request.rb +0 -241
- data/lib/ipgeolocation_sdk/models/get_bulk_ip_security_info200_response_inner1.rb +0 -105
- data/lib/ipgeolocation_sdk/models/location.rb +0 -400
- data/lib/ipgeolocation_sdk/models/location_minimal.rb +0 -373
- data/lib/ipgeolocation_sdk/models/network.rb +0 -238
- data/lib/ipgeolocation_sdk/models/network_asn.rb +0 -310
- data/lib/ipgeolocation_sdk/models/network_company.rb +0 -238
- data/lib/ipgeolocation_sdk/models/network_minimal.rb +0 -229
- data/lib/ipgeolocation_sdk/models/network_minimal_asn.rb +0 -238
- data/lib/ipgeolocation_sdk/models/network_minimal_company.rb +0 -220
- data/lib/ipgeolocation_sdk/models/parse_bulk_user_agent_strings_request.rb +0 -222
- data/lib/ipgeolocation_sdk/models/parse_user_agent_string_request.rb +0 -220
- data/lib/ipgeolocation_sdk/models/security.rb +0 -310
- data/lib/ipgeolocation_sdk/models/security_api_response.rb +0 -292
- data/lib/ipgeolocation_sdk/models/security_apixml_response.rb +0 -292
- data/lib/ipgeolocation_sdk/models/security_apixml_response_array.rb +0 -292
- data/lib/ipgeolocation_sdk/models/time_conversion_response.rb +0 -247
- data/lib/ipgeolocation_sdk/models/time_conversion_xml_response.rb +0 -247
- data/lib/ipgeolocation_sdk/models/time_zone.rb +0 -301
- data/lib/ipgeolocation_sdk/models/time_zone_detailed_response.rb +0 -256
- data/lib/ipgeolocation_sdk/models/time_zone_detailed_xml_response.rb +0 -256
- data/lib/ipgeolocation_sdk/models/time_zone_dst_end.rb +0 -265
- data/lib/ipgeolocation_sdk/models/time_zone_dst_start.rb +0 -265
- data/lib/ipgeolocation_sdk/models/timezone_airport.rb +0 -319
- data/lib/ipgeolocation_sdk/models/timezone_detail.rb +0 -391
- data/lib/ipgeolocation_sdk/models/timezone_detail_dst_end.rb +0 -265
- data/lib/ipgeolocation_sdk/models/timezone_detail_dst_start.rb +0 -265
- data/lib/ipgeolocation_sdk/models/timezone_location.rb +0 -355
- data/lib/ipgeolocation_sdk/models/timezone_locode.rb +0 -283
- data/lib/ipgeolocation_sdk/models/user_agent_data.rb +0 -283
- data/lib/ipgeolocation_sdk/models/user_agent_data_device.rb +0 -247
- data/lib/ipgeolocation_sdk/models/user_agent_data_engine.rb +0 -247
- data/lib/ipgeolocation_sdk/models/user_agent_data_operating_system.rb +0 -256
- data/lib/ipgeolocation_sdk/models/user_agent_xml_data.rb +0 -283
- data/lib/ipgeolocation_sdk/models/user_agent_xml_data_array.rb +0 -283
- data/spec/api/abuse_contact_api_spec.rb +0 -48
- data/spec/api/asn_lookup_api_spec.rb +0 -50
- data/spec/api/astronomy_api_spec.rb +0 -54
- data/spec/api/ip_location_api_spec.rb +0 -67
- data/spec/api/security_api_spec.rb +0 -67
- data/spec/api/time_conversion_api_spec.rb +0 -60
- data/spec/api/timezone_api_spec.rb +0 -56
- data/spec/api/user_agent_api_spec.rb +0 -74
- data/spec/models/abuse_response_spec.rb +0 -42
- data/spec/models/abuse_response_xml_spec.rb +0 -42
- data/spec/models/abuse_spec.rb +0 -90
- data/spec/models/asn_connection_spec.rb +0 -48
- data/spec/models/asn_response_asn_spec.rb +0 -126
- data/spec/models/asn_response_spec.rb +0 -42
- data/spec/models/asn_response_xml_asn_spec.rb +0 -126
- data/spec/models/asn_response_xml_spec.rb +0 -42
- data/spec/models/astronomy_evening_spec.rb +0 -90
- data/spec/models/astronomy_location_spec.rb +0 -132
- data/spec/models/astronomy_morning_spec.rb +0 -90
- data/spec/models/astronomy_response_spec.rb +0 -48
- data/spec/models/astronomy_spec.rb +0 -186
- data/spec/models/astronomy_xml_response_spec.rb +0 -48
- data/spec/models/country_metadata_spec.rb +0 -48
- data/spec/models/currency_spec.rb +0 -48
- data/spec/models/error_response_spec.rb +0 -36
- data/spec/models/error_xml_response_array_spec.rb +0 -36
- data/spec/models/error_xml_response_spec.rb +0 -36
- data/spec/models/geolocation_response_spec.rb +0 -96
- data/spec/models/geolocation_xml_response_array_spec.rb +0 -96
- data/spec/models/geolocation_xml_response_spec.rb +0 -96
- data/spec/models/get_bulk_ip_geolocation200_response_inner1_spec.rb +0 -32
- data/spec/models/get_bulk_ip_geolocation200_response_inner_spec.rb +0 -32
- data/spec/models/get_bulk_ip_geolocation_request_spec.rb +0 -36
- data/spec/models/get_bulk_ip_security_info200_response_inner1_spec.rb +0 -32
- data/spec/models/get_bulk_ip_security_info200_response_inner_spec.rb +0 -32
- data/spec/models/location_minimal_spec.rb +0 -138
- data/spec/models/location_spec.rb +0 -156
- data/spec/models/network_asn_spec.rb +0 -96
- data/spec/models/network_company_spec.rb +0 -48
- data/spec/models/network_minimal_asn_spec.rb +0 -48
- data/spec/models/network_minimal_company_spec.rb +0 -36
- data/spec/models/network_minimal_spec.rb +0 -42
- data/spec/models/network_spec.rb +0 -48
- data/spec/models/parse_bulk_user_agent_strings_request_spec.rb +0 -36
- data/spec/models/parse_user_agent_string_request_spec.rb +0 -36
- data/spec/models/security_api_response_spec.rb +0 -84
- data/spec/models/security_apixml_response_array_spec.rb +0 -84
- data/spec/models/security_apixml_response_spec.rb +0 -84
- data/spec/models/security_spec.rb +0 -96
- data/spec/models/time_conversion_response_spec.rb +0 -54
- data/spec/models/time_conversion_xml_response_spec.rb +0 -54
- data/spec/models/time_zone_detailed_response_spec.rb +0 -60
- data/spec/models/time_zone_detailed_xml_response_spec.rb +0 -60
- data/spec/models/time_zone_dst_end_spec.rb +0 -66
- data/spec/models/time_zone_dst_start_spec.rb +0 -66
- data/spec/models/time_zone_spec.rb +0 -90
- data/spec/models/timezone_airport_spec.rb +0 -102
- data/spec/models/timezone_detail_dst_end_spec.rb +0 -66
- data/spec/models/timezone_detail_dst_start_spec.rb +0 -66
- data/spec/models/timezone_detail_spec.rb +0 -150
- data/spec/models/timezone_location_spec.rb +0 -126
- data/spec/models/timezone_locode_spec.rb +0 -78
- data/spec/models/user_agent_data_device_spec.rb +0 -54
- data/spec/models/user_agent_data_engine_spec.rb +0 -54
- data/spec/models/user_agent_data_operating_system_spec.rb +0 -60
- data/spec/models/user_agent_data_spec.rb +0 -78
- data/spec/models/user_agent_xml_data_array_spec.rb +0 -78
- data/spec/models/user_agent_xml_data_spec.rb +0 -78
- data/spec/spec_helper.rb +0 -111
metadata
CHANGED
|
@@ -1,280 +1,66 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ipgeolocation_sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- IPGeolocation.io
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-04-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
|
-
name:
|
|
14
|
+
name: rake
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
20
|
-
|
|
21
|
-
- !ruby/object:Gem::Version
|
|
22
|
-
version: 1.0.1
|
|
23
|
-
type: :runtime
|
|
19
|
+
version: '13.0'
|
|
20
|
+
type: :development
|
|
24
21
|
prerelease: false
|
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
26
23
|
requirements:
|
|
27
24
|
- - "~>"
|
|
28
25
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: '
|
|
30
|
-
- - ">="
|
|
31
|
-
- !ruby/object:Gem::Version
|
|
32
|
-
version: 1.0.1
|
|
26
|
+
version: '13.0'
|
|
33
27
|
- !ruby/object:Gem::Dependency
|
|
34
28
|
name: rspec
|
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
|
36
30
|
requirements:
|
|
37
31
|
- - "~>"
|
|
38
32
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: '3.
|
|
40
|
-
- - ">="
|
|
41
|
-
- !ruby/object:Gem::Version
|
|
42
|
-
version: 3.6.0
|
|
33
|
+
version: '3.13'
|
|
43
34
|
type: :development
|
|
44
35
|
prerelease: false
|
|
45
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
46
37
|
requirements:
|
|
47
38
|
- - "~>"
|
|
48
39
|
- !ruby/object:Gem::Version
|
|
49
|
-
version: '3.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
version: 3.6.0
|
|
53
|
-
description: A Ruby wrapper for the IPGeolocation.io API suite, providing geolocation,
|
|
54
|
-
ip security, timezone, currency, user-agent, and other IP intelligence features.
|
|
55
|
-
Easily integrate IP data into your Ruby applications.
|
|
40
|
+
version: '3.13'
|
|
41
|
+
description: Ruby SDK for IPGeolocation.io single and bulk IP geolocation lookups
|
|
42
|
+
with typed and raw responses.
|
|
56
43
|
email:
|
|
57
44
|
- support@ipgeolocation.io
|
|
58
45
|
executables: []
|
|
59
46
|
extensions: []
|
|
60
47
|
extra_rdoc_files: []
|
|
61
48
|
files:
|
|
62
|
-
-
|
|
49
|
+
- CHANGELOG.md
|
|
63
50
|
- LICENSE
|
|
64
51
|
- README.md
|
|
65
|
-
- Rakefile
|
|
66
|
-
- docs/ASNConnection.md
|
|
67
|
-
- docs/ASNDetails.md
|
|
68
|
-
- docs/ASNLookupApi.md
|
|
69
|
-
- docs/ASNResponse.md
|
|
70
|
-
- docs/ASNResponseXML.md
|
|
71
|
-
- docs/ASNResponseXMLAsn.md
|
|
72
|
-
- docs/Abuse.md
|
|
73
|
-
- docs/AbuseContactApi.md
|
|
74
|
-
- docs/AbuseResponse.md
|
|
75
|
-
- docs/AbuseResponseXML.md
|
|
76
|
-
- docs/Astronomy.md
|
|
77
|
-
- docs/AstronomyApi.md
|
|
78
|
-
- docs/AstronomyEvening.md
|
|
79
|
-
- docs/AstronomyLocation.md
|
|
80
|
-
- docs/AstronomyMorning.md
|
|
81
|
-
- docs/AstronomyResponse.md
|
|
82
|
-
- docs/AstronomyXMLResponse.md
|
|
83
|
-
- docs/BulkIPGeolocation.md
|
|
84
|
-
- docs/BulkIPSecurity.md
|
|
85
|
-
- docs/CountryMetadata.md
|
|
86
|
-
- docs/Currency.md
|
|
87
|
-
- docs/ErrorResponse.md
|
|
88
|
-
- docs/ErrorXMLResponse.md
|
|
89
|
-
- docs/ErrorXMLResponseArray.md
|
|
90
|
-
- docs/GeolocationResponse.md
|
|
91
|
-
- docs/GeolocationXMLResponse.md
|
|
92
|
-
- docs/GeolocationXMLResponseArray.md
|
|
93
|
-
- docs/GetBulkIpGeolocation200ResponseInner1.md
|
|
94
|
-
- docs/GetBulkIpGeolocationRequest.md
|
|
95
|
-
- docs/GetBulkIpSecurityInfo200ResponseInner1.md
|
|
96
|
-
- docs/IPLocationApi.md
|
|
97
|
-
- docs/Location.md
|
|
98
|
-
- docs/LocationMinimal.md
|
|
99
|
-
- docs/Network.md
|
|
100
|
-
- docs/NetworkAsn.md
|
|
101
|
-
- docs/NetworkCompany.md
|
|
102
|
-
- docs/NetworkMinimal.md
|
|
103
|
-
- docs/NetworkMinimalAsn.md
|
|
104
|
-
- docs/NetworkMinimalCompany.md
|
|
105
|
-
- docs/ParseBulkUserAgentStringsRequest.md
|
|
106
|
-
- docs/ParseUserAgentStringRequest.md
|
|
107
|
-
- docs/Security.md
|
|
108
|
-
- docs/SecurityAPIResponse.md
|
|
109
|
-
- docs/SecurityAPIXMLResponse.md
|
|
110
|
-
- docs/SecurityAPIXMLResponseArray.md
|
|
111
|
-
- docs/SecurityApi.md
|
|
112
|
-
- docs/TimeConversionApi.md
|
|
113
|
-
- docs/TimeConversionResponse.md
|
|
114
|
-
- docs/TimeConversionXMLResponse.md
|
|
115
|
-
- docs/TimeZone.md
|
|
116
|
-
- docs/TimeZoneDetailedResponse.md
|
|
117
|
-
- docs/TimeZoneDetailedXMLResponse.md
|
|
118
|
-
- docs/TimeZoneDstEnd.md
|
|
119
|
-
- docs/TimeZoneDstStart.md
|
|
120
|
-
- docs/TimezoneAirport.md
|
|
121
|
-
- docs/TimezoneApi.md
|
|
122
|
-
- docs/TimezoneDetail.md
|
|
123
|
-
- docs/TimezoneDetailDstEnd.md
|
|
124
|
-
- docs/TimezoneDetailDstStart.md
|
|
125
|
-
- docs/TimezoneLocation.md
|
|
126
|
-
- docs/TimezoneLocode.md
|
|
127
|
-
- docs/UserAgentApi.md
|
|
128
|
-
- docs/UserAgentData.md
|
|
129
|
-
- docs/UserAgentDataDevice.md
|
|
130
|
-
- docs/UserAgentDataEngine.md
|
|
131
|
-
- docs/UserAgentDataOperatingSystem.md
|
|
132
|
-
- docs/UserAgentXMLData.md
|
|
133
|
-
- docs/UserAgentXMLDataArray.md
|
|
134
|
-
- git_push.sh
|
|
135
|
-
- ipgeolocation_sdk.gemspec
|
|
136
52
|
- lib/ipgeolocation_sdk.rb
|
|
137
|
-
- lib/ipgeolocation_sdk/
|
|
138
|
-
- lib/ipgeolocation_sdk/
|
|
139
|
-
- lib/ipgeolocation_sdk/
|
|
140
|
-
- lib/ipgeolocation_sdk/
|
|
141
|
-
- lib/ipgeolocation_sdk/
|
|
142
|
-
- lib/ipgeolocation_sdk/
|
|
143
|
-
- lib/ipgeolocation_sdk/
|
|
144
|
-
- lib/ipgeolocation_sdk/
|
|
145
|
-
- lib/ipgeolocation_sdk/
|
|
146
|
-
- lib/ipgeolocation_sdk/
|
|
147
|
-
- lib/ipgeolocation_sdk/configuration.rb
|
|
148
|
-
- lib/ipgeolocation_sdk/models/abuse.rb
|
|
149
|
-
- lib/ipgeolocation_sdk/models/abuse_response.rb
|
|
150
|
-
- lib/ipgeolocation_sdk/models/abuse_response_xml.rb
|
|
151
|
-
- lib/ipgeolocation_sdk/models/asn_connection.rb
|
|
152
|
-
- lib/ipgeolocation_sdk/models/asn_response.rb
|
|
153
|
-
- lib/ipgeolocation_sdk/models/asn_response_asn.rb
|
|
154
|
-
- lib/ipgeolocation_sdk/models/asn_response_xml.rb
|
|
155
|
-
- lib/ipgeolocation_sdk/models/asn_response_xml_asn.rb
|
|
156
|
-
- lib/ipgeolocation_sdk/models/astronomy.rb
|
|
157
|
-
- lib/ipgeolocation_sdk/models/astronomy_evening.rb
|
|
158
|
-
- lib/ipgeolocation_sdk/models/astronomy_location.rb
|
|
159
|
-
- lib/ipgeolocation_sdk/models/astronomy_morning.rb
|
|
160
|
-
- lib/ipgeolocation_sdk/models/astronomy_response.rb
|
|
161
|
-
- lib/ipgeolocation_sdk/models/astronomy_xml_response.rb
|
|
162
|
-
- lib/ipgeolocation_sdk/models/bulk_ip_geolocation.rb
|
|
163
|
-
- lib/ipgeolocation_sdk/models/bulk_ip_security.rb
|
|
164
|
-
- lib/ipgeolocation_sdk/models/country_metadata.rb
|
|
165
|
-
- lib/ipgeolocation_sdk/models/currency.rb
|
|
166
|
-
- lib/ipgeolocation_sdk/models/error_response.rb
|
|
167
|
-
- lib/ipgeolocation_sdk/models/error_xml_response.rb
|
|
168
|
-
- lib/ipgeolocation_sdk/models/error_xml_response_array.rb
|
|
169
|
-
- lib/ipgeolocation_sdk/models/geolocation_response.rb
|
|
170
|
-
- lib/ipgeolocation_sdk/models/geolocation_xml_response.rb
|
|
171
|
-
- lib/ipgeolocation_sdk/models/geolocation_xml_response_array.rb
|
|
172
|
-
- lib/ipgeolocation_sdk/models/get_bulk_ip_geolocation200_response_inner1.rb
|
|
173
|
-
- lib/ipgeolocation_sdk/models/get_bulk_ip_geolocation_request.rb
|
|
174
|
-
- lib/ipgeolocation_sdk/models/get_bulk_ip_security_info200_response_inner1.rb
|
|
175
|
-
- lib/ipgeolocation_sdk/models/location.rb
|
|
176
|
-
- lib/ipgeolocation_sdk/models/location_minimal.rb
|
|
177
|
-
- lib/ipgeolocation_sdk/models/network.rb
|
|
178
|
-
- lib/ipgeolocation_sdk/models/network_asn.rb
|
|
179
|
-
- lib/ipgeolocation_sdk/models/network_company.rb
|
|
180
|
-
- lib/ipgeolocation_sdk/models/network_minimal.rb
|
|
181
|
-
- lib/ipgeolocation_sdk/models/network_minimal_asn.rb
|
|
182
|
-
- lib/ipgeolocation_sdk/models/network_minimal_company.rb
|
|
183
|
-
- lib/ipgeolocation_sdk/models/parse_bulk_user_agent_strings_request.rb
|
|
184
|
-
- lib/ipgeolocation_sdk/models/parse_user_agent_string_request.rb
|
|
185
|
-
- lib/ipgeolocation_sdk/models/security.rb
|
|
186
|
-
- lib/ipgeolocation_sdk/models/security_api_response.rb
|
|
187
|
-
- lib/ipgeolocation_sdk/models/security_apixml_response.rb
|
|
188
|
-
- lib/ipgeolocation_sdk/models/security_apixml_response_array.rb
|
|
189
|
-
- lib/ipgeolocation_sdk/models/time_conversion_response.rb
|
|
190
|
-
- lib/ipgeolocation_sdk/models/time_conversion_xml_response.rb
|
|
191
|
-
- lib/ipgeolocation_sdk/models/time_zone.rb
|
|
192
|
-
- lib/ipgeolocation_sdk/models/time_zone_detailed_response.rb
|
|
193
|
-
- lib/ipgeolocation_sdk/models/time_zone_detailed_xml_response.rb
|
|
194
|
-
- lib/ipgeolocation_sdk/models/time_zone_dst_end.rb
|
|
195
|
-
- lib/ipgeolocation_sdk/models/time_zone_dst_start.rb
|
|
196
|
-
- lib/ipgeolocation_sdk/models/timezone_airport.rb
|
|
197
|
-
- lib/ipgeolocation_sdk/models/timezone_detail.rb
|
|
198
|
-
- lib/ipgeolocation_sdk/models/timezone_detail_dst_end.rb
|
|
199
|
-
- lib/ipgeolocation_sdk/models/timezone_detail_dst_start.rb
|
|
200
|
-
- lib/ipgeolocation_sdk/models/timezone_location.rb
|
|
201
|
-
- lib/ipgeolocation_sdk/models/timezone_locode.rb
|
|
202
|
-
- lib/ipgeolocation_sdk/models/user_agent_data.rb
|
|
203
|
-
- lib/ipgeolocation_sdk/models/user_agent_data_device.rb
|
|
204
|
-
- lib/ipgeolocation_sdk/models/user_agent_data_engine.rb
|
|
205
|
-
- lib/ipgeolocation_sdk/models/user_agent_data_operating_system.rb
|
|
206
|
-
- lib/ipgeolocation_sdk/models/user_agent_xml_data.rb
|
|
207
|
-
- lib/ipgeolocation_sdk/models/user_agent_xml_data_array.rb
|
|
53
|
+
- lib/ipgeolocation_sdk/client.rb
|
|
54
|
+
- lib/ipgeolocation_sdk/client_config.rb
|
|
55
|
+
- lib/ipgeolocation_sdk/enums.rb
|
|
56
|
+
- lib/ipgeolocation_sdk/errors.rb
|
|
57
|
+
- lib/ipgeolocation_sdk/json_output.rb
|
|
58
|
+
- lib/ipgeolocation_sdk/models.rb
|
|
59
|
+
- lib/ipgeolocation_sdk/request_models.rb
|
|
60
|
+
- lib/ipgeolocation_sdk/serde.rb
|
|
61
|
+
- lib/ipgeolocation_sdk/transport.rb
|
|
62
|
+
- lib/ipgeolocation_sdk/value_object.rb
|
|
208
63
|
- lib/ipgeolocation_sdk/version.rb
|
|
209
|
-
- spec/api/abuse_contact_api_spec.rb
|
|
210
|
-
- spec/api/asn_lookup_api_spec.rb
|
|
211
|
-
- spec/api/astronomy_api_spec.rb
|
|
212
|
-
- spec/api/ip_location_api_spec.rb
|
|
213
|
-
- spec/api/security_api_spec.rb
|
|
214
|
-
- spec/api/time_conversion_api_spec.rb
|
|
215
|
-
- spec/api/timezone_api_spec.rb
|
|
216
|
-
- spec/api/user_agent_api_spec.rb
|
|
217
|
-
- spec/models/abuse_response_spec.rb
|
|
218
|
-
- spec/models/abuse_response_xml_spec.rb
|
|
219
|
-
- spec/models/abuse_spec.rb
|
|
220
|
-
- spec/models/asn_connection_spec.rb
|
|
221
|
-
- spec/models/asn_response_asn_spec.rb
|
|
222
|
-
- spec/models/asn_response_spec.rb
|
|
223
|
-
- spec/models/asn_response_xml_asn_spec.rb
|
|
224
|
-
- spec/models/asn_response_xml_spec.rb
|
|
225
|
-
- spec/models/astronomy_evening_spec.rb
|
|
226
|
-
- spec/models/astronomy_location_spec.rb
|
|
227
|
-
- spec/models/astronomy_morning_spec.rb
|
|
228
|
-
- spec/models/astronomy_response_spec.rb
|
|
229
|
-
- spec/models/astronomy_spec.rb
|
|
230
|
-
- spec/models/astronomy_xml_response_spec.rb
|
|
231
|
-
- spec/models/country_metadata_spec.rb
|
|
232
|
-
- spec/models/currency_spec.rb
|
|
233
|
-
- spec/models/error_response_spec.rb
|
|
234
|
-
- spec/models/error_xml_response_array_spec.rb
|
|
235
|
-
- spec/models/error_xml_response_spec.rb
|
|
236
|
-
- spec/models/geolocation_response_spec.rb
|
|
237
|
-
- spec/models/geolocation_xml_response_array_spec.rb
|
|
238
|
-
- spec/models/geolocation_xml_response_spec.rb
|
|
239
|
-
- spec/models/get_bulk_ip_geolocation200_response_inner1_spec.rb
|
|
240
|
-
- spec/models/get_bulk_ip_geolocation200_response_inner_spec.rb
|
|
241
|
-
- spec/models/get_bulk_ip_geolocation_request_spec.rb
|
|
242
|
-
- spec/models/get_bulk_ip_security_info200_response_inner1_spec.rb
|
|
243
|
-
- spec/models/get_bulk_ip_security_info200_response_inner_spec.rb
|
|
244
|
-
- spec/models/location_minimal_spec.rb
|
|
245
|
-
- spec/models/location_spec.rb
|
|
246
|
-
- spec/models/network_asn_spec.rb
|
|
247
|
-
- spec/models/network_company_spec.rb
|
|
248
|
-
- spec/models/network_minimal_asn_spec.rb
|
|
249
|
-
- spec/models/network_minimal_company_spec.rb
|
|
250
|
-
- spec/models/network_minimal_spec.rb
|
|
251
|
-
- spec/models/network_spec.rb
|
|
252
|
-
- spec/models/parse_bulk_user_agent_strings_request_spec.rb
|
|
253
|
-
- spec/models/parse_user_agent_string_request_spec.rb
|
|
254
|
-
- spec/models/security_api_response_spec.rb
|
|
255
|
-
- spec/models/security_apixml_response_array_spec.rb
|
|
256
|
-
- spec/models/security_apixml_response_spec.rb
|
|
257
|
-
- spec/models/security_spec.rb
|
|
258
|
-
- spec/models/time_conversion_response_spec.rb
|
|
259
|
-
- spec/models/time_conversion_xml_response_spec.rb
|
|
260
|
-
- spec/models/time_zone_detailed_response_spec.rb
|
|
261
|
-
- spec/models/time_zone_detailed_xml_response_spec.rb
|
|
262
|
-
- spec/models/time_zone_dst_end_spec.rb
|
|
263
|
-
- spec/models/time_zone_dst_start_spec.rb
|
|
264
|
-
- spec/models/time_zone_spec.rb
|
|
265
|
-
- spec/models/timezone_airport_spec.rb
|
|
266
|
-
- spec/models/timezone_detail_dst_end_spec.rb
|
|
267
|
-
- spec/models/timezone_detail_dst_start_spec.rb
|
|
268
|
-
- spec/models/timezone_detail_spec.rb
|
|
269
|
-
- spec/models/timezone_location_spec.rb
|
|
270
|
-
- spec/models/timezone_locode_spec.rb
|
|
271
|
-
- spec/models/user_agent_data_device_spec.rb
|
|
272
|
-
- spec/models/user_agent_data_engine_spec.rb
|
|
273
|
-
- spec/models/user_agent_data_operating_system_spec.rb
|
|
274
|
-
- spec/models/user_agent_data_spec.rb
|
|
275
|
-
- spec/models/user_agent_xml_data_array_spec.rb
|
|
276
|
-
- spec/models/user_agent_xml_data_spec.rb
|
|
277
|
-
- spec/spec_helper.rb
|
|
278
64
|
homepage: https://ipgeolocation.io
|
|
279
65
|
licenses:
|
|
280
66
|
- MIT
|
|
@@ -282,7 +68,9 @@ metadata:
|
|
|
282
68
|
homepage_uri: https://ipgeolocation.io
|
|
283
69
|
source_code_uri: https://github.com/IPGeolocation/ip-geolocation-ruby-sdk
|
|
284
70
|
bug_tracker_uri: https://github.com/IPGeolocation/ip-geolocation-ruby-sdk/issues
|
|
285
|
-
|
|
71
|
+
changelog_uri: https://github.com/IPGeolocation/ip-geolocation-ruby-sdk/blob/main/CHANGELOG.md
|
|
72
|
+
rubygems_mfa_required: 'true'
|
|
73
|
+
post_install_message:
|
|
286
74
|
rdoc_options: []
|
|
287
75
|
require_paths:
|
|
288
76
|
- lib
|
|
@@ -297,77 +85,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
297
85
|
- !ruby/object:Gem::Version
|
|
298
86
|
version: '0'
|
|
299
87
|
requirements: []
|
|
300
|
-
rubygems_version: 3.
|
|
301
|
-
signing_key:
|
|
88
|
+
rubygems_version: 3.4.20
|
|
89
|
+
signing_key:
|
|
302
90
|
specification_version: 4
|
|
303
|
-
summary: Official Ruby SDK for IPGeolocation.io
|
|
304
|
-
test_files:
|
|
305
|
-
- spec/api/security_api_spec.rb
|
|
306
|
-
- spec/api/asn_lookup_api_spec.rb
|
|
307
|
-
- spec/api/abuse_contact_api_spec.rb
|
|
308
|
-
- spec/api/timezone_api_spec.rb
|
|
309
|
-
- spec/api/astronomy_api_spec.rb
|
|
310
|
-
- spec/api/ip_location_api_spec.rb
|
|
311
|
-
- spec/api/user_agent_api_spec.rb
|
|
312
|
-
- spec/api/time_conversion_api_spec.rb
|
|
313
|
-
- spec/models/asn_connection_spec.rb
|
|
314
|
-
- spec/models/currency_spec.rb
|
|
315
|
-
- spec/models/asn_response_xml_asn_spec.rb
|
|
316
|
-
- spec/models/security_api_response_spec.rb
|
|
317
|
-
- spec/models/time_conversion_xml_response_spec.rb
|
|
318
|
-
- spec/models/get_bulk_ip_security_info200_response_inner1_spec.rb
|
|
319
|
-
- spec/models/location_spec.rb
|
|
320
|
-
- spec/models/astronomy_xml_response_spec.rb
|
|
321
|
-
- spec/models/user_agent_data_operating_system_spec.rb
|
|
322
|
-
- spec/models/parse_bulk_user_agent_strings_request_spec.rb
|
|
323
|
-
- spec/models/user_agent_data_engine_spec.rb
|
|
324
|
-
- spec/models/get_bulk_ip_geolocation200_response_inner1_spec.rb
|
|
325
|
-
- spec/models/astronomy_location_spec.rb
|
|
326
|
-
- spec/models/user_agent_xml_data_spec.rb
|
|
327
|
-
- spec/models/country_metadata_spec.rb
|
|
328
|
-
- spec/models/location_minimal_spec.rb
|
|
329
|
-
- spec/models/error_response_spec.rb
|
|
330
|
-
- spec/models/network_minimal_spec.rb
|
|
331
|
-
- spec/models/network_spec.rb
|
|
332
|
-
- spec/models/timezone_detail_dst_end_spec.rb
|
|
333
|
-
- spec/models/abuse_spec.rb
|
|
334
|
-
- spec/models/timezone_airport_spec.rb
|
|
335
|
-
- spec/models/time_zone_detailed_xml_response_spec.rb
|
|
336
|
-
- spec/models/user_agent_data_device_spec.rb
|
|
337
|
-
- spec/models/asn_response_xml_spec.rb
|
|
338
|
-
- spec/models/asn_response_asn_spec.rb
|
|
339
|
-
- spec/models/time_conversion_response_spec.rb
|
|
340
|
-
- spec/models/error_xml_response_spec.rb
|
|
341
|
-
- spec/models/timezone_detail_dst_start_spec.rb
|
|
342
|
-
- spec/models/astronomy_response_spec.rb
|
|
343
|
-
- spec/models/time_zone_dst_end_spec.rb
|
|
344
|
-
- spec/models/abuse_response_xml_spec.rb
|
|
345
|
-
- spec/models/abuse_response_spec.rb
|
|
346
|
-
- spec/models/time_zone_detailed_response_spec.rb
|
|
347
|
-
- spec/models/timezone_detail_spec.rb
|
|
348
|
-
- spec/models/asn_response_spec.rb
|
|
349
|
-
- spec/models/parse_user_agent_string_request_spec.rb
|
|
350
|
-
- spec/models/get_bulk_ip_geolocation200_response_inner_spec.rb
|
|
351
|
-
- spec/models/network_asn_spec.rb
|
|
352
|
-
- spec/models/security_apixml_response_spec.rb
|
|
353
|
-
- spec/models/astronomy_spec.rb
|
|
354
|
-
- spec/models/security_spec.rb
|
|
355
|
-
- spec/models/network_minimal_asn_spec.rb
|
|
356
|
-
- spec/models/geolocation_xml_response_spec.rb
|
|
357
|
-
- spec/models/astronomy_morning_spec.rb
|
|
358
|
-
- spec/models/timezone_locode_spec.rb
|
|
359
|
-
- spec/models/get_bulk_ip_security_info200_response_inner_spec.rb
|
|
360
|
-
- spec/models/geolocation_xml_response_array_spec.rb
|
|
361
|
-
- spec/models/network_company_spec.rb
|
|
362
|
-
- spec/models/astronomy_evening_spec.rb
|
|
363
|
-
- spec/models/timezone_location_spec.rb
|
|
364
|
-
- spec/models/user_agent_data_spec.rb
|
|
365
|
-
- spec/models/error_xml_response_array_spec.rb
|
|
366
|
-
- spec/models/user_agent_xml_data_array_spec.rb
|
|
367
|
-
- spec/models/time_zone_dst_start_spec.rb
|
|
368
|
-
- spec/models/time_zone_spec.rb
|
|
369
|
-
- spec/models/security_apixml_response_array_spec.rb
|
|
370
|
-
- spec/models/get_bulk_ip_geolocation_request_spec.rb
|
|
371
|
-
- spec/models/network_minimal_company_spec.rb
|
|
372
|
-
- spec/models/geolocation_response_spec.rb
|
|
373
|
-
- spec/spec_helper.rb
|
|
91
|
+
summary: Official Ruby SDK for the IPGeolocation.io IP Location API
|
|
92
|
+
test_files: []
|
data/Gemfile
DELETED
data/Rakefile
DELETED
data/docs/ASNConnection.md
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# IpgeolocationSdk::ASNConnection
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **as_number** | **String** | | [optional] |
|
|
8
|
-
| **description** | **String** | | [optional] |
|
|
9
|
-
| **country** | **String** | | [optional] |
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```ruby
|
|
14
|
-
require 'ipgeolocation_sdk'
|
|
15
|
-
|
|
16
|
-
instance = IpgeolocationSdk::ASNConnection.new(
|
|
17
|
-
as_number: AS12779,
|
|
18
|
-
description: IT.Gate S.p.A.,
|
|
19
|
-
country: IT
|
|
20
|
-
)
|
|
21
|
-
```
|
|
22
|
-
|
data/docs/ASNDetails.md
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# IpgeolocationSdk::ASNResponseAsn
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **as_number** | **String** | | [optional] |
|
|
8
|
-
| **organization** | **String** | | [optional] |
|
|
9
|
-
| **country** | **String** | | [optional] |
|
|
10
|
-
| **asn_name** | **String** | | [optional] |
|
|
11
|
-
| **type** | **String** | | [optional] |
|
|
12
|
-
| **domain** | **String** | | [optional] |
|
|
13
|
-
| **date_allocated** | **Date** | | [optional] |
|
|
14
|
-
| **allocation_status** | **String** | | [optional] |
|
|
15
|
-
| **num_of_ipv4_routes** | **String** | | [optional] |
|
|
16
|
-
| **num_of_ipv6_routes** | **String** | | [optional] |
|
|
17
|
-
| **rir** | **String** | | [optional] |
|
|
18
|
-
| **routes** | **Array<String>** | It will only be included in the response, if you set include=routes in the request | [optional] |
|
|
19
|
-
| **upstreams** | [**Array<ASNConnection>**](ASNConnection.md) | It will only be included in the response, if you set include=upstreams in the request | [optional] |
|
|
20
|
-
| **downstreams** | [**Array<ASNConnection>**](ASNConnection.md) | It will only be included in the response, if you set include=downstreams in the request | [optional] |
|
|
21
|
-
| **peers** | [**Array<ASNConnection>**](ASNConnection.md) | It will only be included in the response, if you set include=peers in the request | [optional] |
|
|
22
|
-
| **whois_response** | **String** | It will only be included in the response, if you set include=whois_response in the request | [optional] |
|
|
23
|
-
|
|
24
|
-
## Example
|
|
25
|
-
|
|
26
|
-
```ruby
|
|
27
|
-
require 'ipgeolocation_sdk'
|
|
28
|
-
|
|
29
|
-
instance = IpgeolocationSdk::ASNResponseAsn.new(
|
|
30
|
-
as_number: AS3269,
|
|
31
|
-
organization: Telecom Italia S.p.A.,
|
|
32
|
-
country: IT,
|
|
33
|
-
asn_name: ASN-IBSNAZ,
|
|
34
|
-
type: ISP,
|
|
35
|
-
domain: business.telecomitalia.it,
|
|
36
|
-
date_allocated: Mon Nov 14 05:00:00 PKT 1994,
|
|
37
|
-
allocation_status: allocated,
|
|
38
|
-
num_of_ipv4_routes: 490,
|
|
39
|
-
num_of_ipv6_routes: 4,
|
|
40
|
-
rir: RIPE,
|
|
41
|
-
routes: ["192.76.177.0/24","216.165.96.0/20","216.165.89.0/24"],
|
|
42
|
-
upstreams: null,
|
|
43
|
-
downstreams: null,
|
|
44
|
-
peers: null,
|
|
45
|
-
whois_response: whois output as a single string...
|
|
46
|
-
)
|
|
47
|
-
```
|
|
48
|
-
|
data/docs/ASNLookupApi.md
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
# IpgeolocationSdk::ASNLookupApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.ipgeolocation.io/v2*
|
|
4
|
-
|
|
5
|
-
| Method | HTTP request | Description |
|
|
6
|
-
| ------ | ------------ | ----------- |
|
|
7
|
-
| [**get_asn_info**](ASNLookupApi.md#get_asn_info) | **GET** /asn | |
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
## get_asn_info
|
|
11
|
-
|
|
12
|
-
> <ASNResponse> get_asn_info(opts)
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
ASN API provides comprehensive details for an ASN including the as name, organization name, the country of registration, associated domain, and its type (ISP, host provider, or business). The API also shows the allocation date of provided ASN and if it is currently allocated or not. It also contains the routing information including peering, upstreams, and downstreams to help understand the relationship between different ASNs. Example Use Cases: - Looking up ASN information for an IP address (e.g., `GET /asn?ip=8.8.8.8`) - Retrieving ASN information for a specific ASN number (e.g., `GET /asn?asn=12345`) - Getting peering relationships for an ASN (e.g., `GET /asn?asn=12345&include=peers`)
|
|
17
|
-
|
|
18
|
-
### Examples
|
|
19
|
-
|
|
20
|
-
```ruby
|
|
21
|
-
require 'time'
|
|
22
|
-
require 'ipgeolocation_sdk'
|
|
23
|
-
# setup authorization
|
|
24
|
-
IpgeolocationSdk.configure do |config|
|
|
25
|
-
# Configure API key authorization: ApiKeyAuth
|
|
26
|
-
config.api_key['apiKey'] = 'YOUR API KEY'
|
|
27
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
28
|
-
# config.api_key_prefix['apiKey'] = 'Bearer'
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
api_instance = IpgeolocationSdk::ASNLookupApi.new
|
|
32
|
-
opts = {
|
|
33
|
-
ip: '8.8.8.8', # String | query parameter 'ip'.
|
|
34
|
-
asn: 1, # Integer | query paramter 'asn'.
|
|
35
|
-
include: 'peers', # String | This parameter can have four options: a) peers b) downstreams c) upstreams d) routes e) whois_response. You may add any of them in comma-separated way. In order to get the ASN details with peering data, pass peers string in the include parameter like mentioned below.
|
|
36
|
-
excludes: 'asn.date_allocated,asn.allocation_status', # String | You can exclude fields from the response according to you requirement with the exception of ip field. For example, you want to remove date_allocated and allocation_status from api response, you can put the keys in excludes parameter like this.
|
|
37
|
-
fields: 'asn.organization,asn.country,asn.downstreams' # String | You can filter out only those fields which you want to see in the response by using the fields parameter. To retrieve only the AS organization, its country and downstreams in api response, you can put the keys in fields parameter like this. API will combine these fields with the default ASN response. Note: Parameters `peers, downstreams, upstreams, routes, whois_response` can be used in both `include` , and `fields`. If you use include and fields at the same time, fields parameter will be considered only.
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
begin
|
|
41
|
-
|
|
42
|
-
result = api_instance.get_asn_info(opts)
|
|
43
|
-
p result
|
|
44
|
-
rescue IpgeolocationSdk::ApiError => e
|
|
45
|
-
puts "Error when calling ASNLookupApi->get_asn_info: #{e}"
|
|
46
|
-
end
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
#### Using the get_asn_info_with_http_info variant
|
|
50
|
-
|
|
51
|
-
This returns an Array which contains the response data, status code and headers.
|
|
52
|
-
|
|
53
|
-
> <Array(<ASNResponse>, Integer, Hash)> get_asn_info_with_http_info(opts)
|
|
54
|
-
|
|
55
|
-
```ruby
|
|
56
|
-
begin
|
|
57
|
-
|
|
58
|
-
data, status_code, headers = api_instance.get_asn_info_with_http_info(opts)
|
|
59
|
-
p status_code # => 2xx
|
|
60
|
-
p headers # => { ... }
|
|
61
|
-
p data # => <ASNResponse>
|
|
62
|
-
rescue IpgeolocationSdk::ApiError => e
|
|
63
|
-
puts "Error when calling ASNLookupApi->get_asn_info_with_http_info: #{e}"
|
|
64
|
-
end
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
### Parameters
|
|
68
|
-
|
|
69
|
-
| Name | Type | Description | Notes |
|
|
70
|
-
| ---- | ---- | ----------- | ----- |
|
|
71
|
-
| **ip** | **String** | query parameter 'ip'. | [optional] |
|
|
72
|
-
| **asn** | **Integer** | query paramter 'asn'. | [optional] |
|
|
73
|
-
| **include** | **String** | This parameter can have four options: a) peers b) downstreams c) upstreams d) routes e) whois_response. You may add any of them in comma-separated way. In order to get the ASN details with peering data, pass peers string in the include parameter like mentioned below. | [optional] |
|
|
74
|
-
| **excludes** | **String** | You can exclude fields from the response according to you requirement with the exception of ip field. For example, you want to remove date_allocated and allocation_status from api response, you can put the keys in excludes parameter like this. | [optional] |
|
|
75
|
-
| **fields** | **String** | You can filter out only those fields which you want to see in the response by using the fields parameter. To retrieve only the AS organization, its country and downstreams in api response, you can put the keys in fields parameter like this. API will combine these fields with the default ASN response. Note: Parameters `peers, downstreams, upstreams, routes, whois_response` can be used in both `include` , and `fields`. If you use include and fields at the same time, fields parameter will be considered only. | [optional] |
|
|
76
|
-
|
|
77
|
-
### Return type
|
|
78
|
-
|
|
79
|
-
[**ASNResponse**](ASNResponse.md)
|
|
80
|
-
|
|
81
|
-
### Authorization
|
|
82
|
-
|
|
83
|
-
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
84
|
-
|
|
85
|
-
### HTTP request headers
|
|
86
|
-
|
|
87
|
-
- **Content-Type**: Not defined
|
|
88
|
-
- **Accept**: application/json, application/xml
|
|
89
|
-
|
data/docs/ASNResponse.md
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# IpgeolocationSdk::ASNResponse
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **ip** | **String** | IP address for which ASN information is returned. Present if the 'ip' query parameter is used or no IP is specified (defaults to requester's IP). | [optional] |
|
|
8
|
-
| **asn** | [**ASNResponseAsn**](ASNResponseAsn.md) | | [optional] |
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```ruby
|
|
13
|
-
require 'ipgeolocation_sdk'
|
|
14
|
-
|
|
15
|
-
instance = IpgeolocationSdk::ASNResponse.new(
|
|
16
|
-
ip: 81.73.154.79,
|
|
17
|
-
asn: null
|
|
18
|
-
)
|
|
19
|
-
```
|
|
20
|
-
|
data/docs/ASNResponseXML.md
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# IpgeolocationSdk::ASNResponseXML
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **ip** | **String** | | [optional] |
|
|
8
|
-
| **asn** | [**ASNResponseXMLAsn**](ASNResponseXMLAsn.md) | | [optional] |
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```ruby
|
|
13
|
-
require 'ipgeolocation_sdk'
|
|
14
|
-
|
|
15
|
-
instance = IpgeolocationSdk::ASNResponseXML.new(
|
|
16
|
-
ip: 81.73.154.79,
|
|
17
|
-
asn: null
|
|
18
|
-
)
|
|
19
|
-
```
|
|
20
|
-
|
data/docs/ASNResponseXMLAsn.md
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# IpgeolocationSdk::ASNResponseXMLAsn
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **as_number** | **String** | | [optional] |
|
|
8
|
-
| **organization** | **String** | | [optional] |
|
|
9
|
-
| **country** | **String** | | [optional] |
|
|
10
|
-
| **asn_name** | **String** | | [optional] |
|
|
11
|
-
| **type** | **String** | | [optional] |
|
|
12
|
-
| **domain** | **String** | | [optional] |
|
|
13
|
-
| **date_allocated** | **Date** | | [optional] |
|
|
14
|
-
| **allocation_status** | **String** | | [optional] |
|
|
15
|
-
| **num_of_ipv4_routes** | **Integer** | | [optional] |
|
|
16
|
-
| **num_of_ipv6_routes** | **Integer** | | [optional] |
|
|
17
|
-
| **rir** | **String** | | [optional] |
|
|
18
|
-
| **routes** | **Array<String>** | It will only be included in the response, if you set include=routes in the request | [optional] |
|
|
19
|
-
| **upstreams** | [**Array<ASNConnection>**](ASNConnection.md) | | [optional] |
|
|
20
|
-
| **downstreams** | [**Array<ASNConnection>**](ASNConnection.md) | | [optional] |
|
|
21
|
-
| **peers** | [**Array<ASNConnection>**](ASNConnection.md) | | [optional] |
|
|
22
|
-
| **whois_response** | **String** | | [optional] |
|
|
23
|
-
|
|
24
|
-
## Example
|
|
25
|
-
|
|
26
|
-
```ruby
|
|
27
|
-
require 'ipgeolocation_sdk'
|
|
28
|
-
|
|
29
|
-
instance = IpgeolocationSdk::ASNResponseXMLAsn.new(
|
|
30
|
-
as_number: AS3269,
|
|
31
|
-
organization: Telecom Italia S.p.A.,
|
|
32
|
-
country: IT,
|
|
33
|
-
asn_name: ASN-IBSNAZ,
|
|
34
|
-
type: ISP,
|
|
35
|
-
domain: business.telecomitalia.it,
|
|
36
|
-
date_allocated: Mon Nov 14 05:00:00 PKT 1994,
|
|
37
|
-
allocation_status: allocated,
|
|
38
|
-
num_of_ipv4_routes: 490,
|
|
39
|
-
num_of_ipv6_routes: 4,
|
|
40
|
-
rir: RIPE,
|
|
41
|
-
routes: ["192.76.177.0/24","216.165.96.0/20","216.165.89.0/24"],
|
|
42
|
-
upstreams: null,
|
|
43
|
-
downstreams: null,
|
|
44
|
-
peers: null,
|
|
45
|
-
whois_response: whois output as a single string...
|
|
46
|
-
)
|
|
47
|
-
```
|
|
48
|
-
|