scrapebadger 0.1.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 (185) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/LICENSE +21 -0
  4. data/README.md +548 -0
  5. data/Rakefile +10 -0
  6. data/docs/AccountApi.md +76 -0
  7. data/docs/AccountInfo.md +28 -0
  8. data/docs/AmazonApi.md +1244 -0
  9. data/docs/ApartmentsApi.md +373 -0
  10. data/docs/BaiduApi.md +447 -0
  11. data/docs/BillingLogListResponse.md +24 -0
  12. data/docs/BillingLogResponse.md +32 -0
  13. data/docs/BingApi.md +610 -0
  14. data/docs/ChatGPTApi.md +521 -0
  15. data/docs/DepopApi.md +542 -0
  16. data/docs/DuckDuckGoApi.md +700 -0
  17. data/docs/EBayApi.md +1019 -0
  18. data/docs/FacebookApi.md +1671 -0
  19. data/docs/FilterRuleCreate.md +28 -0
  20. data/docs/FilterRuleDeliveryLogListResponse.md +24 -0
  21. data/docs/FilterRuleDeliveryLogResponse.md +44 -0
  22. data/docs/FilterRuleListResponse.md +24 -0
  23. data/docs/FilterRuleResponse.md +40 -0
  24. data/docs/FilterRuleUpdate.md +30 -0
  25. data/docs/FilterRuleValidateRequest.md +18 -0
  26. data/docs/FilterRuleValidateResponse.md +22 -0
  27. data/docs/GoogleApi.md +3175 -0
  28. data/docs/HTTPValidationError.md +18 -0
  29. data/docs/IdealistaApi.md +822 -0
  30. data/docs/ImmobiliareApi.md +773 -0
  31. data/docs/InstagramApi.md +1673 -0
  32. data/docs/LeboncoinApi.md +884 -0
  33. data/docs/LinkedInApi.md +925 -0
  34. data/docs/LoopNetApi.md +529 -0
  35. data/docs/PortalApiRoutersV1TwitterFilterRulesFilterRulePricingResponse.md +20 -0
  36. data/docs/RealtorApi.md +474 -0
  37. data/docs/RedditApi.md +1677 -0
  38. data/docs/RedfinApi.md +616 -0
  39. data/docs/StreamMonitorCreate.md +26 -0
  40. data/docs/StreamMonitorListResponse.md +24 -0
  41. data/docs/StreamMonitorResponse.md +42 -0
  42. data/docs/StreamMonitorUpdate.md +28 -0
  43. data/docs/SubscriptionInfo.md +40 -0
  44. data/docs/TikTokApi.md +2104 -0
  45. data/docs/TweetDeliveryLogListResponse.md +24 -0
  46. data/docs/TweetDeliveryLogResponse.md +44 -0
  47. data/docs/TwitterApi.md +4091 -0
  48. data/docs/ValidationError.md +22 -0
  49. data/docs/ValidationErrorLocInner.md +15 -0
  50. data/docs/VintedApi.md +766 -0
  51. data/docs/WalmartApi.md +904 -0
  52. data/docs/WebApi.md +634 -0
  53. data/docs/WebhookCreate.md +22 -0
  54. data/docs/WebhookListItem.md +28 -0
  55. data/docs/WebhookListResponse.md +20 -0
  56. data/docs/WebhookResponse.md +26 -0
  57. data/docs/WebhookTestRequest.md +18 -0
  58. data/docs/WebhookTestResponse.md +24 -0
  59. data/docs/YahooApi.md +602 -0
  60. data/docs/YandexApi.md +450 -0
  61. data/docs/YouTubeApi.md +2872 -0
  62. data/docs/ZillowApi.md +622 -0
  63. data/git_push.sh +57 -0
  64. data/lib/scrapebadger/api/account_api.rb +79 -0
  65. data/lib/scrapebadger/api/amazon_api.rb +1165 -0
  66. data/lib/scrapebadger/api/apartments_api.rb +377 -0
  67. data/lib/scrapebadger/api/baidu_api.rb +436 -0
  68. data/lib/scrapebadger/api/bing_api.rb +580 -0
  69. data/lib/scrapebadger/api/chat_gpt_api.rb +466 -0
  70. data/lib/scrapebadger/api/depop_api.rb +518 -0
  71. data/lib/scrapebadger/api/duck_duck_go_api.rb +675 -0
  72. data/lib/scrapebadger/api/e_bay_api.rb +1029 -0
  73. data/lib/scrapebadger/api/facebook_api.rb +1492 -0
  74. data/lib/scrapebadger/api/google_api.rb +3191 -0
  75. data/lib/scrapebadger/api/idealista_api.rb +864 -0
  76. data/lib/scrapebadger/api/immobiliare_api.rb +734 -0
  77. data/lib/scrapebadger/api/instagram_api.rb +1555 -0
  78. data/lib/scrapebadger/api/leboncoin_api.rb +818 -0
  79. data/lib/scrapebadger/api/linked_in_api.rb +832 -0
  80. data/lib/scrapebadger/api/loop_net_api.rb +503 -0
  81. data/lib/scrapebadger/api/realtor_api.rb +481 -0
  82. data/lib/scrapebadger/api/reddit_api.rb +1601 -0
  83. data/lib/scrapebadger/api/redfin_api.rb +625 -0
  84. data/lib/scrapebadger/api/tik_tok_api.rb +2029 -0
  85. data/lib/scrapebadger/api/twitter_api.rb +3696 -0
  86. data/lib/scrapebadger/api/vinted_api.rb +705 -0
  87. data/lib/scrapebadger/api/walmart_api.rb +876 -0
  88. data/lib/scrapebadger/api/web_api.rb +547 -0
  89. data/lib/scrapebadger/api/yahoo_api.rb +560 -0
  90. data/lib/scrapebadger/api/yandex_api.rb +422 -0
  91. data/lib/scrapebadger/api/you_tube_api.rb +2520 -0
  92. data/lib/scrapebadger/api/zillow_api.rb +634 -0
  93. data/lib/scrapebadger/api_client.rb +394 -0
  94. data/lib/scrapebadger/api_error.rb +58 -0
  95. data/lib/scrapebadger/configuration.rb +308 -0
  96. data/lib/scrapebadger/models/account_info.rb +288 -0
  97. data/lib/scrapebadger/models/billing_log_list_response.rb +272 -0
  98. data/lib/scrapebadger/models/billing_log_response.rb +334 -0
  99. data/lib/scrapebadger/models/filter_rule_create.rb +427 -0
  100. data/lib/scrapebadger/models/filter_rule_delivery_log_list_response.rb +272 -0
  101. data/lib/scrapebadger/models/filter_rule_delivery_log_response.rb +422 -0
  102. data/lib/scrapebadger/models/filter_rule_list_response.rb +272 -0
  103. data/lib/scrapebadger/models/filter_rule_response.rb +390 -0
  104. data/lib/scrapebadger/models/filter_rule_update.rb +389 -0
  105. data/lib/scrapebadger/models/filter_rule_validate_request.rb +250 -0
  106. data/lib/scrapebadger/models/filter_rule_validate_response.rb +248 -0
  107. data/lib/scrapebadger/models/http_validation_error.rb +216 -0
  108. data/lib/scrapebadger/models/portal_api_routers_v1_twitter_filter_rules_filter_rule_pricing_response.rb +238 -0
  109. data/lib/scrapebadger/models/stream_monitor_create.rb +373 -0
  110. data/lib/scrapebadger/models/stream_monitor_list_response.rb +272 -0
  111. data/lib/scrapebadger/models/stream_monitor_response.rb +406 -0
  112. data/lib/scrapebadger/models/stream_monitor_update.rb +335 -0
  113. data/lib/scrapebadger/models/subscription_info.rb +352 -0
  114. data/lib/scrapebadger/models/tweet_delivery_log_list_response.rb +272 -0
  115. data/lib/scrapebadger/models/tweet_delivery_log_response.rb +422 -0
  116. data/lib/scrapebadger/models/validation_error.rb +255 -0
  117. data/lib/scrapebadger/models/validation_error_loc_inner.rb +104 -0
  118. data/lib/scrapebadger/models/webhook_create.rb +282 -0
  119. data/lib/scrapebadger/models/webhook_list_item.rb +302 -0
  120. data/lib/scrapebadger/models/webhook_list_response.rb +240 -0
  121. data/lib/scrapebadger/models/webhook_response.rb +286 -0
  122. data/lib/scrapebadger/models/webhook_test_request.rb +223 -0
  123. data/lib/scrapebadger/models/webhook_test_response.rb +259 -0
  124. data/lib/scrapebadger/version.rb +15 -0
  125. data/lib/scrapebadger.rb +96 -0
  126. data/scrapebadger.gemspec +39 -0
  127. data/spec/api/account_api_spec.rb +46 -0
  128. data/spec/api/amazon_api_spec.rb +258 -0
  129. data/spec/api/apartments_api_spec.rb +98 -0
  130. data/spec/api/baidu_api_spec.rb +109 -0
  131. data/spec/api/bing_api_spec.rb +141 -0
  132. data/spec/api/chat_gpt_api_spec.rb +123 -0
  133. data/spec/api/depop_api_spec.rb +132 -0
  134. data/spec/api/duck_duck_go_api_spec.rb +162 -0
  135. data/spec/api/e_bay_api_spec.rb +222 -0
  136. data/spec/api/facebook_api_spec.rb +326 -0
  137. data/spec/api/google_api_spec.rb +649 -0
  138. data/spec/api/idealista_api_spec.rb +197 -0
  139. data/spec/api/immobiliare_api_spec.rb +174 -0
  140. data/spec/api/instagram_api_spec.rb +309 -0
  141. data/spec/api/leboncoin_api_spec.rb +184 -0
  142. data/spec/api/linked_in_api_spec.rb +197 -0
  143. data/spec/api/loop_net_api_spec.rb +127 -0
  144. data/spec/api/realtor_api_spec.rb +123 -0
  145. data/spec/api/reddit_api_spec.rb +331 -0
  146. data/spec/api/redfin_api_spec.rb +147 -0
  147. data/spec/api/tik_tok_api_spec.rb +413 -0
  148. data/spec/api/twitter_api_spec.rb +735 -0
  149. data/spec/api/vinted_api_spec.rb +169 -0
  150. data/spec/api/walmart_api_spec.rb +192 -0
  151. data/spec/api/web_api_spec.rb +136 -0
  152. data/spec/api/yahoo_api_spec.rb +137 -0
  153. data/spec/api/yandex_api_spec.rb +111 -0
  154. data/spec/api/you_tube_api_spec.rb +500 -0
  155. data/spec/api/zillow_api_spec.rb +150 -0
  156. data/spec/models/account_info_spec.rb +66 -0
  157. data/spec/models/billing_log_list_response_spec.rb +54 -0
  158. data/spec/models/billing_log_response_spec.rb +78 -0
  159. data/spec/models/filter_rule_create_spec.rb +66 -0
  160. data/spec/models/filter_rule_delivery_log_list_response_spec.rb +54 -0
  161. data/spec/models/filter_rule_delivery_log_response_spec.rb +114 -0
  162. data/spec/models/filter_rule_list_response_spec.rb +54 -0
  163. data/spec/models/filter_rule_response_spec.rb +102 -0
  164. data/spec/models/filter_rule_update_spec.rb +72 -0
  165. data/spec/models/filter_rule_validate_request_spec.rb +36 -0
  166. data/spec/models/filter_rule_validate_response_spec.rb +48 -0
  167. data/spec/models/http_validation_error_spec.rb +36 -0
  168. data/spec/models/portal_api_routers_v1_twitter_filter_rules_filter_rule_pricing_response_spec.rb +42 -0
  169. data/spec/models/stream_monitor_create_spec.rb +60 -0
  170. data/spec/models/stream_monitor_list_response_spec.rb +54 -0
  171. data/spec/models/stream_monitor_response_spec.rb +108 -0
  172. data/spec/models/stream_monitor_update_spec.rb +66 -0
  173. data/spec/models/subscription_info_spec.rb +102 -0
  174. data/spec/models/tweet_delivery_log_list_response_spec.rb +54 -0
  175. data/spec/models/tweet_delivery_log_response_spec.rb +114 -0
  176. data/spec/models/validation_error_loc_inner_spec.rb +21 -0
  177. data/spec/models/validation_error_spec.rb +48 -0
  178. data/spec/models/webhook_create_spec.rb +48 -0
  179. data/spec/models/webhook_list_item_spec.rb +66 -0
  180. data/spec/models/webhook_list_response_spec.rb +42 -0
  181. data/spec/models/webhook_response_spec.rb +60 -0
  182. data/spec/models/webhook_test_request_spec.rb +36 -0
  183. data/spec/models/webhook_test_response_spec.rb +54 -0
  184. data/spec/spec_helper.rb +111 -0
  185. metadata +324 -0
@@ -0,0 +1,832 @@
1
+ =begin
2
+ #ScrapeBadger API
3
+
4
+ #Unified credit-based scraping API. https://docs.scrapebadger.com
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.10.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module ScrapeBadger
16
+ class LinkedInApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Get a company's job postings
23
+ # Public job postings for a company (numeric company id from the company endpoint).
24
+ # @param company_id [String]
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [Integer] :start Pagination offset (0, 25, 50, ...) (default to 0)
27
+ # @option opts [String] :country Residential proxy country (default to 'us')
28
+ # @return [Object]
29
+ def linkedin_get_a_company_s_job_postings(company_id, opts = {})
30
+ data, _status_code, _headers = linkedin_get_a_company_s_job_postings_with_http_info(company_id, opts)
31
+ data
32
+ end
33
+
34
+ # Get a company's job postings
35
+ # Public job postings for a company (numeric company id from the company endpoint).
36
+ # @param company_id [String]
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [Integer] :start Pagination offset (0, 25, 50, ...) (default to 0)
39
+ # @option opts [String] :country Residential proxy country (default to 'us')
40
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
41
+ def linkedin_get_a_company_s_job_postings_with_http_info(company_id, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: LinkedInApi.linkedin_get_a_company_s_job_postings ...'
44
+ end
45
+ # verify the required parameter 'company_id' is set
46
+ if @api_client.config.client_side_validation && company_id.nil?
47
+ fail ArgumentError, "Missing the required parameter 'company_id' when calling LinkedInApi.linkedin_get_a_company_s_job_postings"
48
+ end
49
+ if @api_client.config.client_side_validation && !opts[:'start'].nil? && opts[:'start'] < 0
50
+ fail ArgumentError, 'invalid value for "opts[:"start"]" when calling LinkedInApi.linkedin_get_a_company_s_job_postings, must be greater than or equal to 0.'
51
+ end
52
+
53
+ # resource path
54
+ local_var_path = '/v1/linkedin/companies/{company_id}/jobs'.sub('{' + 'company_id' + '}', CGI.escape(company_id.to_s))
55
+
56
+ # query parameters
57
+ query_params = opts[:query_params] || {}
58
+ query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
59
+ query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
60
+
61
+ # header parameters
62
+ header_params = opts[:header_params] || {}
63
+ # HTTP header 'Accept' (if needed)
64
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
65
+
66
+ # form parameters
67
+ form_params = opts[:form_params] || {}
68
+
69
+ # http body (model)
70
+ post_body = opts[:debug_body]
71
+
72
+ # return_type
73
+ return_type = opts[:debug_return_type] || 'Object'
74
+
75
+ # auth_names
76
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
77
+
78
+ new_options = opts.merge(
79
+ :operation => :"LinkedInApi.linkedin_get_a_company_s_job_postings",
80
+ :header_params => header_params,
81
+ :query_params => query_params,
82
+ :form_params => form_params,
83
+ :body => post_body,
84
+ :auth_names => auth_names,
85
+ :return_type => return_type
86
+ )
87
+
88
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
89
+ if @api_client.config.debugging
90
+ @api_client.config.logger.debug "API called: LinkedInApi#linkedin_get_a_company_s_job_postings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
91
+ end
92
+ return data, status_code, headers
93
+ end
94
+
95
+ # Get a course
96
+ # A public LinkedIn Learning course — provider, workload, instructors, rating.
97
+ # @param course_slug [String]
98
+ # @param [Hash] opts the optional parameters
99
+ # @option opts [String] :country Residential proxy country (default to 'us')
100
+ # @return [Object]
101
+ def linkedin_get_a_course(course_slug, opts = {})
102
+ data, _status_code, _headers = linkedin_get_a_course_with_http_info(course_slug, opts)
103
+ data
104
+ end
105
+
106
+ # Get a course
107
+ # A public LinkedIn Learning course — provider, workload, instructors, rating.
108
+ # @param course_slug [String]
109
+ # @param [Hash] opts the optional parameters
110
+ # @option opts [String] :country Residential proxy country (default to 'us')
111
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
112
+ def linkedin_get_a_course_with_http_info(course_slug, opts = {})
113
+ if @api_client.config.debugging
114
+ @api_client.config.logger.debug 'Calling API: LinkedInApi.linkedin_get_a_course ...'
115
+ end
116
+ # verify the required parameter 'course_slug' is set
117
+ if @api_client.config.client_side_validation && course_slug.nil?
118
+ fail ArgumentError, "Missing the required parameter 'course_slug' when calling LinkedInApi.linkedin_get_a_course"
119
+ end
120
+ # resource path
121
+ local_var_path = '/v1/linkedin/learning/{course_slug}'.sub('{' + 'course_slug' + '}', CGI.escape(course_slug.to_s))
122
+
123
+ # query parameters
124
+ query_params = opts[:query_params] || {}
125
+ query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
126
+
127
+ # header parameters
128
+ header_params = opts[:header_params] || {}
129
+ # HTTP header 'Accept' (if needed)
130
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
131
+
132
+ # form parameters
133
+ form_params = opts[:form_params] || {}
134
+
135
+ # http body (model)
136
+ post_body = opts[:debug_body]
137
+
138
+ # return_type
139
+ return_type = opts[:debug_return_type] || 'Object'
140
+
141
+ # auth_names
142
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
143
+
144
+ new_options = opts.merge(
145
+ :operation => :"LinkedInApi.linkedin_get_a_course",
146
+ :header_params => header_params,
147
+ :query_params => query_params,
148
+ :form_params => form_params,
149
+ :body => post_body,
150
+ :auth_names => auth_names,
151
+ :return_type => return_type
152
+ )
153
+
154
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
155
+ if @api_client.config.debugging
156
+ @api_client.config.logger.debug "API called: LinkedInApi#linkedin_get_a_course\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
157
+ end
158
+ return data, status_code, headers
159
+ end
160
+
161
+ # Get a public article
162
+ # A public Pulse article — title, body, author, reactions (JSON-LD).
163
+ # @param article_slug [String]
164
+ # @param [Hash] opts the optional parameters
165
+ # @option opts [String] :country Residential proxy country (default to 'us')
166
+ # @return [Object]
167
+ def linkedin_get_a_public_article(article_slug, opts = {})
168
+ data, _status_code, _headers = linkedin_get_a_public_article_with_http_info(article_slug, opts)
169
+ data
170
+ end
171
+
172
+ # Get a public article
173
+ # A public Pulse article — title, body, author, reactions (JSON-LD).
174
+ # @param article_slug [String]
175
+ # @param [Hash] opts the optional parameters
176
+ # @option opts [String] :country Residential proxy country (default to 'us')
177
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
178
+ def linkedin_get_a_public_article_with_http_info(article_slug, opts = {})
179
+ if @api_client.config.debugging
180
+ @api_client.config.logger.debug 'Calling API: LinkedInApi.linkedin_get_a_public_article ...'
181
+ end
182
+ # verify the required parameter 'article_slug' is set
183
+ if @api_client.config.client_side_validation && article_slug.nil?
184
+ fail ArgumentError, "Missing the required parameter 'article_slug' when calling LinkedInApi.linkedin_get_a_public_article"
185
+ end
186
+ # resource path
187
+ local_var_path = '/v1/linkedin/articles/{article_slug}'.sub('{' + 'article_slug' + '}', CGI.escape(article_slug.to_s))
188
+
189
+ # query parameters
190
+ query_params = opts[:query_params] || {}
191
+ query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
192
+
193
+ # header parameters
194
+ header_params = opts[:header_params] || {}
195
+ # HTTP header 'Accept' (if needed)
196
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
197
+
198
+ # form parameters
199
+ form_params = opts[:form_params] || {}
200
+
201
+ # http body (model)
202
+ post_body = opts[:debug_body]
203
+
204
+ # return_type
205
+ return_type = opts[:debug_return_type] || 'Object'
206
+
207
+ # auth_names
208
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
209
+
210
+ new_options = opts.merge(
211
+ :operation => :"LinkedInApi.linkedin_get_a_public_article",
212
+ :header_params => header_params,
213
+ :query_params => query_params,
214
+ :form_params => form_params,
215
+ :body => post_body,
216
+ :auth_names => auth_names,
217
+ :return_type => return_type
218
+ )
219
+
220
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
221
+ if @api_client.config.debugging
222
+ @api_client.config.logger.debug "API called: LinkedInApi#linkedin_get_a_public_article\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
223
+ end
224
+ return data, status_code, headers
225
+ end
226
+
227
+ # Get a public post
228
+ # A public activity share — text, author, reactions, comments (JSON-LD).
229
+ # @param post_slug [String]
230
+ # @param [Hash] opts the optional parameters
231
+ # @option opts [String] :country Residential proxy country (default to 'us')
232
+ # @return [Object]
233
+ def linkedin_get_a_public_post(post_slug, opts = {})
234
+ data, _status_code, _headers = linkedin_get_a_public_post_with_http_info(post_slug, opts)
235
+ data
236
+ end
237
+
238
+ # Get a public post
239
+ # A public activity share — text, author, reactions, comments (JSON-LD).
240
+ # @param post_slug [String]
241
+ # @param [Hash] opts the optional parameters
242
+ # @option opts [String] :country Residential proxy country (default to 'us')
243
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
244
+ def linkedin_get_a_public_post_with_http_info(post_slug, opts = {})
245
+ if @api_client.config.debugging
246
+ @api_client.config.logger.debug 'Calling API: LinkedInApi.linkedin_get_a_public_post ...'
247
+ end
248
+ # verify the required parameter 'post_slug' is set
249
+ if @api_client.config.client_side_validation && post_slug.nil?
250
+ fail ArgumentError, "Missing the required parameter 'post_slug' when calling LinkedInApi.linkedin_get_a_public_post"
251
+ end
252
+ # resource path
253
+ local_var_path = '/v1/linkedin/posts/{post_slug}'.sub('{' + 'post_slug' + '}', CGI.escape(post_slug.to_s))
254
+
255
+ # query parameters
256
+ query_params = opts[:query_params] || {}
257
+ query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
258
+
259
+ # header parameters
260
+ header_params = opts[:header_params] || {}
261
+ # HTTP header 'Accept' (if needed)
262
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
263
+
264
+ # form parameters
265
+ form_params = opts[:form_params] || {}
266
+
267
+ # http body (model)
268
+ post_body = opts[:debug_body]
269
+
270
+ # return_type
271
+ return_type = opts[:debug_return_type] || 'Object'
272
+
273
+ # auth_names
274
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
275
+
276
+ new_options = opts.merge(
277
+ :operation => :"LinkedInApi.linkedin_get_a_public_post",
278
+ :header_params => header_params,
279
+ :query_params => query_params,
280
+ :form_params => form_params,
281
+ :body => post_body,
282
+ :auth_names => auth_names,
283
+ :return_type => return_type
284
+ )
285
+
286
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
287
+ if @api_client.config.debugging
288
+ @api_client.config.logger.debug "API called: LinkedInApi#linkedin_get_a_public_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
289
+ end
290
+ return data, status_code, headers
291
+ end
292
+
293
+ # Get company
294
+ # Public company page — industry, size, HQ, followers, specialties (JSON-LD + SSR).
295
+ # @param universal_name [String]
296
+ # @param [Hash] opts the optional parameters
297
+ # @option opts [String] :country Residential proxy country (default to 'us')
298
+ # @return [Object]
299
+ def linkedin_get_company(universal_name, opts = {})
300
+ data, _status_code, _headers = linkedin_get_company_with_http_info(universal_name, opts)
301
+ data
302
+ end
303
+
304
+ # Get company
305
+ # Public company page — industry, size, HQ, followers, specialties (JSON-LD + SSR).
306
+ # @param universal_name [String]
307
+ # @param [Hash] opts the optional parameters
308
+ # @option opts [String] :country Residential proxy country (default to 'us')
309
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
310
+ def linkedin_get_company_with_http_info(universal_name, opts = {})
311
+ if @api_client.config.debugging
312
+ @api_client.config.logger.debug 'Calling API: LinkedInApi.linkedin_get_company ...'
313
+ end
314
+ # verify the required parameter 'universal_name' is set
315
+ if @api_client.config.client_side_validation && universal_name.nil?
316
+ fail ArgumentError, "Missing the required parameter 'universal_name' when calling LinkedInApi.linkedin_get_company"
317
+ end
318
+ # resource path
319
+ local_var_path = '/v1/linkedin/companies/{universal_name}'.sub('{' + 'universal_name' + '}', CGI.escape(universal_name.to_s))
320
+
321
+ # query parameters
322
+ query_params = opts[:query_params] || {}
323
+ query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
324
+
325
+ # header parameters
326
+ header_params = opts[:header_params] || {}
327
+ # HTTP header 'Accept' (if needed)
328
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
329
+
330
+ # form parameters
331
+ form_params = opts[:form_params] || {}
332
+
333
+ # http body (model)
334
+ post_body = opts[:debug_body]
335
+
336
+ # return_type
337
+ return_type = opts[:debug_return_type] || 'Object'
338
+
339
+ # auth_names
340
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
341
+
342
+ new_options = opts.merge(
343
+ :operation => :"LinkedInApi.linkedin_get_company",
344
+ :header_params => header_params,
345
+ :query_params => query_params,
346
+ :form_params => form_params,
347
+ :body => post_body,
348
+ :auth_names => auth_names,
349
+ :return_type => return_type
350
+ )
351
+
352
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
353
+ if @api_client.config.debugging
354
+ @api_client.config.logger.debug "API called: LinkedInApi#linkedin_get_company\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
355
+ end
356
+ return data, status_code, headers
357
+ end
358
+
359
+ # Get job detail
360
+ # Full detail for one job posting (guest API, no login).
361
+ # @param job_id [String]
362
+ # @param [Hash] opts the optional parameters
363
+ # @option opts [String] :country Residential proxy country (default to 'us')
364
+ # @return [Object]
365
+ def linkedin_get_job_detail(job_id, opts = {})
366
+ data, _status_code, _headers = linkedin_get_job_detail_with_http_info(job_id, opts)
367
+ data
368
+ end
369
+
370
+ # Get job detail
371
+ # Full detail for one job posting (guest API, no login).
372
+ # @param job_id [String]
373
+ # @param [Hash] opts the optional parameters
374
+ # @option opts [String] :country Residential proxy country (default to 'us')
375
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
376
+ def linkedin_get_job_detail_with_http_info(job_id, opts = {})
377
+ if @api_client.config.debugging
378
+ @api_client.config.logger.debug 'Calling API: LinkedInApi.linkedin_get_job_detail ...'
379
+ end
380
+ # verify the required parameter 'job_id' is set
381
+ if @api_client.config.client_side_validation && job_id.nil?
382
+ fail ArgumentError, "Missing the required parameter 'job_id' when calling LinkedInApi.linkedin_get_job_detail"
383
+ end
384
+ # resource path
385
+ local_var_path = '/v1/linkedin/jobs/{job_id}'.sub('{' + 'job_id' + '}', CGI.escape(job_id.to_s))
386
+
387
+ # query parameters
388
+ query_params = opts[:query_params] || {}
389
+ query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
390
+
391
+ # header parameters
392
+ header_params = opts[:header_params] || {}
393
+ # HTTP header 'Accept' (if needed)
394
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
395
+
396
+ # form parameters
397
+ form_params = opts[:form_params] || {}
398
+
399
+ # http body (model)
400
+ post_body = opts[:debug_body]
401
+
402
+ # return_type
403
+ return_type = opts[:debug_return_type] || 'Object'
404
+
405
+ # auth_names
406
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
407
+
408
+ new_options = opts.merge(
409
+ :operation => :"LinkedInApi.linkedin_get_job_detail",
410
+ :header_params => header_params,
411
+ :query_params => query_params,
412
+ :form_params => form_params,
413
+ :body => post_body,
414
+ :auth_names => auth_names,
415
+ :return_type => return_type
416
+ )
417
+
418
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
419
+ if @api_client.config.debugging
420
+ @api_client.config.logger.debug "API called: LinkedInApi#linkedin_get_job_detail\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
421
+ end
422
+ return data, status_code, headers
423
+ end
424
+
425
+ # Get public profile
426
+ # Public profile by vanity id (the ``/in/{public_id}`` slug) — name, headline, location, about, experience, education (public JSON-LD + SSR subset).
427
+ # @param public_id [String]
428
+ # @param [Hash] opts the optional parameters
429
+ # @option opts [String] :country Residential proxy country (default to 'us')
430
+ # @return [Object]
431
+ def linkedin_get_public_profile(public_id, opts = {})
432
+ data, _status_code, _headers = linkedin_get_public_profile_with_http_info(public_id, opts)
433
+ data
434
+ end
435
+
436
+ # Get public profile
437
+ # Public profile by vanity id (the &#x60;&#x60;/in/{public_id}&#x60;&#x60; slug) — name, headline, location, about, experience, education (public JSON-LD + SSR subset).
438
+ # @param public_id [String]
439
+ # @param [Hash] opts the optional parameters
440
+ # @option opts [String] :country Residential proxy country (default to 'us')
441
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
442
+ def linkedin_get_public_profile_with_http_info(public_id, opts = {})
443
+ if @api_client.config.debugging
444
+ @api_client.config.logger.debug 'Calling API: LinkedInApi.linkedin_get_public_profile ...'
445
+ end
446
+ # verify the required parameter 'public_id' is set
447
+ if @api_client.config.client_side_validation && public_id.nil?
448
+ fail ArgumentError, "Missing the required parameter 'public_id' when calling LinkedInApi.linkedin_get_public_profile"
449
+ end
450
+ # resource path
451
+ local_var_path = '/v1/linkedin/profiles/{public_id}'.sub('{' + 'public_id' + '}', CGI.escape(public_id.to_s))
452
+
453
+ # query parameters
454
+ query_params = opts[:query_params] || {}
455
+ query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
456
+
457
+ # header parameters
458
+ header_params = opts[:header_params] || {}
459
+ # HTTP header 'Accept' (if needed)
460
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
461
+
462
+ # form parameters
463
+ form_params = opts[:form_params] || {}
464
+
465
+ # http body (model)
466
+ post_body = opts[:debug_body]
467
+
468
+ # return_type
469
+ return_type = opts[:debug_return_type] || 'Object'
470
+
471
+ # auth_names
472
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
473
+
474
+ new_options = opts.merge(
475
+ :operation => :"LinkedInApi.linkedin_get_public_profile",
476
+ :header_params => header_params,
477
+ :query_params => query_params,
478
+ :form_params => form_params,
479
+ :body => post_body,
480
+ :auth_names => auth_names,
481
+ :return_type => return_type
482
+ )
483
+
484
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
485
+ if @api_client.config.debugging
486
+ @api_client.config.logger.debug "API called: LinkedInApi#linkedin_get_public_profile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
487
+ end
488
+ return data, status_code, headers
489
+ end
490
+
491
+ # Get school
492
+ # Public school page — name, description, website, follower/alumni counts.
493
+ # @param universal_name [String]
494
+ # @param [Hash] opts the optional parameters
495
+ # @option opts [String] :country Residential proxy country (default to 'us')
496
+ # @return [Object]
497
+ def linkedin_get_school(universal_name, opts = {})
498
+ data, _status_code, _headers = linkedin_get_school_with_http_info(universal_name, opts)
499
+ data
500
+ end
501
+
502
+ # Get school
503
+ # Public school page — name, description, website, follower/alumni counts.
504
+ # @param universal_name [String]
505
+ # @param [Hash] opts the optional parameters
506
+ # @option opts [String] :country Residential proxy country (default to 'us')
507
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
508
+ def linkedin_get_school_with_http_info(universal_name, opts = {})
509
+ if @api_client.config.debugging
510
+ @api_client.config.logger.debug 'Calling API: LinkedInApi.linkedin_get_school ...'
511
+ end
512
+ # verify the required parameter 'universal_name' is set
513
+ if @api_client.config.client_side_validation && universal_name.nil?
514
+ fail ArgumentError, "Missing the required parameter 'universal_name' when calling LinkedInApi.linkedin_get_school"
515
+ end
516
+ # resource path
517
+ local_var_path = '/v1/linkedin/schools/{universal_name}'.sub('{' + 'universal_name' + '}', CGI.escape(universal_name.to_s))
518
+
519
+ # query parameters
520
+ query_params = opts[:query_params] || {}
521
+ query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
522
+
523
+ # header parameters
524
+ header_params = opts[:header_params] || {}
525
+ # HTTP header 'Accept' (if needed)
526
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
527
+
528
+ # form parameters
529
+ form_params = opts[:form_params] || {}
530
+
531
+ # http body (model)
532
+ post_body = opts[:debug_body]
533
+
534
+ # return_type
535
+ return_type = opts[:debug_return_type] || 'Object'
536
+
537
+ # auth_names
538
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
539
+
540
+ new_options = opts.merge(
541
+ :operation => :"LinkedInApi.linkedin_get_school",
542
+ :header_params => header_params,
543
+ :query_params => query_params,
544
+ :form_params => form_params,
545
+ :body => post_body,
546
+ :auth_names => auth_names,
547
+ :return_type => return_type
548
+ )
549
+
550
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
551
+ if @api_client.config.debugging
552
+ @api_client.config.logger.debug "API called: LinkedInApi#linkedin_get_school\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
553
+ end
554
+ return data, status_code, headers
555
+ end
556
+
557
+ # LinkedIn scraper health check
558
+ # Check health of the LinkedIn scraper service (accepts HEAD).
559
+ # @param [Hash] opts the optional parameters
560
+ # @return [Object]
561
+ def linkedin_linkedin_scraper_health_check(opts = {})
562
+ data, _status_code, _headers = linkedin_linkedin_scraper_health_check_with_http_info(opts)
563
+ data
564
+ end
565
+
566
+ # LinkedIn scraper health check
567
+ # Check health of the LinkedIn scraper service (accepts HEAD).
568
+ # @param [Hash] opts the optional parameters
569
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
570
+ def linkedin_linkedin_scraper_health_check_with_http_info(opts = {})
571
+ if @api_client.config.debugging
572
+ @api_client.config.logger.debug 'Calling API: LinkedInApi.linkedin_linkedin_scraper_health_check ...'
573
+ end
574
+ # resource path
575
+ local_var_path = '/v1/linkedin/health'
576
+
577
+ # query parameters
578
+ query_params = opts[:query_params] || {}
579
+
580
+ # header parameters
581
+ header_params = opts[:header_params] || {}
582
+ # HTTP header 'Accept' (if needed)
583
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
584
+
585
+ # form parameters
586
+ form_params = opts[:form_params] || {}
587
+
588
+ # http body (model)
589
+ post_body = opts[:debug_body]
590
+
591
+ # return_type
592
+ return_type = opts[:debug_return_type] || 'Object'
593
+
594
+ # auth_names
595
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
596
+
597
+ new_options = opts.merge(
598
+ :operation => :"LinkedInApi.linkedin_linkedin_scraper_health_check",
599
+ :header_params => header_params,
600
+ :query_params => query_params,
601
+ :form_params => form_params,
602
+ :body => post_body,
603
+ :auth_names => auth_names,
604
+ :return_type => return_type
605
+ )
606
+
607
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
608
+ if @api_client.config.debugging
609
+ @api_client.config.logger.debug "API called: LinkedInApi#linkedin_linkedin_scraper_health_check\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
610
+ end
611
+ return data, status_code, headers
612
+ end
613
+
614
+ # LinkedIn scraper health check
615
+ # Check health of the LinkedIn scraper service (accepts HEAD).
616
+ # @param [Hash] opts the optional parameters
617
+ # @return [Object]
618
+ def linkedin_linkedin_scraper_health_check_head(opts = {})
619
+ data, _status_code, _headers = linkedin_linkedin_scraper_health_check_head_with_http_info(opts)
620
+ data
621
+ end
622
+
623
+ # LinkedIn scraper health check
624
+ # Check health of the LinkedIn scraper service (accepts HEAD).
625
+ # @param [Hash] opts the optional parameters
626
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
627
+ def linkedin_linkedin_scraper_health_check_head_with_http_info(opts = {})
628
+ if @api_client.config.debugging
629
+ @api_client.config.logger.debug 'Calling API: LinkedInApi.linkedin_linkedin_scraper_health_check_head ...'
630
+ end
631
+ # resource path
632
+ local_var_path = '/v1/linkedin/health'
633
+
634
+ # query parameters
635
+ query_params = opts[:query_params] || {}
636
+
637
+ # header parameters
638
+ header_params = opts[:header_params] || {}
639
+ # HTTP header 'Accept' (if needed)
640
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
641
+
642
+ # form parameters
643
+ form_params = opts[:form_params] || {}
644
+
645
+ # http body (model)
646
+ post_body = opts[:debug_body]
647
+
648
+ # return_type
649
+ return_type = opts[:debug_return_type] || 'Object'
650
+
651
+ # auth_names
652
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
653
+
654
+ new_options = opts.merge(
655
+ :operation => :"LinkedInApi.linkedin_linkedin_scraper_health_check_head",
656
+ :header_params => header_params,
657
+ :query_params => query_params,
658
+ :form_params => form_params,
659
+ :body => post_body,
660
+ :auth_names => auth_names,
661
+ :return_type => return_type
662
+ )
663
+
664
+ data, status_code, headers = @api_client.call_api(:HEAD, local_var_path, new_options)
665
+ if @api_client.config.debugging
666
+ @api_client.config.logger.debug "API called: LinkedInApi#linkedin_linkedin_scraper_health_check_head\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
667
+ end
668
+ return data, status_code, headers
669
+ end
670
+
671
+ # Search LinkedIn jobs
672
+ # Search public LinkedIn job postings (guest API, no login).
673
+ # @param [Hash] opts the optional parameters
674
+ # @option opts [String] :keywords Job title / keywords
675
+ # @option opts [String] :location Location text, e.g. &#39;New York&#39;
676
+ # @option opts [String] :geo_id LinkedIn numeric geo id (overrides location)
677
+ # @option opts [String] :company_id Restrict to a company (numeric id)
678
+ # @option opts [String] :date_posted past_24h | past_week | past_month | any
679
+ # @option opts [String] :experience internship|entry|associate|mid_senior|director|executive (comma-separated)
680
+ # @option opts [String] :job_type full_time|part_time|contract|temporary|internship|volunteer|other
681
+ # @option opts [String] :workplace onsite|remote|hybrid (comma-separated)
682
+ # @option opts [String] :sort relevant | recent
683
+ # @option opts [Integer] :start Pagination offset (0, 25, 50, ...) (default to 0)
684
+ # @option opts [String] :country Residential proxy country (default to 'us')
685
+ # @return [Object]
686
+ def linkedin_search_linkedin_jobs(opts = {})
687
+ data, _status_code, _headers = linkedin_search_linkedin_jobs_with_http_info(opts)
688
+ data
689
+ end
690
+
691
+ # Search LinkedIn jobs
692
+ # Search public LinkedIn job postings (guest API, no login).
693
+ # @param [Hash] opts the optional parameters
694
+ # @option opts [String] :keywords Job title / keywords
695
+ # @option opts [String] :location Location text, e.g. &#39;New York&#39;
696
+ # @option opts [String] :geo_id LinkedIn numeric geo id (overrides location)
697
+ # @option opts [String] :company_id Restrict to a company (numeric id)
698
+ # @option opts [String] :date_posted past_24h | past_week | past_month | any
699
+ # @option opts [String] :experience internship|entry|associate|mid_senior|director|executive (comma-separated)
700
+ # @option opts [String] :job_type full_time|part_time|contract|temporary|internship|volunteer|other
701
+ # @option opts [String] :workplace onsite|remote|hybrid (comma-separated)
702
+ # @option opts [String] :sort relevant | recent
703
+ # @option opts [Integer] :start Pagination offset (0, 25, 50, ...) (default to 0)
704
+ # @option opts [String] :country Residential proxy country (default to 'us')
705
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
706
+ def linkedin_search_linkedin_jobs_with_http_info(opts = {})
707
+ if @api_client.config.debugging
708
+ @api_client.config.logger.debug 'Calling API: LinkedInApi.linkedin_search_linkedin_jobs ...'
709
+ end
710
+ if @api_client.config.client_side_validation && !opts[:'start'].nil? && opts[:'start'] < 0
711
+ fail ArgumentError, 'invalid value for "opts[:"start"]" when calling LinkedInApi.linkedin_search_linkedin_jobs, must be greater than or equal to 0.'
712
+ end
713
+
714
+ # resource path
715
+ local_var_path = '/v1/linkedin/jobs/search'
716
+
717
+ # query parameters
718
+ query_params = opts[:query_params] || {}
719
+ query_params[:'keywords'] = opts[:'keywords'] if !opts[:'keywords'].nil?
720
+ query_params[:'location'] = opts[:'location'] if !opts[:'location'].nil?
721
+ query_params[:'geo_id'] = opts[:'geo_id'] if !opts[:'geo_id'].nil?
722
+ query_params[:'company_id'] = opts[:'company_id'] if !opts[:'company_id'].nil?
723
+ query_params[:'date_posted'] = opts[:'date_posted'] if !opts[:'date_posted'].nil?
724
+ query_params[:'experience'] = opts[:'experience'] if !opts[:'experience'].nil?
725
+ query_params[:'job_type'] = opts[:'job_type'] if !opts[:'job_type'].nil?
726
+ query_params[:'workplace'] = opts[:'workplace'] if !opts[:'workplace'].nil?
727
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
728
+ query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
729
+ query_params[:'country'] = opts[:'country'] if !opts[:'country'].nil?
730
+
731
+ # header parameters
732
+ header_params = opts[:header_params] || {}
733
+ # HTTP header 'Accept' (if needed)
734
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
735
+
736
+ # form parameters
737
+ form_params = opts[:form_params] || {}
738
+
739
+ # http body (model)
740
+ post_body = opts[:debug_body]
741
+
742
+ # return_type
743
+ return_type = opts[:debug_return_type] || 'Object'
744
+
745
+ # auth_names
746
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
747
+
748
+ new_options = opts.merge(
749
+ :operation => :"LinkedInApi.linkedin_search_linkedin_jobs",
750
+ :header_params => header_params,
751
+ :query_params => query_params,
752
+ :form_params => form_params,
753
+ :body => post_body,
754
+ :auth_names => auth_names,
755
+ :return_type => return_type
756
+ )
757
+
758
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
759
+ if @api_client.config.debugging
760
+ @api_client.config.logger.debug "API called: LinkedInApi#linkedin_search_linkedin_jobs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
761
+ end
762
+ return data, status_code, headers
763
+ end
764
+
765
+ # Suggest location geo ids
766
+ # Resolve a name to LinkedIn ids (job-search ``geo_id`` / ``company_id`` helper).
767
+ # @param query [String] Location text, e.g. &#39;London&#39;
768
+ # @param [Hash] opts the optional parameters
769
+ # @option opts [String] :type geo | company (default to 'geo')
770
+ # @return [Object]
771
+ def linkedin_suggest_location_geo_ids(query, opts = {})
772
+ data, _status_code, _headers = linkedin_suggest_location_geo_ids_with_http_info(query, opts)
773
+ data
774
+ end
775
+
776
+ # Suggest location geo ids
777
+ # Resolve a name to LinkedIn ids (job-search &#x60;&#x60;geo_id&#x60;&#x60; / &#x60;&#x60;company_id&#x60;&#x60; helper).
778
+ # @param query [String] Location text, e.g. &#39;London&#39;
779
+ # @param [Hash] opts the optional parameters
780
+ # @option opts [String] :type geo | company (default to 'geo')
781
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
782
+ def linkedin_suggest_location_geo_ids_with_http_info(query, opts = {})
783
+ if @api_client.config.debugging
784
+ @api_client.config.logger.debug 'Calling API: LinkedInApi.linkedin_suggest_location_geo_ids ...'
785
+ end
786
+ # verify the required parameter 'query' is set
787
+ if @api_client.config.client_side_validation && query.nil?
788
+ fail ArgumentError, "Missing the required parameter 'query' when calling LinkedInApi.linkedin_suggest_location_geo_ids"
789
+ end
790
+ # resource path
791
+ local_var_path = '/v1/linkedin/geo/suggest'
792
+
793
+ # query parameters
794
+ query_params = opts[:query_params] || {}
795
+ query_params[:'query'] = query
796
+ query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
797
+
798
+ # header parameters
799
+ header_params = opts[:header_params] || {}
800
+ # HTTP header 'Accept' (if needed)
801
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
802
+
803
+ # form parameters
804
+ form_params = opts[:form_params] || {}
805
+
806
+ # http body (model)
807
+ post_body = opts[:debug_body]
808
+
809
+ # return_type
810
+ return_type = opts[:debug_return_type] || 'Object'
811
+
812
+ # auth_names
813
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
814
+
815
+ new_options = opts.merge(
816
+ :operation => :"LinkedInApi.linkedin_suggest_location_geo_ids",
817
+ :header_params => header_params,
818
+ :query_params => query_params,
819
+ :form_params => form_params,
820
+ :body => post_body,
821
+ :auth_names => auth_names,
822
+ :return_type => return_type
823
+ )
824
+
825
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
826
+ if @api_client.config.debugging
827
+ @api_client.config.logger.debug "API called: LinkedInApi#linkedin_suggest_location_geo_ids\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
828
+ end
829
+ return data, status_code, headers
830
+ end
831
+ end
832
+ end