ipgeolocation_sdk 1.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.
Files changed (218) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/LICENSE +21 -0
  4. data/README.md +2124 -0
  5. data/Rakefile +10 -0
  6. data/docs/ASNConnection.md +22 -0
  7. data/docs/ASNDetails.md +48 -0
  8. data/docs/ASNLookupApi.md +89 -0
  9. data/docs/ASNResponse.md +20 -0
  10. data/docs/ASNResponseXML.md +20 -0
  11. data/docs/ASNResponseXMLAsn.md +48 -0
  12. data/docs/Abuse.md +40 -0
  13. data/docs/AbuseContactApi.md +85 -0
  14. data/docs/AbuseResponse.md +20 -0
  15. data/docs/AbuseResponseXML.md +20 -0
  16. data/docs/Astronomy.md +68 -0
  17. data/docs/AstronomyApi.md +97 -0
  18. data/docs/AstronomyEvening.md +36 -0
  19. data/docs/AstronomyLocation.md +50 -0
  20. data/docs/AstronomyMorning.md +36 -0
  21. data/docs/AstronomyResponse.md +22 -0
  22. data/docs/AstronomyXMLResponse.md +22 -0
  23. data/docs/BulkIPGeolocation.md +42 -0
  24. data/docs/BulkIPSecurity.md +42 -0
  25. data/docs/CountryMetadata.md +22 -0
  26. data/docs/Currency.md +22 -0
  27. data/docs/ErrorResponse.md +18 -0
  28. data/docs/ErrorXMLResponse.md +18 -0
  29. data/docs/ErrorXMLResponseArray.md +18 -0
  30. data/docs/GeolocationResponse.md +38 -0
  31. data/docs/GeolocationXMLResponse.md +38 -0
  32. data/docs/GeolocationXMLResponseArray.md +38 -0
  33. data/docs/GetBulkIpGeolocation200ResponseInner1.md +49 -0
  34. data/docs/GetBulkIpGeolocationRequest.md +18 -0
  35. data/docs/GetBulkIpSecurityInfo200ResponseInner1.md +49 -0
  36. data/docs/IPLocationApi.md +175 -0
  37. data/docs/Location.md +58 -0
  38. data/docs/LocationMinimal.md +52 -0
  39. data/docs/Network.md +22 -0
  40. data/docs/NetworkAsn.md +38 -0
  41. data/docs/NetworkCompany.md +22 -0
  42. data/docs/NetworkMinimal.md +20 -0
  43. data/docs/NetworkMinimalAsn.md +22 -0
  44. data/docs/NetworkMinimalCompany.md +18 -0
  45. data/docs/ParseBulkUserAgentStringsRequest.md +18 -0
  46. data/docs/ParseUserAgentStringRequest.md +18 -0
  47. data/docs/Security.md +38 -0
  48. data/docs/SecurityAPIResponse.md +34 -0
  49. data/docs/SecurityAPIXMLResponse.md +34 -0
  50. data/docs/SecurityAPIXMLResponseArray.md +34 -0
  51. data/docs/SecurityApi.md +175 -0
  52. data/docs/TimeConversionApi.md +109 -0
  53. data/docs/TimeConversionResponse.md +24 -0
  54. data/docs/TimeConversionXMLResponse.md +24 -0
  55. data/docs/TimeZone.md +36 -0
  56. data/docs/TimeZoneDetailedResponse.md +26 -0
  57. data/docs/TimeZoneDetailedXMLResponse.md +26 -0
  58. data/docs/TimeZoneDstEnd.md +28 -0
  59. data/docs/TimeZoneDstStart.md +28 -0
  60. data/docs/TimezoneAirport.md +40 -0
  61. data/docs/TimezoneApi.md +99 -0
  62. data/docs/TimezoneDetail.md +56 -0
  63. data/docs/TimezoneDetailDstEnd.md +28 -0
  64. data/docs/TimezoneDetailDstStart.md +28 -0
  65. data/docs/TimezoneLocation.md +48 -0
  66. data/docs/TimezoneLocode.md +32 -0
  67. data/docs/UserAgentApi.md +235 -0
  68. data/docs/UserAgentData.md +32 -0
  69. data/docs/UserAgentDataDevice.md +24 -0
  70. data/docs/UserAgentDataEngine.md +24 -0
  71. data/docs/UserAgentDataOperatingSystem.md +26 -0
  72. data/docs/UserAgentXMLData.md +32 -0
  73. data/docs/UserAgentXMLDataArray.md +32 -0
  74. data/git_push.sh +57 -0
  75. data/ipgeolocation_sdk.gemspec +29 -0
  76. data/lib/ipgeolocation_sdk/api/abuse_contact_api.rb +86 -0
  77. data/lib/ipgeolocation_sdk/api/asn_lookup_api.rb +92 -0
  78. data/lib/ipgeolocation_sdk/api/astronomy_api.rb +116 -0
  79. data/lib/ipgeolocation_sdk/api/ip_geolocation_api.rb +186 -0
  80. data/lib/ipgeolocation_sdk/api/ip_security_api.rb +184 -0
  81. data/lib/ipgeolocation_sdk/api/time_conversion_api.rb +122 -0
  82. data/lib/ipgeolocation_sdk/api/timezone_api.rb +113 -0
  83. data/lib/ipgeolocation_sdk/api/user_agent_api.rb +158 -0
  84. data/lib/ipgeolocation_sdk/api_client.rb +393 -0
  85. data/lib/ipgeolocation_sdk/api_error.rb +58 -0
  86. data/lib/ipgeolocation_sdk/configuration.rb +308 -0
  87. data/lib/ipgeolocation_sdk/models/abuse.rb +305 -0
  88. data/lib/ipgeolocation_sdk/models/abuse_response.rb +229 -0
  89. data/lib/ipgeolocation_sdk/models/abuse_response_xml.rb +229 -0
  90. data/lib/ipgeolocation_sdk/models/asn_connection.rb +238 -0
  91. data/lib/ipgeolocation_sdk/models/asn_response.rb +230 -0
  92. data/lib/ipgeolocation_sdk/models/asn_response_asn.rb +368 -0
  93. data/lib/ipgeolocation_sdk/models/asn_response_xml.rb +229 -0
  94. data/lib/ipgeolocation_sdk/models/asn_response_xml_asn.rb +364 -0
  95. data/lib/ipgeolocation_sdk/models/astronomy.rb +445 -0
  96. data/lib/ipgeolocation_sdk/models/astronomy_evening.rb +301 -0
  97. data/lib/ipgeolocation_sdk/models/astronomy_location.rb +364 -0
  98. data/lib/ipgeolocation_sdk/models/astronomy_morning.rb +301 -0
  99. data/lib/ipgeolocation_sdk/models/astronomy_response.rb +238 -0
  100. data/lib/ipgeolocation_sdk/models/astronomy_xml_response.rb +238 -0
  101. data/lib/ipgeolocation_sdk/models/bulk_ip_geolocation.rb +113 -0
  102. data/lib/ipgeolocation_sdk/models/bulk_ip_security.rb +113 -0
  103. data/lib/ipgeolocation_sdk/models/country_metadata.rb +240 -0
  104. data/lib/ipgeolocation_sdk/models/currency.rb +238 -0
  105. data/lib/ipgeolocation_sdk/models/error_response.rb +220 -0
  106. data/lib/ipgeolocation_sdk/models/error_xml_response.rb +220 -0
  107. data/lib/ipgeolocation_sdk/models/error_xml_response_array.rb +220 -0
  108. data/lib/ipgeolocation_sdk/models/geolocation_response.rb +310 -0
  109. data/lib/ipgeolocation_sdk/models/geolocation_xml_response.rb +310 -0
  110. data/lib/ipgeolocation_sdk/models/geolocation_xml_response_array.rb +310 -0
  111. data/lib/ipgeolocation_sdk/models/get_bulk_ip_geolocation200_response_inner1.rb +105 -0
  112. data/lib/ipgeolocation_sdk/models/get_bulk_ip_geolocation_request.rb +241 -0
  113. data/lib/ipgeolocation_sdk/models/get_bulk_ip_security_info200_response_inner1.rb +105 -0
  114. data/lib/ipgeolocation_sdk/models/location.rb +400 -0
  115. data/lib/ipgeolocation_sdk/models/location_minimal.rb +373 -0
  116. data/lib/ipgeolocation_sdk/models/network.rb +238 -0
  117. data/lib/ipgeolocation_sdk/models/network_asn.rb +310 -0
  118. data/lib/ipgeolocation_sdk/models/network_company.rb +238 -0
  119. data/lib/ipgeolocation_sdk/models/network_minimal.rb +229 -0
  120. data/lib/ipgeolocation_sdk/models/network_minimal_asn.rb +238 -0
  121. data/lib/ipgeolocation_sdk/models/network_minimal_company.rb +220 -0
  122. data/lib/ipgeolocation_sdk/models/parse_bulk_user_agent_strings_request.rb +222 -0
  123. data/lib/ipgeolocation_sdk/models/parse_user_agent_string_request.rb +220 -0
  124. data/lib/ipgeolocation_sdk/models/security.rb +310 -0
  125. data/lib/ipgeolocation_sdk/models/security_api_response.rb +292 -0
  126. data/lib/ipgeolocation_sdk/models/security_apixml_response.rb +292 -0
  127. data/lib/ipgeolocation_sdk/models/security_apixml_response_array.rb +292 -0
  128. data/lib/ipgeolocation_sdk/models/time_conversion_response.rb +247 -0
  129. data/lib/ipgeolocation_sdk/models/time_conversion_xml_response.rb +247 -0
  130. data/lib/ipgeolocation_sdk/models/time_zone.rb +301 -0
  131. data/lib/ipgeolocation_sdk/models/time_zone_detailed_response.rb +256 -0
  132. data/lib/ipgeolocation_sdk/models/time_zone_detailed_xml_response.rb +256 -0
  133. data/lib/ipgeolocation_sdk/models/time_zone_dst_end.rb +265 -0
  134. data/lib/ipgeolocation_sdk/models/time_zone_dst_start.rb +265 -0
  135. data/lib/ipgeolocation_sdk/models/timezone_airport.rb +319 -0
  136. data/lib/ipgeolocation_sdk/models/timezone_detail.rb +391 -0
  137. data/lib/ipgeolocation_sdk/models/timezone_detail_dst_end.rb +265 -0
  138. data/lib/ipgeolocation_sdk/models/timezone_detail_dst_start.rb +265 -0
  139. data/lib/ipgeolocation_sdk/models/timezone_location.rb +355 -0
  140. data/lib/ipgeolocation_sdk/models/timezone_locode.rb +283 -0
  141. data/lib/ipgeolocation_sdk/models/user_agent_data.rb +283 -0
  142. data/lib/ipgeolocation_sdk/models/user_agent_data_device.rb +247 -0
  143. data/lib/ipgeolocation_sdk/models/user_agent_data_engine.rb +247 -0
  144. data/lib/ipgeolocation_sdk/models/user_agent_data_operating_system.rb +256 -0
  145. data/lib/ipgeolocation_sdk/models/user_agent_xml_data.rb +283 -0
  146. data/lib/ipgeolocation_sdk/models/user_agent_xml_data_array.rb +283 -0
  147. data/lib/ipgeolocation_sdk/version.rb +15 -0
  148. data/lib/ipgeolocation_sdk.rb +107 -0
  149. data/spec/api/abuse_contact_api_spec.rb +48 -0
  150. data/spec/api/asn_lookup_api_spec.rb +50 -0
  151. data/spec/api/astronomy_api_spec.rb +54 -0
  152. data/spec/api/ip_location_api_spec.rb +67 -0
  153. data/spec/api/security_api_spec.rb +67 -0
  154. data/spec/api/time_conversion_api_spec.rb +60 -0
  155. data/spec/api/timezone_api_spec.rb +56 -0
  156. data/spec/api/user_agent_api_spec.rb +74 -0
  157. data/spec/models/abuse_response_spec.rb +42 -0
  158. data/spec/models/abuse_response_xml_spec.rb +42 -0
  159. data/spec/models/abuse_spec.rb +90 -0
  160. data/spec/models/asn_connection_spec.rb +48 -0
  161. data/spec/models/asn_response_asn_spec.rb +126 -0
  162. data/spec/models/asn_response_spec.rb +42 -0
  163. data/spec/models/asn_response_xml_asn_spec.rb +126 -0
  164. data/spec/models/asn_response_xml_spec.rb +42 -0
  165. data/spec/models/astronomy_evening_spec.rb +90 -0
  166. data/spec/models/astronomy_location_spec.rb +132 -0
  167. data/spec/models/astronomy_morning_spec.rb +90 -0
  168. data/spec/models/astronomy_response_spec.rb +48 -0
  169. data/spec/models/astronomy_spec.rb +186 -0
  170. data/spec/models/astronomy_xml_response_spec.rb +48 -0
  171. data/spec/models/country_metadata_spec.rb +48 -0
  172. data/spec/models/currency_spec.rb +48 -0
  173. data/spec/models/error_response_spec.rb +36 -0
  174. data/spec/models/error_xml_response_array_spec.rb +36 -0
  175. data/spec/models/error_xml_response_spec.rb +36 -0
  176. data/spec/models/geolocation_response_spec.rb +96 -0
  177. data/spec/models/geolocation_xml_response_array_spec.rb +96 -0
  178. data/spec/models/geolocation_xml_response_spec.rb +96 -0
  179. data/spec/models/get_bulk_ip_geolocation200_response_inner1_spec.rb +32 -0
  180. data/spec/models/get_bulk_ip_geolocation200_response_inner_spec.rb +32 -0
  181. data/spec/models/get_bulk_ip_geolocation_request_spec.rb +36 -0
  182. data/spec/models/get_bulk_ip_security_info200_response_inner1_spec.rb +32 -0
  183. data/spec/models/get_bulk_ip_security_info200_response_inner_spec.rb +32 -0
  184. data/spec/models/location_minimal_spec.rb +138 -0
  185. data/spec/models/location_spec.rb +156 -0
  186. data/spec/models/network_asn_spec.rb +96 -0
  187. data/spec/models/network_company_spec.rb +48 -0
  188. data/spec/models/network_minimal_asn_spec.rb +48 -0
  189. data/spec/models/network_minimal_company_spec.rb +36 -0
  190. data/spec/models/network_minimal_spec.rb +42 -0
  191. data/spec/models/network_spec.rb +48 -0
  192. data/spec/models/parse_bulk_user_agent_strings_request_spec.rb +36 -0
  193. data/spec/models/parse_user_agent_string_request_spec.rb +36 -0
  194. data/spec/models/security_api_response_spec.rb +84 -0
  195. data/spec/models/security_apixml_response_array_spec.rb +84 -0
  196. data/spec/models/security_apixml_response_spec.rb +84 -0
  197. data/spec/models/security_spec.rb +96 -0
  198. data/spec/models/time_conversion_response_spec.rb +54 -0
  199. data/spec/models/time_conversion_xml_response_spec.rb +54 -0
  200. data/spec/models/time_zone_detailed_response_spec.rb +60 -0
  201. data/spec/models/time_zone_detailed_xml_response_spec.rb +60 -0
  202. data/spec/models/time_zone_dst_end_spec.rb +66 -0
  203. data/spec/models/time_zone_dst_start_spec.rb +66 -0
  204. data/spec/models/time_zone_spec.rb +90 -0
  205. data/spec/models/timezone_airport_spec.rb +102 -0
  206. data/spec/models/timezone_detail_dst_end_spec.rb +66 -0
  207. data/spec/models/timezone_detail_dst_start_spec.rb +66 -0
  208. data/spec/models/timezone_detail_spec.rb +150 -0
  209. data/spec/models/timezone_location_spec.rb +126 -0
  210. data/spec/models/timezone_locode_spec.rb +78 -0
  211. data/spec/models/user_agent_data_device_spec.rb +54 -0
  212. data/spec/models/user_agent_data_engine_spec.rb +54 -0
  213. data/spec/models/user_agent_data_operating_system_spec.rb +60 -0
  214. data/spec/models/user_agent_data_spec.rb +78 -0
  215. data/spec/models/user_agent_xml_data_array_spec.rb +78 -0
  216. data/spec/models/user_agent_xml_data_spec.rb +78 -0
  217. data/spec/spec_helper.rb +111 -0
  218. metadata +373 -0
@@ -0,0 +1,184 @@
1
+ =begin
2
+ #IPGeolocation.io - IP intelligence products
3
+
4
+ #Ipgeolocation provides a set of APIs to make ip based decisions.
5
+
6
+ The version of the OpenAPI document: 2.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.13.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module IpgeolocationSdk
16
+ class IPSecurityApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # The Bulk IP Security Lookup API can provide security details for up to `50,000` bulk IPs. This API also has parameters to customize the response, just like the single IP Security Lookup API.
23
+ # @param get_bulk_ip_geolocation_request [GetBulkIpGeolocationRequest]
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :include Include optional objects like `location`, `network`. Use comma-separated values. Example: include=location,network
26
+ # @option opts [String] :fields Get specific fields, objects from the response.
27
+ # @option opts [String] :excludes Exclude specific fields, objects from the response.
28
+ # @option opts [String] :output Desired output format.
29
+ # @option opts [String] :lang By default, the API responds in English. You can change the response language by passing the language code as a query parameter `lang`. Multi language feature is available only for `paid users`.
30
+ # @return [Array<GetBulkIpSecurityInfo200ResponseInner>]
31
+ def get_bulk_ip_security_info(opts = {})
32
+ data, _status_code, _headers = get_bulk_ip_security_info_with_http_info(opts)
33
+ data
34
+ end
35
+
36
+ # The Bulk IP Security Lookup API can provide security details for up to &#x60;50,000&#x60; bulk IPs. This API also has parameters to customize the response, just like the single IP Security Lookup API.
37
+ # @param get_bulk_ip_geolocation_request [GetBulkIpGeolocationRequest]
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :include Include optional objects like &#x60;location&#x60;, &#x60;network&#x60;. Use comma-separated values. Example: include&#x3D;location,network
40
+ # @option opts [String] :fields Get specific fields, objects from the response.
41
+ # @option opts [String] :excludes Exclude specific fields, objects from the response.
42
+ # @option opts [String] :output Desired output format.
43
+ # @option opts [String] :lang By default, the API responds in English. You can change the response language by passing the language code as a query parameter &#x60;lang&#x60;. Multi language feature is available only for &#x60;paid users&#x60;.
44
+ # @return [Array<(Array<GetBulkIpSecurityInfo200ResponseInner>, Integer, Hash)>] Array<GetBulkIpSecurityInfo200ResponseInner> data, response status code and response headers
45
+ def get_bulk_ip_security_info_with_http_info(opts = {})
46
+ if @api_client.config.debugging
47
+ @api_client.config.logger.debug 'Calling API: SecurityApi.get_bulk_ip_security_info ...'
48
+ end
49
+ # verify the required parameter 'get_bulk_ip_geolocation_request' is set
50
+ if @api_client.config.client_side_validation && (!opts[:ips].is_a?(Array) || opts[:ips].empty?)
51
+ fail ArgumentError, "Missing the required parameter 'ips' (non-empty Array) when calling IPSecurityApi.get_bulk_ip_security_info"
52
+ end
53
+ allowable_values = ["en", "de", "ru", "ja", "fr", "cn", "es", "cs", "it", "ko", "fa", "pt"]
54
+ if @api_client.config.client_side_validation && opts[:'lang'] && !allowable_values.include?(opts[:'lang'])
55
+ fail ArgumentError, "invalid value for \"lang\", must be one of #{allowable_values}"
56
+ end
57
+ # resource path
58
+ local_var_path = '/security-bulk'
59
+
60
+ # query parameters
61
+ query_params = opts[:query_params] || {}
62
+ query_params[:'include'] = opts[:'include'] if !opts[:'include'].nil?
63
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
64
+ query_params[:'excludes'] = opts[:'excludes'] if !opts[:'excludes'].nil?
65
+ query_params[:'output'] = opts[:'output'] if !opts[:'output'].nil?
66
+ query_params[:'lang'] = opts[:'lang'] if !opts[:'lang'].nil?
67
+
68
+ # header parameters
69
+ header_params = opts[:header_params] || {}
70
+ # HTTP header 'Accept' (if needed)
71
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml']) unless header_params['Accept']
72
+ # HTTP header 'Content-Type'
73
+ content_type = @api_client.select_header_content_type(['application/json'])
74
+ if !content_type.nil?
75
+ header_params['Content-Type'] = content_type
76
+ end
77
+
78
+ # form parameters
79
+ form_params = opts[:form_params] || {}
80
+
81
+ # http body (model)
82
+ post_body = opts[:debug_body] || @api_client.object_to_http_body({ ips: opts[:ips] })
83
+
84
+ # return_type
85
+ return_type = opts[:debug_return_type] || 'Array<BulkIPSecurity>'
86
+
87
+ # auth_names
88
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
89
+
90
+ new_options = opts.merge(
91
+ :operation => :"SecurityApi.get_bulk_ip_security_info",
92
+ :header_params => header_params,
93
+ :query_params => query_params,
94
+ :form_params => form_params,
95
+ :body => post_body,
96
+ :auth_names => auth_names,
97
+ :return_type => return_type
98
+ )
99
+
100
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
101
+ if @api_client.config.debugging
102
+ @api_client.config.logger.debug "API called: IPSecurityApi#get_bulk_ip_security_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
103
+ end
104
+ return data, status_code, headers
105
+ end
106
+
107
+ # IP Security API provides security details of a given IP. It detects whether the IP is proxy, tor or bot. It also shows the proxy types of the IP (like VPN, PROXY, RELAY etc.) with it's VPN/proxy service provider making our API powerful VPN checker. It finds the IPs that are involved in spam activities. It also checks whether the IP links to a cloud provider and includes the provider's name.
108
+ # @param [Hash] opts the optional parameters
109
+ # @option opts [String] :ip query parameter &#39;ip&#39;. If not provided, will be your network IP
110
+ # @option opts [String] :include Include optional details like location and/or network.
111
+ # @option opts [String] :fields Get specific fields, objects from the response.
112
+ # @option opts [String] :excludes Exclude specific fields, objects from the response.
113
+ # @option opts [String] :output Desired output format (json or xml).
114
+ # @option opts [String] :lang By default, the API responds in English. You can change the response language by passing the language code as a query parameter &#x60;lang&#x60;. Multi language feature is available only for &#x60;paid users&#x60;.
115
+ # @return [SecurityAPIResponse]
116
+ def get_ip_security_info(opts = {})
117
+ data, _status_code, _headers = get_ip_security_info_with_http_info(opts)
118
+ data
119
+ end
120
+
121
+ # IP Security API provides security details of a given IP. It detects whether the IP is proxy, tor or bot. It also shows the proxy types of the IP (like VPN, PROXY, RELAY etc.) with it&#39;s VPN/proxy service provider making our API powerful VPN checker. It finds the IPs that are involved in spam activities. It also checks whether the IP links to a cloud provider and includes the provider&#39;s name.
122
+ # @param [Hash] opts the optional parameters
123
+ # @option opts [String] :ip query parameter &#39;ip&#39;. If not provided, will be your network IP
124
+ # @option opts [String] :include Include optional details like location and/or network.
125
+ # @option opts [String] :fields Get specific fields, objects from the response.
126
+ # @option opts [String] :excludes Exclude specific fields, objects from the response.
127
+ # @option opts [String] :output Desired output format (json or xml).
128
+ # @option opts [String] :lang By default, the API responds in English. You can change the response language by passing the language code as a query parameter &#x60;lang&#x60;. Multi language feature is available only for &#x60;paid users&#x60;.
129
+ # @return [Array<(SecurityAPIResponse, Integer, Hash)>] SecurityAPIResponse data, response status code and response headers
130
+ def get_ip_security_info_with_http_info(opts = {})
131
+ if @api_client.config.debugging
132
+ @api_client.config.logger.debug 'Calling API: IPSecurityApi.get_ip_security_info ...'
133
+ end
134
+ allowable_values = ["en", "de", "ru", "ja", "fr", "cn", "es", "cs", "it", "ko", "fa", "pt"]
135
+ if @api_client.config.client_side_validation && opts[:'lang'] && !allowable_values.include?(opts[:'lang'])
136
+ fail ArgumentError, "invalid value for \"lang\", must be one of #{allowable_values}"
137
+ end
138
+ # resource path
139
+ local_var_path = '/security'
140
+
141
+ # query parameters
142
+ query_params = opts[:query_params] || {}
143
+ query_params[:'ip'] = opts[:'ip'] if !opts[:'ip'].nil?
144
+ query_params[:'include'] = opts[:'include'] if !opts[:'include'].nil?
145
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
146
+ query_params[:'excludes'] = opts[:'excludes'] if !opts[:'excludes'].nil?
147
+ query_params[:'output'] = opts[:'output'] if !opts[:'output'].nil?
148
+ query_params[:'lang'] = opts[:'lang'] if !opts[:'lang'].nil?
149
+
150
+ # header parameters
151
+ header_params = opts[:header_params] || {}
152
+ # HTTP header 'Accept' (if needed)
153
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml']) unless header_params['Accept']
154
+
155
+ # form parameters
156
+ form_params = opts[:form_params] || {}
157
+
158
+ # http body (model)
159
+ post_body = opts[:debug_body]
160
+
161
+ # return_type
162
+ return_type = opts[:debug_return_type] || 'SecurityAPIResponse'
163
+
164
+ # auth_names
165
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
166
+
167
+ new_options = opts.merge(
168
+ :operation => :"SecurityApi.get_ip_security_info",
169
+ :header_params => header_params,
170
+ :query_params => query_params,
171
+ :form_params => form_params,
172
+ :body => post_body,
173
+ :auth_names => auth_names,
174
+ :return_type => return_type
175
+ )
176
+
177
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
178
+ if @api_client.config.debugging
179
+ @api_client.config.logger.debug "API called: IPSecurityApi#get_ip_security_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
180
+ end
181
+ return data, status_code, headers
182
+ end
183
+ end
184
+ end
@@ -0,0 +1,122 @@
1
+ =begin
2
+ #IPGeolocation.io - IP intelligence products
3
+
4
+ #Ipgeolocation provides a set of APIs to make ip based decisions.
5
+
6
+ The version of the OpenAPI document: 2.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.13.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module IpgeolocationSdk
16
+ class TimeConversionApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # You can convert a timestamp provided as a query paramter time from one time zone to another time zone.
23
+ # @param [Hash] opts the optional parameters
24
+ # @option opts [String] :time time parameter takes the input in the following two formats: i) &#39;yyyy-MM-dd HH:mm&#39;, and ii) &#39;yyyy-MM-dd HH:mm:ss&#39;. This parameter is optional and you can omit it to convert the current time between two coordinates, time zones or locations.
25
+ # @option opts [String] :tz_from timezone to convert from
26
+ # @option opts [String] :tz_to timezone to convert to
27
+ # @option opts [Float] :lat_from latitude to convert from
28
+ # @option opts [Float] :long_from longitude to convert from
29
+ # @option opts [Float] :lat_to latitude to convert to
30
+ # @option opts [Float] :long_to longitude to convert to
31
+ # @option opts [String] :location_from location to convert from
32
+ # @option opts [String] :location_to location to convert to
33
+ # @option opts [String] :icao_from location to convert from
34
+ # @option opts [String] :icao_to location to convert to
35
+ # @option opts [String] :iata_from location to convert from
36
+ # @option opts [String] :iata_to location to convert to
37
+ # @option opts [String] :locode_from location to convert from
38
+ # @option opts [String] :locode_to location to convert to
39
+ # @return [TimeConversionResponse]
40
+ def convert_time_between_timezones(opts = {})
41
+ data, _status_code, _headers = convert_time_between_timezones_with_http_info(opts)
42
+ data
43
+ end
44
+
45
+ # You can convert a timestamp provided as a query paramter time from one time zone to another time zone.
46
+ # @param [Hash] opts the optional parameters
47
+ # @option opts [String] :time time parameter takes the input in the following two formats: i) &#39;yyyy-MM-dd HH:mm&#39;, and ii) &#39;yyyy-MM-dd HH:mm:ss&#39;. This parameter is optional and you can omit it to convert the current time between two coordinates, time zones or locations.
48
+ # @option opts [String] :tz_from timezone to convert from
49
+ # @option opts [String] :tz_to timezone to convert to
50
+ # @option opts [Float] :lat_from latitude to convert from
51
+ # @option opts [Float] :long_from longitude to convert from
52
+ # @option opts [Float] :lat_to latitude to convert to
53
+ # @option opts [Float] :long_to longitude to convert to
54
+ # @option opts [String] :location_from location to convert from
55
+ # @option opts [String] :location_to location to convert to
56
+ # @option opts [String] :icao_from location to convert from
57
+ # @option opts [String] :icao_to location to convert to
58
+ # @option opts [String] :iata_from location to convert from
59
+ # @option opts [String] :iata_to location to convert to
60
+ # @option opts [String] :locode_from location to convert from
61
+ # @option opts [String] :locode_to location to convert to
62
+ # @return [Array<(TimeConversionResponse, Integer, Hash)>] TimeConversionResponse data, response status code and response headers
63
+ def convert_time_between_timezones_with_http_info(opts = {})
64
+ if @api_client.config.debugging
65
+ @api_client.config.logger.debug 'Calling API: TimeConversionApi.convert_time_between_timezones ...'
66
+ end
67
+ # resource path
68
+ local_var_path = '/timezone/convert'
69
+
70
+ # query parameters
71
+ query_params = opts[:query_params] || {}
72
+ query_params[:'time'] = opts[:'time'] if !opts[:'time'].nil?
73
+ query_params[:'tz_from'] = opts[:'tz_from'] if !opts[:'tz_from'].nil?
74
+ query_params[:'tz_to'] = opts[:'tz_to'] if !opts[:'tz_to'].nil?
75
+ query_params[:'lat_from'] = opts[:'lat_from'] if !opts[:'lat_from'].nil?
76
+ query_params[:'long_from'] = opts[:'long_from'] if !opts[:'long_from'].nil?
77
+ query_params[:'lat_to'] = opts[:'lat_to'] if !opts[:'lat_to'].nil?
78
+ query_params[:'long_to'] = opts[:'long_to'] if !opts[:'long_to'].nil?
79
+ query_params[:'location_from'] = opts[:'location_from'] if !opts[:'location_from'].nil?
80
+ query_params[:'location_to'] = opts[:'location_to'] if !opts[:'location_to'].nil?
81
+ query_params[:'icao_from'] = opts[:'icao_from'] if !opts[:'icao_from'].nil?
82
+ query_params[:'icao_to'] = opts[:'icao_to'] if !opts[:'icao_to'].nil?
83
+ query_params[:'iata_from'] = opts[:'iata_from'] if !opts[:'iata_from'].nil?
84
+ query_params[:'iata_to'] = opts[:'iata_to'] if !opts[:'iata_to'].nil?
85
+ query_params[:'locode_from'] = opts[:'locode_from'] if !opts[:'locode_from'].nil?
86
+ query_params[:'locode_to'] = opts[:'locode_to'] if !opts[:'locode_to'].nil?
87
+
88
+ # header parameters
89
+ header_params = opts[:header_params] || {}
90
+ # HTTP header 'Accept' (if needed)
91
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml']) unless header_params['Accept']
92
+
93
+ # form parameters
94
+ form_params = opts[:form_params] || {}
95
+
96
+ # http body (model)
97
+ post_body = opts[:debug_body]
98
+
99
+ # return_type
100
+ return_type = opts[:debug_return_type] || 'TimeConversionResponse'
101
+
102
+ # auth_names
103
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
104
+
105
+ new_options = opts.merge(
106
+ :operation => :"TimeConversionApi.convert_time_between_timezones",
107
+ :header_params => header_params,
108
+ :query_params => query_params,
109
+ :form_params => form_params,
110
+ :body => post_body,
111
+ :auth_names => auth_names,
112
+ :return_type => return_type
113
+ )
114
+
115
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
116
+ if @api_client.config.debugging
117
+ @api_client.config.logger.debug "API called: TimeConversionApi#convert_time_between_timezones\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
118
+ end
119
+ return data, status_code, headers
120
+ end
121
+ end
122
+ end
@@ -0,0 +1,113 @@
1
+ =begin
2
+ #IPGeolocation.io - IP intelligence products
3
+
4
+ #Ipgeolocation provides a set of APIs to make ip based decisions.
5
+
6
+ The version of the OpenAPI document: 2.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.13.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module IpgeolocationSdk
16
+ class TimezoneApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Timezone information details
23
+ # The Time Zone API provides current time, date, and time zone-related information. It supports various input types including time zone name, geographic coordinates, addresses, IPs, and location codes. The API determines the time zone based on the following priority order if multiple parameters are provided: 1. Time Zone Name 2. Geographic Coordinates (latitude & longitude) 3. Location Address 4. IP Address 5. IATA Code 6. ICAO Code 7. UN/LOCODE Enriched response data is returned based on the type of input: - IP: includes geolocation info - Address: includes location metadata - IATA/ICAO: includes airport info - UN/LOCODE: includes city details You can call the time zone API without passing any time zone, coordinates, IATA, ICAO, LO code or IP address as well. It will use the calling machine's IP address to return the regional time zone information.
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :tz pass a valid time zone name as a query parameter tz to get the time zone information.
26
+ # @option opts [String] :location pass any address of a location as the query parameter location to get the time zone information.
27
+ # @option opts [Float] :lat pass the latitude of a location as query parameters to get the time zone information.
28
+ # @option opts [Float] :long pass the longitude of a location as query parameters to get the time zone information.
29
+ # @option opts [String] :ip You can pass any IPv4 or IPv6 address as a query parameter ip to get the regional timezone information.
30
+ # @option opts [String] :iata_code pass any 3 letter IATA code as a query paramter iata_code to get the comprehensive airport details along with the time zone information, in which that airport exists.
31
+ # @option opts [String] :icao_code pass any 4 letter ICAO code as a query paramter icao_code to get the comprehensive airport details along with the time zone information, in which that airport exists.
32
+ # @option opts [String] :lo_code pass any 5 letter UNLOCODE as a query paramter lo_code to get the comprehensive lo code/city details along with the time zone information of the concerned city.
33
+ # @option opts [String] :output Desired output format (json or xml).
34
+ # @option opts [String] :lang By default, the API responds in English. You can change the response language by passing the language code as a query parameter &#x60;lang&#x60;. Multi language feature is available only for &#x60;paid users&#x60;.
35
+ # @return [TimeZoneDetailedResponse]
36
+ def get_timezone_info(opts = {})
37
+ data, _status_code, _headers = get_timezone_info_with_http_info(opts)
38
+ data
39
+ end
40
+
41
+ # Timezone information details
42
+ # The Time Zone API provides current time, date, and time zone-related information. It supports various input types including time zone name, geographic coordinates, addresses, IPs, and location codes. The API determines the time zone based on the following priority order if multiple parameters are provided: 1. Time Zone Name 2. Geographic Coordinates (latitude &amp; longitude) 3. Location Address 4. IP Address 5. IATA Code 6. ICAO Code 7. UN/LOCODE Enriched response data is returned based on the type of input: - IP: includes geolocation info - Address: includes location metadata - IATA/ICAO: includes airport info - UN/LOCODE: includes city details You can call the time zone API without passing any time zone, coordinates, IATA, ICAO, LO code or IP address as well. It will use the calling machine&#39;s IP address to return the regional time zone information.
43
+ # @param [Hash] opts the optional parameters
44
+ # @option opts [String] :tz pass a valid time zone name as a query parameter tz to get the time zone information.
45
+ # @option opts [String] :location pass any address of a location as the query parameter location to get the time zone information.
46
+ # @option opts [Float] :lat pass the latitude of a location as query parameters to get the time zone information.
47
+ # @option opts [Float] :long pass the longitude of a location as query parameters to get the time zone information.
48
+ # @option opts [String] :ip You can pass any IPv4 or IPv6 address as a query parameter ip to get the regional timezone information.
49
+ # @option opts [String] :iata_code pass any 3 letter IATA code as a query paramter iata_code to get the comprehensive airport details along with the time zone information, in which that airport exists.
50
+ # @option opts [String] :icao_code pass any 4 letter ICAO code as a query paramter icao_code to get the comprehensive airport details along with the time zone information, in which that airport exists.
51
+ # @option opts [String] :lo_code pass any 5 letter UNLOCODE as a query paramter lo_code to get the comprehensive lo code/city details along with the time zone information of the concerned city.
52
+ # @option opts [String] :output Desired output format (json or xml).
53
+ # @option opts [String] :lang By default, the API responds in English. You can change the response language by passing the language code as a query parameter &#x60;lang&#x60;. Multi language feature is available only for &#x60;paid users&#x60;.
54
+ # @return [Array<(TimeZoneDetailedResponse, Integer, Hash)>] TimeZoneDetailedResponse data, response status code and response headers
55
+ def get_timezone_info_with_http_info(opts = {})
56
+ if @api_client.config.debugging
57
+ @api_client.config.logger.debug 'Calling API: TimezoneApi.get_timezone_info ...'
58
+ end
59
+ allowable_values = ["en", "de", "ru", "ja", "fr", "cn", "es", "cs", "it", "ko", "fa", "pt"]
60
+ if @api_client.config.client_side_validation && opts[:'lang'] && !allowable_values.include?(opts[:'lang'])
61
+ fail ArgumentError, "invalid value for \"lang\", must be one of #{allowable_values}"
62
+ end
63
+ # resource path
64
+ local_var_path = '/timezone'
65
+
66
+ # query parameters
67
+ query_params = opts[:query_params] || {}
68
+ query_params[:'tz'] = opts[:'tz'] if !opts[:'tz'].nil?
69
+ query_params[:'location'] = opts[:'location'] if !opts[:'location'].nil?
70
+ query_params[:'lat'] = opts[:'lat'] if !opts[:'lat'].nil?
71
+ query_params[:'long'] = opts[:'long'] if !opts[:'long'].nil?
72
+ query_params[:'ip'] = opts[:'ip'] if !opts[:'ip'].nil?
73
+ query_params[:'iata_code'] = opts[:'iata_code'] if !opts[:'iata_code'].nil?
74
+ query_params[:'icao_code'] = opts[:'icao_code'] if !opts[:'icao_code'].nil?
75
+ query_params[:'lo_code'] = opts[:'lo_code'] if !opts[:'lo_code'].nil?
76
+ query_params[:'output'] = opts[:'output'] if !opts[:'output'].nil?
77
+ query_params[:'lang'] = opts[:'lang'] if !opts[:'lang'].nil?
78
+
79
+ # header parameters
80
+ header_params = opts[:header_params] || {}
81
+ # HTTP header 'Accept' (if needed)
82
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml']) unless header_params['Accept']
83
+
84
+ # form parameters
85
+ form_params = opts[:form_params] || {}
86
+
87
+ # http body (model)
88
+ post_body = opts[:debug_body]
89
+
90
+ # return_type
91
+ return_type = opts[:debug_return_type] || 'TimeZoneResponse'
92
+
93
+ # auth_names
94
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
95
+
96
+ new_options = opts.merge(
97
+ :operation => :"TimezoneApi.get_timezone_info",
98
+ :header_params => header_params,
99
+ :query_params => query_params,
100
+ :form_params => form_params,
101
+ :body => post_body,
102
+ :auth_names => auth_names,
103
+ :return_type => return_type
104
+ )
105
+
106
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
107
+ if @api_client.config.debugging
108
+ @api_client.config.logger.debug "API called: TimezoneApi#get_timezone_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
109
+ end
110
+ return data, status_code, headers
111
+ end
112
+ end
113
+ end
@@ -0,0 +1,158 @@
1
+ =begin
2
+ #IPGeolocation.io - IP intelligence products
3
+
4
+ #Ipgeolocation provides a set of APIs to make ip based decisions.
5
+
6
+ The version of the OpenAPI document: 2.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.13.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module IpgeolocationSdk
16
+ class UserAgentApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Get details of user-agent
23
+ # User Agent Parser API provides the accurate browser, device, and operating system details from a User Agent String. It also provides information about crawlers and attack sources. You can use these details to customize user experience, prevent crawlers and attackers from accessing your website.
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :user_agent
26
+ # @option opts [String] :output Desired output format (json or xml).
27
+ # @return [UserAgentData]
28
+ def get_user_agent_details(opts = {})
29
+ data, _status_code, _headers = get_user_agent_details_with_http_info(opts)
30
+ data
31
+ end
32
+
33
+ # Get details of user-agent
34
+ # User Agent Parser API provides the accurate browser, device, and operating system details from a User Agent String. It also provides information about crawlers and attack sources. You can use these details to customize user experience, prevent crawlers and attackers from accessing your website.
35
+ # @param [Hash] opts the optional parameters
36
+ # @option opts [String] :user_agent
37
+ # @option opts [String] :output Desired output format (json or xml).
38
+ # @return [Array<(UserAgentData, Integer, Hash)>] UserAgentData data, response status code and response headers
39
+ def get_user_agent_details_with_http_info(opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: UserAgentApi.get_user_agent_details ...'
42
+ end
43
+ # resource path
44
+ local_var_path = '/user-agent'
45
+
46
+ # query parameters
47
+ query_params = opts[:query_params] || {}
48
+ query_params[:'output'] = opts[:'output'] if !opts[:'output'].nil?
49
+ # query_params[:'userAgent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil?
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml']) unless header_params['Accept']
55
+ header_params[:'User-Agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil?
56
+
57
+ # form parameters
58
+ form_params = opts[:form_params] || {}
59
+
60
+ # http body (model)
61
+ post_body = opts[:debug_body]
62
+
63
+ # return_type
64
+ return_type = opts[:debug_return_type] || 'UserAgentData'
65
+
66
+ # auth_names
67
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
68
+
69
+ new_options = opts.merge(
70
+ :operation => :"UserAgentApi.get_user_agent_details",
71
+ :header_params => header_params,
72
+ :query_params => query_params,
73
+ :form_params => form_params,
74
+ :body => post_body,
75
+ :auth_names => auth_names,
76
+ :return_type => return_type
77
+ )
78
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
79
+ if @api_client.config.debugging
80
+ @api_client.config.logger.debug "API called: UserAgentApi#get_user_agent_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
81
+ end
82
+ return data, status_code, headers
83
+ end
84
+
85
+ # Handle multiple user-agent string lookups
86
+ # This endpoint allows you to perform the parsing of multiple User-Angent strings (max. 50,000) at the same time. The requests count per round is equal to total User-Agent strings passed. This feature is `only available for paid plans`.
87
+ # @param [Hash] opts the optional parameters
88
+ # @option opts [String] :output Desired output format (json or xml).
89
+ # @option opts [ParseBulkUserAgentStringsRequest] :parse_bulk_user_agent_strings_request
90
+ # @return [Array<UserAgentData>]
91
+ def parse_bulk_user_agent_strings(opts = {})
92
+ data, _status_code, _headers = parse_bulk_user_agent_strings_with_http_info(opts)
93
+ data
94
+ end
95
+
96
+ # Handle multiple user-agent string lookups
97
+ # This endpoint allows you to perform the parsing of multiple User-Angent strings (max. 50,000) at the same time. The requests count per round is equal to total User-Agent strings passed. This feature is &#x60;only available for paid plans&#x60;.
98
+ # @param [Hash] opts the optional parameters
99
+ # @option opts [String] :output Desired output format (json or xml).
100
+ # @option opts [ParseBulkUserAgentStringsRequest] :parse_bulk_user_agent_strings_request
101
+ # @return [Array<(Array<UserAgentData>, Integer, Hash)>] Array<UserAgentData> data, response status code and response headers
102
+ def parse_bulk_user_agent_strings_with_http_info(opts = {})
103
+ if @api_client.config.debugging
104
+ @api_client.config.logger.debug 'Calling API: UserAgentApi.parse_bulk_user_agent_strings ...'
105
+ end
106
+ # Verify the required parameter 'user_agents' in opts is set
107
+ if @api_client.config.client_side_validation && (!opts[:user_agents].is_a?(Array) || opts[:user_agents].empty?)
108
+ fail ArgumentError, "Missing the required parameter 'user_agents' (non-empty Array) when calling UserAgentApi.parse_bulk_user_agent_strings"
109
+ end
110
+ # resource path
111
+ local_var_path = '/user-agent-bulk'
112
+
113
+ # query parameters
114
+ query_params = opts[:query_params] || {}
115
+ query_params[:'output'] = opts[:'output'] if !opts[:'output'].nil?
116
+
117
+ # header parameters
118
+ header_params = opts[:header_params] || {}
119
+ # HTTP header 'Accept' (if needed)
120
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml']) unless header_params['Accept']
121
+ # HTTP header 'Content-Type'
122
+ content_type = @api_client.select_header_content_type(['application/json'])
123
+ if !content_type.nil?
124
+ header_params['Content-Type'] = content_type
125
+ end
126
+
127
+ # form parameters
128
+ form_params = opts[:form_params] || {}
129
+
130
+ # http body (model)
131
+ post_body = opts[:debug_body] || @api_client.object_to_http_body({
132
+ uaStrings: opts[:user_agents]
133
+ })
134
+
135
+ # return_type
136
+ return_type = opts[:debug_return_type] || 'Array<UserAgentData>'
137
+
138
+ # auth_names
139
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
140
+
141
+ new_options = opts.merge(
142
+ :operation => :"UserAgentApi.parse_bulk_user_agent_strings",
143
+ :header_params => header_params,
144
+ :query_params => query_params,
145
+ :form_params => form_params,
146
+ :body => post_body,
147
+ :auth_names => auth_names,
148
+ :return_type => return_type
149
+ )
150
+
151
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
152
+ if @api_client.config.debugging
153
+ @api_client.config.logger.debug "API called: UserAgentApi#parse_bulk_user_agent_strings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
154
+ end
155
+ return data, status_code, headers
156
+ end
157
+ end
158
+ end