indexea_client 0.0.9

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 (301) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +3413 -0
  4. data/Rakefile +8 -0
  5. data/docs/AccountApi.md +685 -0
  6. data/docs/AccountBean.md +27 -0
  7. data/docs/AccountPasswdBody.md +8 -0
  8. data/docs/AccountPortraitBody.md +7 -0
  9. data/docs/AccountProfileBody.md +8 -0
  10. data/docs/AccountResetpwdBody.md +9 -0
  11. data/docs/AccountSigninBody.md +9 -0
  12. data/docs/AccountSignupBody.md +10 -0
  13. data/docs/AccountsFeedbackBody.md +8 -0
  14. data/docs/AccountsMessageBody.md +8 -0
  15. data/docs/AnalyzeObject.md +8 -0
  16. data/docs/AnalyzeToken.md +11 -0
  17. data/docs/AppBean.md +23 -0
  18. data/docs/AppCompanyBody.md +22 -0
  19. data/docs/AppIndexBody.md +7 -0
  20. data/docs/AppLogAccount.md +9 -0
  21. data/docs/AppLogBean.md +19 -0
  22. data/docs/AppLogsBean.md +9 -0
  23. data/docs/AppMentorBean.md +14 -0
  24. data/docs/AppOauthBody.md +7 -0
  25. data/docs/AppOauthBody1.md +7 -0
  26. data/docs/AppOauthresetsecretBody.md +7 -0
  27. data/docs/AppTokensBody.md +7 -0
  28. data/docs/AppTokensBody1.md +7 -0
  29. data/docs/AppWidgetBody.md +7 -0
  30. data/docs/AppsApi.md +1843 -0
  31. data/docs/AppsAppBody.md +8 -0
  32. data/docs/AppsBody.md +8 -0
  33. data/docs/AutoCompleteItem.md +9 -0
  34. data/docs/BlacklistBean.md +12 -0
  35. data/docs/Bulletin.md +15 -0
  36. data/docs/CompanyBean.md +24 -0
  37. data/docs/ContactForm.md +11 -0
  38. data/docs/CrawlerLog.md +14 -0
  39. data/docs/CrawlerLogs.md +8 -0
  40. data/docs/CrawlerTask.md +16 -0
  41. data/docs/FieldsApi.md +215 -0
  42. data/docs/GlobalApi.md +258 -0
  43. data/docs/GlobalOptionForm.md +8 -0
  44. data/docs/IndexBean.md +26 -0
  45. data/docs/IndexFieldBean.md +8 -0
  46. data/docs/IndexForm.md +15 -0
  47. data/docs/IndexRebuildForm.md +12 -0
  48. data/docs/IndexSettings.md +10 -0
  49. data/docs/IndexSettingsBody.md +7 -0
  50. data/docs/IndexStatBean.md +14 -0
  51. data/docs/IndexSynonymsflushBody.md +7 -0
  52. data/docs/IndexTask.md +13 -0
  53. data/docs/IndexTemplate.md +17 -0
  54. data/docs/IndexTemplates.md +8 -0
  55. data/docs/IndexUploadBody.md +7 -0
  56. data/docs/IndicesApi.md +1620 -0
  57. data/docs/IntelligentMapping.md +8 -0
  58. data/docs/KeywordBindingBean.md +14 -0
  59. data/docs/MentorForm.md +8 -0
  60. data/docs/Message.md +18 -0
  61. data/docs/MessageApi.md +262 -0
  62. data/docs/Messages.md +8 -0
  63. data/docs/OauthAppBean.md +20 -0
  64. data/docs/OpenidBean.md +10 -0
  65. data/docs/OptionForm.md +10 -0
  66. data/docs/OrdersIdentBody.md +7 -0
  67. data/docs/PayResult.md +9 -0
  68. data/docs/PaymentApi.md +788 -0
  69. data/docs/PaymentInvoice.md +15 -0
  70. data/docs/PaymentOrder.md +25 -0
  71. data/docs/PaymentRecord.md +13 -0
  72. data/docs/PaymentService.md +12 -0
  73. data/docs/QueriesApi.md +1821 -0
  74. data/docs/QueryActionBean.md +27 -0
  75. data/docs/QueryBean.md +22 -0
  76. data/docs/QueryForm.md +15 -0
  77. data/docs/QueryNode.md +10 -0
  78. data/docs/QuerySortField.md +9 -0
  79. data/docs/QueryVariableBean.md +17 -0
  80. data/docs/RecommendApi.md +365 -0
  81. data/docs/RecommendBean.md +18 -0
  82. data/docs/RecordFilter.md +10 -0
  83. data/docs/RecordsApi.md +286 -0
  84. data/docs/SearchApi.md +646 -0
  85. data/docs/SearchEstimateResult.md +11 -0
  86. data/docs/SearchWord.md +8 -0
  87. data/docs/StatIndexBean.md +14 -0
  88. data/docs/StatsApi.md +245 -0
  89. data/docs/SynonymsBean.md +14 -0
  90. data/docs/TokenBean.md +12 -0
  91. data/docs/TriggerBean.md +13 -0
  92. data/docs/TriggerLogBean.md +15 -0
  93. data/docs/ValueOfField.md +8 -0
  94. data/docs/WidgetBean.md +21 -0
  95. data/docs/WidgetForm.md +13 -0
  96. data/docs/WidgetLogo.md +7 -0
  97. data/docs/WidgetLogoBody.md +7 -0
  98. data/docs/WidgetStatusForm.md +8 -0
  99. data/docs/WidgetsApi.md +573 -0
  100. data/git_push.sh +55 -0
  101. data/indexea_client.gemspec +38 -0
  102. data/lib/indexea_client/api/account_api.rb +846 -0
  103. data/lib/indexea_client/api/apps_api.rb +2271 -0
  104. data/lib/indexea_client/api/fields_api.rb +289 -0
  105. data/lib/indexea_client/api/global_api.rb +326 -0
  106. data/lib/indexea_client/api/indices_api.rb +2076 -0
  107. data/lib/indexea_client/api/message_api.rb +337 -0
  108. data/lib/indexea_client/api/payment_api.rb +975 -0
  109. data/lib/indexea_client/api/queries_api.rb +2320 -0
  110. data/lib/indexea_client/api/recommend_api.rb +461 -0
  111. data/lib/indexea_client/api/records_api.rb +375 -0
  112. data/lib/indexea_client/api/search_api.rb +892 -0
  113. data/lib/indexea_client/api/stats_api.rb +312 -0
  114. data/lib/indexea_client/api/widgets_api.rb +741 -0
  115. data/lib/indexea_client/api_client.rb +391 -0
  116. data/lib/indexea_client/api_error.rb +57 -0
  117. data/lib/indexea_client/configuration.rb +205 -0
  118. data/lib/indexea_client/models/account_bean.rb +396 -0
  119. data/lib/indexea_client/models/account_passwd_body.rb +227 -0
  120. data/lib/indexea_client/models/account_portrait_body.rb +206 -0
  121. data/lib/indexea_client/models/account_profile_body.rb +228 -0
  122. data/lib/indexea_client/models/account_resetpwd_body.rb +240 -0
  123. data/lib/indexea_client/models/account_signin_body.rb +237 -0
  124. data/lib/indexea_client/models/account_signup_body.rb +254 -0
  125. data/lib/indexea_client/models/accounts_feedback_body.rb +262 -0
  126. data/lib/indexea_client/models/accounts_message_body.rb +226 -0
  127. data/lib/indexea_client/models/analyze_object.rb +216 -0
  128. data/lib/indexea_client/models/analyze_token.rb +243 -0
  129. data/lib/indexea_client/models/app_bean.rb +360 -0
  130. data/lib/indexea_client/models/app_company_body.rb +357 -0
  131. data/lib/indexea_client/models/app_index_body.rb +212 -0
  132. data/lib/indexea_client/models/app_log_account.rb +224 -0
  133. data/lib/indexea_client/models/app_log_bean.rb +318 -0
  134. data/lib/indexea_client/models/app_logs_bean.rb +229 -0
  135. data/lib/indexea_client/models/app_mentor_bean.rb +277 -0
  136. data/lib/indexea_client/models/app_oauth_body.rb +206 -0
  137. data/lib/indexea_client/models/app_oauth_body_1.rb +212 -0
  138. data/lib/indexea_client/models/app_oauthresetsecret_body.rb +212 -0
  139. data/lib/indexea_client/models/app_tokens_body.rb +212 -0
  140. data/lib/indexea_client/models/app_tokens_body_1.rb +212 -0
  141. data/lib/indexea_client/models/app_widget_body.rb +212 -0
  142. data/lib/indexea_client/models/apps_app_body.rb +216 -0
  143. data/lib/indexea_client/models/apps_body.rb +221 -0
  144. data/lib/indexea_client/models/auto_complete_item.rb +224 -0
  145. data/lib/indexea_client/models/blacklist_bean.rb +258 -0
  146. data/lib/indexea_client/models/bulletin.rb +312 -0
  147. data/lib/indexea_client/models/company_bean.rb +378 -0
  148. data/lib/indexea_client/models/contact_form.rb +258 -0
  149. data/lib/indexea_client/models/crawler_log.rb +270 -0
  150. data/lib/indexea_client/models/crawler_logs.rb +217 -0
  151. data/lib/indexea_client/models/crawler_task.rb +288 -0
  152. data/lib/indexea_client/models/global_option_form.rb +218 -0
  153. data/lib/indexea_client/models/index_bean.rb +390 -0
  154. data/lib/indexea_client/models/index_field_bean.rb +217 -0
  155. data/lib/indexea_client/models/index_form.rb +283 -0
  156. data/lib/indexea_client/models/index_rebuild_form.rb +254 -0
  157. data/lib/indexea_client/models/index_settings.rb +234 -0
  158. data/lib/indexea_client/models/index_settings_body.rb +212 -0
  159. data/lib/indexea_client/models/index_stat_bean.rb +270 -0
  160. data/lib/indexea_client/models/index_synonymsflush_body.rb +212 -0
  161. data/lib/indexea_client/models/index_task.rb +261 -0
  162. data/lib/indexea_client/models/index_template.rb +299 -0
  163. data/lib/indexea_client/models/index_templates.rb +219 -0
  164. data/lib/indexea_client/models/index_upload_body.rb +208 -0
  165. data/lib/indexea_client/models/intelligent_mapping.rb +217 -0
  166. data/lib/indexea_client/models/keyword_binding_bean.rb +274 -0
  167. data/lib/indexea_client/models/mentor_form.rb +220 -0
  168. data/lib/indexea_client/models/message.rb +306 -0
  169. data/lib/indexea_client/models/messages.rb +217 -0
  170. data/lib/indexea_client/models/oauth_app_bean.rb +329 -0
  171. data/lib/indexea_client/models/openid_bean.rb +238 -0
  172. data/lib/indexea_client/models/option_form.rb +287 -0
  173. data/lib/indexea_client/models/orders_ident_body.rb +206 -0
  174. data/lib/indexea_client/models/pay_result.rb +258 -0
  175. data/lib/indexea_client/models/payment_invoice.rb +283 -0
  176. data/lib/indexea_client/models/payment_order.rb +412 -0
  177. data/lib/indexea_client/models/payment_record.rb +261 -0
  178. data/lib/indexea_client/models/payment_service.rb +258 -0
  179. data/lib/indexea_client/models/query_action_bean.rb +391 -0
  180. data/lib/indexea_client/models/query_bean.rb +348 -0
  181. data/lib/indexea_client/models/query_form.rb +285 -0
  182. data/lib/indexea_client/models/query_node.rb +234 -0
  183. data/lib/indexea_client/models/query_sort_field.rb +264 -0
  184. data/lib/indexea_client/models/query_variable_bean.rb +335 -0
  185. data/lib/indexea_client/models/recommend_bean.rb +318 -0
  186. data/lib/indexea_client/models/record_filter.rb +242 -0
  187. data/lib/indexea_client/models/search_estimate_result.rb +242 -0
  188. data/lib/indexea_client/models/search_word.rb +218 -0
  189. data/lib/indexea_client/models/stat_index_bean.rb +270 -0
  190. data/lib/indexea_client/models/synonyms_bean.rb +274 -0
  191. data/lib/indexea_client/models/token_bean.rb +252 -0
  192. data/lib/indexea_client/models/trigger_bean.rb +263 -0
  193. data/lib/indexea_client/models/trigger_log_bean.rb +279 -0
  194. data/lib/indexea_client/models/value_of_field.rb +217 -0
  195. data/lib/indexea_client/models/widget_bean.rb +387 -0
  196. data/lib/indexea_client/models/widget_form.rb +328 -0
  197. data/lib/indexea_client/models/widget_logo.rb +206 -0
  198. data/lib/indexea_client/models/widget_logo_body.rb +206 -0
  199. data/lib/indexea_client/models/widget_status_form.rb +223 -0
  200. data/lib/indexea_client/version.rb +14 -0
  201. data/lib/indexea_client.rb +133 -0
  202. data/spec/api/account_api_spec.rb +200 -0
  203. data/spec/api/apps_api_spec.rb +492 -0
  204. data/spec/api/fields_api_spec.rb +86 -0
  205. data/spec/api/global_api_spec.rb +98 -0
  206. data/spec/api/indices_api_spec.rb +434 -0
  207. data/spec/api/message_api_spec.rb +96 -0
  208. data/spec/api/payment_api_spec.rb +227 -0
  209. data/spec/api/queries_api_spec.rb +482 -0
  210. data/spec/api/recommend_api_spec.rb +125 -0
  211. data/spec/api/records_api_spec.rb +107 -0
  212. data/spec/api/search_api_spec.rb +220 -0
  213. data/spec/api/stats_api_spec.rb +99 -0
  214. data/spec/api/widgets_api_spec.rb +174 -0
  215. data/spec/api_client_spec.rb +225 -0
  216. data/spec/base_object_spec.rb +109 -0
  217. data/spec/configuration_spec.rb +41 -0
  218. data/spec/models/account_bean_spec.rb +160 -0
  219. data/spec/models/account_passwd_body_spec.rb +46 -0
  220. data/spec/models/account_portrait_body_spec.rb +40 -0
  221. data/spec/models/account_profile_body_spec.rb +46 -0
  222. data/spec/models/account_resetpwd_body_spec.rb +52 -0
  223. data/spec/models/account_signin_body_spec.rb +52 -0
  224. data/spec/models/account_signup_body_spec.rb +58 -0
  225. data/spec/models/accounts_feedback_body_spec.rb +50 -0
  226. data/spec/models/accounts_message_body_spec.rb +46 -0
  227. data/spec/models/analyze_object_spec.rb +46 -0
  228. data/spec/models/analyze_token_spec.rb +64 -0
  229. data/spec/models/app_bean_spec.rb +136 -0
  230. data/spec/models/app_company_body_spec.rb +130 -0
  231. data/spec/models/app_index_body_spec.rb +40 -0
  232. data/spec/models/app_log_account_spec.rb +52 -0
  233. data/spec/models/app_log_bean_spec.rb +112 -0
  234. data/spec/models/app_logs_bean_spec.rb +52 -0
  235. data/spec/models/app_mentor_bean_spec.rb +82 -0
  236. data/spec/models/app_oauth_body_1_spec.rb +40 -0
  237. data/spec/models/app_oauth_body_spec.rb +40 -0
  238. data/spec/models/app_oauthresetsecret_body_spec.rb +40 -0
  239. data/spec/models/app_tokens_body_1_spec.rb +40 -0
  240. data/spec/models/app_tokens_body_spec.rb +40 -0
  241. data/spec/models/app_widget_body_spec.rb +40 -0
  242. data/spec/models/apps_app_body_spec.rb +46 -0
  243. data/spec/models/apps_body_spec.rb +46 -0
  244. data/spec/models/auto_complete_item_spec.rb +52 -0
  245. data/spec/models/blacklist_bean_spec.rb +70 -0
  246. data/spec/models/bulletin_spec.rb +92 -0
  247. data/spec/models/company_bean_spec.rb +142 -0
  248. data/spec/models/contact_form_spec.rb +64 -0
  249. data/spec/models/crawler_log_spec.rb +82 -0
  250. data/spec/models/crawler_logs_spec.rb +46 -0
  251. data/spec/models/crawler_task_spec.rb +94 -0
  252. data/spec/models/global_option_form_spec.rb +46 -0
  253. data/spec/models/index_bean_spec.rb +154 -0
  254. data/spec/models/index_field_bean_spec.rb +46 -0
  255. data/spec/models/index_form_spec.rb +88 -0
  256. data/spec/models/index_rebuild_form_spec.rb +70 -0
  257. data/spec/models/index_settings_body_spec.rb +40 -0
  258. data/spec/models/index_settings_spec.rb +58 -0
  259. data/spec/models/index_stat_bean_spec.rb +82 -0
  260. data/spec/models/index_synonymsflush_body_spec.rb +40 -0
  261. data/spec/models/index_task_spec.rb +76 -0
  262. data/spec/models/index_template_spec.rb +100 -0
  263. data/spec/models/index_templates_spec.rb +46 -0
  264. data/spec/models/index_upload_body_spec.rb +40 -0
  265. data/spec/models/intelligent_mapping_spec.rb +46 -0
  266. data/spec/models/keyword_binding_bean_spec.rb +82 -0
  267. data/spec/models/mentor_form_spec.rb +46 -0
  268. data/spec/models/message_spec.rb +106 -0
  269. data/spec/models/messages_spec.rb +46 -0
  270. data/spec/models/oauth_app_bean_spec.rb +118 -0
  271. data/spec/models/openid_bean_spec.rb +58 -0
  272. data/spec/models/option_form_spec.rb +62 -0
  273. data/spec/models/orders_ident_body_spec.rb +40 -0
  274. data/spec/models/pay_result_spec.rb +56 -0
  275. data/spec/models/payment_invoice_spec.rb +88 -0
  276. data/spec/models/payment_order_spec.rb +152 -0
  277. data/spec/models/payment_record_spec.rb +76 -0
  278. data/spec/models/payment_service_spec.rb +70 -0
  279. data/spec/models/query_action_bean_spec.rb +160 -0
  280. data/spec/models/query_bean_spec.rb +130 -0
  281. data/spec/models/query_form_spec.rb +88 -0
  282. data/spec/models/query_node_spec.rb +58 -0
  283. data/spec/models/query_sort_field_spec.rb +56 -0
  284. data/spec/models/query_variable_bean_spec.rb +104 -0
  285. data/spec/models/recommend_bean_spec.rb +106 -0
  286. data/spec/models/record_filter_spec.rb +58 -0
  287. data/spec/models/search_estimate_result_spec.rb +64 -0
  288. data/spec/models/search_word_spec.rb +46 -0
  289. data/spec/models/stat_index_bean_spec.rb +82 -0
  290. data/spec/models/synonyms_bean_spec.rb +82 -0
  291. data/spec/models/token_bean_spec.rb +70 -0
  292. data/spec/models/trigger_bean_spec.rb +76 -0
  293. data/spec/models/trigger_log_bean_spec.rb +88 -0
  294. data/spec/models/value_of_field_spec.rb +46 -0
  295. data/spec/models/widget_bean_spec.rb +132 -0
  296. data/spec/models/widget_form_spec.rb +84 -0
  297. data/spec/models/widget_logo_body_spec.rb +40 -0
  298. data/spec/models/widget_logo_spec.rb +40 -0
  299. data/spec/models/widget_status_form_spec.rb +46 -0
  300. data/spec/spec_helper.rb +110 -0
  301. metadata +501 -0
data/README.md ADDED
@@ -0,0 +1,3413 @@
1
+ # indexea_client
2
+
3
+ IndexeaClient - the Ruby gem for the Indexea OpenAPI
4
+
5
+ OpenAPI of Indexea
6
+
7
+ This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
+
9
+ - API version: 1.0.0
10
+ - Package version: 0.0.9
11
+ - Build package: io.swagger.codegen.v3.generators.ruby.RubyClientCodegen
12
+ For more information, please visit [https://indexea.com/about](https://indexea.com/about)
13
+
14
+ ## Installation
15
+
16
+ ### Build a gem
17
+
18
+ To build the Ruby code into a gem:
19
+
20
+ ```shell
21
+ gem build indexea_client.gemspec
22
+ ```
23
+
24
+ Then either install the gem locally:
25
+
26
+ ```shell
27
+ gem install ./indexea_client-0.0.9.gem
28
+ ```
29
+ (for development, run `gem install --dev ./indexea_client-0.0.9.gem` to install the development dependencies)
30
+
31
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
+
33
+ Finally add this to the Gemfile:
34
+
35
+ gem 'indexea_client', '~> 0.0.9'
36
+
37
+ ### Install from Git
38
+
39
+ If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
40
+
41
+ gem 'indexea_client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
42
+
43
+ ### Include the Ruby code directly
44
+
45
+ Include the Ruby code directly using `-I` as follows:
46
+
47
+ ```shell
48
+ ruby -Ilib script.rb
49
+ ```
50
+
51
+ ## Getting Started
52
+
53
+ Please follow the [installation](#installation) procedure and then run the following code:
54
+ ```ruby
55
+ # Load the gem
56
+ require 'indexea_client'
57
+ # Setup authorization
58
+ IndexeaClient.configure do |config|
59
+ end
60
+
61
+ api_instance = IndexeaClient::AccountApi.new
62
+
63
+ begin
64
+ #获取系统公告
65
+ result = api_instance.account_bulletin
66
+ p result
67
+ rescue IndexeaClient::ApiError => e
68
+ puts "Exception when calling AccountApi->account_bulletin: #{e}"
69
+ end
70
+ # Setup authorization
71
+ IndexeaClient.configure do |config|
72
+ end
73
+
74
+ api_instance = IndexeaClient::AccountApi.new
75
+ opts = {
76
+ pwd: 'pwd_example', # String |
77
+ vcode: 'vcode_example' # String |
78
+ }
79
+
80
+ begin
81
+ #注销账号
82
+ result = api_instance.account_delete(opts)
83
+ p result
84
+ rescue IndexeaClient::ApiError => e
85
+ puts "Exception when calling AccountApi->account_delete: #{e}"
86
+ end
87
+ # Setup authorization
88
+ IndexeaClient.configure do |config|
89
+ end
90
+
91
+ api_instance = IndexeaClient::AccountApi.new
92
+ type = 'type_example' # String | 三方账号类型
93
+ openid = 'openid_example' # String | 三方账号唯一标识
94
+
95
+
96
+ begin
97
+ #解绑三方账号
98
+ result = api_instance.account_delete_openid(type, openid)
99
+ p result
100
+ rescue IndexeaClient::ApiError => e
101
+ puts "Exception when calling AccountApi->account_delete_openid: #{e}"
102
+ end
103
+ # Setup authorization
104
+ IndexeaClient.configure do |config|
105
+ end
106
+
107
+ api_instance = IndexeaClient::AccountApi.new
108
+
109
+ begin
110
+ #获取绑定的所有三方账号
111
+ result = api_instance.account_openid
112
+ p result
113
+ rescue IndexeaClient::ApiError => e
114
+ puts "Exception when calling AccountApi->account_openid: #{e}"
115
+ end
116
+ # Setup authorization
117
+ IndexeaClient.configure do |config|
118
+ end
119
+
120
+ api_instance = IndexeaClient::AccountApi.new
121
+ password = 'password_example' # String |
122
+ new_password = 'new_password_example' # String |
123
+
124
+
125
+ begin
126
+ #修改账号密码
127
+ result = api_instance.account_passwd(password, new_password)
128
+ p result
129
+ rescue IndexeaClient::ApiError => e
130
+ puts "Exception when calling AccountApi->account_passwd: #{e}"
131
+ end
132
+ # Setup authorization
133
+ IndexeaClient.configure do |config|
134
+ end
135
+
136
+ api_instance = IndexeaClient::AccountApi.new
137
+ portrait = 'portrait_example' # String |
138
+
139
+
140
+ begin
141
+ #修改账号头像
142
+ result = api_instance.account_portrait(portrait)
143
+ p result
144
+ rescue IndexeaClient::ApiError => e
145
+ puts "Exception when calling AccountApi->account_portrait: #{e}"
146
+ end
147
+ # Setup authorization
148
+ IndexeaClient.configure do |config|
149
+ end
150
+
151
+ api_instance = IndexeaClient::AccountApi.new
152
+ opts = {
153
+ account: 'account_example' # String | 获取指定账号信息,如果不指定,则返回当前登录账号
154
+ }
155
+
156
+ begin
157
+ #获取登录账号信息
158
+ result = api_instance.account_profile(opts)
159
+ p result
160
+ rescue IndexeaClient::ApiError => e
161
+ puts "Exception when calling AccountApi->account_profile: #{e}"
162
+ end
163
+
164
+ api_instance = IndexeaClient::AccountApi.new
165
+ opts = {
166
+ account: 'account_example', # String |
167
+ verify_code: 'verify_code_example', # String |
168
+ pwd: 'pwd_example' # String |
169
+ }
170
+
171
+ begin
172
+ #重置账号密码
173
+ result = api_instance.account_reset_pwd(opts)
174
+ p result
175
+ rescue IndexeaClient::ApiError => e
176
+ puts "Exception when calling AccountApi->account_reset_pwd: #{e}"
177
+ end
178
+
179
+ api_instance = IndexeaClient::AccountApi.new
180
+ account = 'account_example' # String | 账号
181
+ purpose = 'purpose_example' # String | 验证码的用途
182
+
183
+
184
+ begin
185
+ #发送账号验证码
186
+ result = api_instance.account_send_verify_code(account, purpose)
187
+ p result
188
+ rescue IndexeaClient::ApiError => e
189
+ puts "Exception when calling AccountApi->account_send_verify_code: #{e}"
190
+ end
191
+
192
+ api_instance = IndexeaClient::AccountApi.new
193
+ account = 'account_example' # String |
194
+ pwd = 'pwd_example' # String |
195
+ keep_login = true # BOOLEAN |
196
+
197
+
198
+ begin
199
+ #登录系统
200
+ result = api_instance.account_signin(account, pwd, keep_login)
201
+ p result
202
+ rescue IndexeaClient::ApiError => e
203
+ puts "Exception when calling AccountApi->account_signin: #{e}"
204
+ end
205
+ # Setup authorization
206
+ IndexeaClient.configure do |config|
207
+ end
208
+
209
+ api_instance = IndexeaClient::AccountApi.new
210
+
211
+ begin
212
+ #退出登录状态
213
+ api_instance.account_signout
214
+ rescue IndexeaClient::ApiError => e
215
+ puts "Exception when calling AccountApi->account_signout: #{e}"
216
+ end
217
+
218
+ api_instance = IndexeaClient::AccountApi.new
219
+ opts = {
220
+ account: 'account_example', # String |
221
+ pwd: 'pwd_example', # String |
222
+ name: 'name_example', # String |
223
+ activate_code: 'activate_code_example' # String |
224
+ }
225
+
226
+ begin
227
+ #注册新账号
228
+ result = api_instance.account_signup(opts)
229
+ p result
230
+ rescue IndexeaClient::ApiError => e
231
+ puts "Exception when calling AccountApi->account_signup: #{e}"
232
+ end
233
+ # Setup authorization
234
+ IndexeaClient.configure do |config|
235
+ end
236
+
237
+ api_instance = IndexeaClient::AccountApi.new
238
+ body = IndexeaClient::AccountBean.new # AccountBean |
239
+
240
+
241
+ begin
242
+ #修改账号资料
243
+ result = api_instance.account_update(body)
244
+ p result
245
+ rescue IndexeaClient::ApiError => e
246
+ puts "Exception when calling AccountApi->account_update: #{e}"
247
+ end
248
+ # Setup authorization
249
+ IndexeaClient.configure do |config|
250
+ end
251
+
252
+ api_instance = IndexeaClient::AccountApi.new
253
+ key = 'key_example' # String |
254
+ type = 'type_example' # String |
255
+ value = 'value_example' # String |
256
+ vcode = 'vcode_example' # String |
257
+
258
+
259
+ begin
260
+ #修改账号设置
261
+ result = api_instance.account_update_settings(key, type, value, vcode)
262
+ p result
263
+ rescue IndexeaClient::ApiError => e
264
+ puts "Exception when calling AccountApi->account_update_settings: #{e}"
265
+ end
266
+ # Setup authorization
267
+ IndexeaClient.configure do |config|
268
+ end
269
+
270
+ api_instance = IndexeaClient::AppsApi.new
271
+ app = 'app_example' # String | 应用标识
272
+ account = 'account_example' # String | 成员账号
273
+ scopes = 'scopes_example' # String | 权限
274
+ opts = {
275
+ name: 'name_example' # String | 备注名称
276
+ }
277
+
278
+ begin
279
+ #添加应用成员
280
+ result = api_instance.app_add_mentor(app, account, scopes, opts)
281
+ p result
282
+ rescue IndexeaClient::ApiError => e
283
+ puts "Exception when calling AppsApi->app_add_mentor: #{e}"
284
+ end
285
+ # Setup authorization
286
+ IndexeaClient.configure do |config|
287
+ end
288
+
289
+ api_instance = IndexeaClient::AppsApi.new
290
+ app = 'app_example' # String | 应用标识
291
+
292
+
293
+ begin
294
+ #获取黑名单信息
295
+ result = api_instance.app_blacklist(app)
296
+ p result
297
+ rescue IndexeaClient::ApiError => e
298
+ puts "Exception when calling AppsApi->app_blacklist: #{e}"
299
+ end
300
+ # Setup authorization
301
+ IndexeaClient.configure do |config|
302
+ end
303
+
304
+ api_instance = IndexeaClient::AppsApi.new
305
+ opts = {
306
+ name: 'name_example', # String |
307
+ intro: 'intro_example' # String |
308
+ }
309
+
310
+ begin
311
+ #创建应用
312
+ result = api_instance.app_create(opts)
313
+ p result
314
+ rescue IndexeaClient::ApiError => e
315
+ puts "Exception when calling AppsApi->app_create: #{e}"
316
+ end
317
+ # Setup authorization
318
+ IndexeaClient.configure do |config|
319
+ end
320
+
321
+ api_instance = IndexeaClient::AppsApi.new
322
+ body = IndexeaClient::TokenBean.new # TokenBean |
323
+ app = 'app_example' # String | 应用标识
324
+
325
+
326
+ begin
327
+ #创建 Access Token
328
+ result = api_instance.app_create_access_token(body, app)
329
+ p result
330
+ rescue IndexeaClient::ApiError => e
331
+ puts "Exception when calling AppsApi->app_create_access_token: #{e}"
332
+ end
333
+ # Setup authorization
334
+ IndexeaClient.configure do |config|
335
+ end
336
+
337
+ api_instance = IndexeaClient::AppsApi.new
338
+ body = IndexeaClient::OauthAppBean.new # OauthAppBean |
339
+ app = 'app_example' # String | 应用标识
340
+
341
+
342
+ begin
343
+ #创建第三方应用
344
+ result = api_instance.app_create_oauth_app(body, app)
345
+ p result
346
+ rescue IndexeaClient::ApiError => e
347
+ puts "Exception when calling AppsApi->app_create_oauth_app: #{e}"
348
+ end
349
+ # Setup authorization
350
+ IndexeaClient.configure do |config|
351
+ end
352
+
353
+ api_instance = IndexeaClient::AppsApi.new
354
+ app = 'app_example' # String | 应用标识
355
+
356
+
357
+ begin
358
+ #删除应用
359
+ result = api_instance.app_delete(app)
360
+ p result
361
+ rescue IndexeaClient::ApiError => e
362
+ puts "Exception when calling AppsApi->app_delete: #{e}"
363
+ end
364
+ # Setup authorization
365
+ IndexeaClient.configure do |config|
366
+ end
367
+
368
+ api_instance = IndexeaClient::AppsApi.new
369
+ app = 'app_example' # String | 应用标识
370
+ id = 56 # Integer | Access Token 编号
371
+ opts = {
372
+ vcode: 'vcode_example' # String |
373
+ }
374
+
375
+ begin
376
+ #删除 Access Token
377
+ result = api_instance.app_delete_access_token(app, id, opts)
378
+ p result
379
+ rescue IndexeaClient::ApiError => e
380
+ puts "Exception when calling AppsApi->app_delete_access_token: #{e}"
381
+ end
382
+ # Setup authorization
383
+ IndexeaClient.configure do |config|
384
+ end
385
+
386
+ api_instance = IndexeaClient::AppsApi.new
387
+ app = 'app_example' # String | 应用标识
388
+ account = 56 # Integer | 成员编号
389
+
390
+
391
+ begin
392
+ #删除应用成员
393
+ result = api_instance.app_delete_mentor(app, account)
394
+ p result
395
+ rescue IndexeaClient::ApiError => e
396
+ puts "Exception when calling AppsApi->app_delete_mentor: #{e}"
397
+ end
398
+ # Setup authorization
399
+ IndexeaClient.configure do |config|
400
+ end
401
+
402
+ api_instance = IndexeaClient::AppsApi.new
403
+ app = 'app_example' # String | 应用标识
404
+ ident = 'ident_example' # String | 三方应用编号
405
+ opts = {
406
+ vcode: 'vcode_example' # String |
407
+ }
408
+
409
+ begin
410
+ #删除第三方应用
411
+ result = api_instance.app_delete_oauth_app(app, ident, opts)
412
+ p result
413
+ rescue IndexeaClient::ApiError => e
414
+ puts "Exception when calling AppsApi->app_delete_oauth_app: #{e}"
415
+ end
416
+ # Setup authorization
417
+ IndexeaClient.configure do |config|
418
+ end
419
+
420
+ api_instance = IndexeaClient::AppsApi.new
421
+ app = 'app_example' # String | 应用标识
422
+ opts = {
423
+ account: 0, # Integer | 账号
424
+ indices: [56], # Array<Integer> | 索引
425
+ widget: 0, # Integer | 组件
426
+ query: 0, # Integer | 查询
427
+ type: 0, # Integer | 类型
428
+ start_date: Date.parse('2013-10-20'), # Date | 起始日期
429
+ end_date: Date.parse('2013-10-20') # Date | 结束日期
430
+ }
431
+
432
+ begin
433
+ #导出应用日志到 Excel
434
+ result = api_instance.app_excel_of_logs(app, opts)
435
+ p result
436
+ rescue IndexeaClient::ApiError => e
437
+ puts "Exception when calling AppsApi->app_excel_of_logs: #{e}"
438
+ end
439
+ # Setup authorization
440
+ IndexeaClient.configure do |config|
441
+ end
442
+
443
+ api_instance = IndexeaClient::AppsApi.new
444
+ app = 'app_example' # String | 应用标识
445
+
446
+
447
+ begin
448
+ #获取应用详情
449
+ result = api_instance.app_get(app)
450
+ p result
451
+ rescue IndexeaClient::ApiError => e
452
+ puts "Exception when calling AppsApi->app_get: #{e}"
453
+ end
454
+ # Setup authorization
455
+ IndexeaClient.configure do |config|
456
+ end
457
+
458
+ api_instance = IndexeaClient::AppsApi.new
459
+ app = 'app_example' # String | 应用标识
460
+
461
+
462
+ begin
463
+ #获取应用填写的公司信息
464
+ result = api_instance.app_get_company(app)
465
+ p result
466
+ rescue IndexeaClient::ApiError => e
467
+ puts "Exception when calling AppsApi->app_get_company: #{e}"
468
+ end
469
+ # Setup authorization
470
+ IndexeaClient.configure do |config|
471
+ end
472
+
473
+ api_instance = IndexeaClient::AppsApi.new
474
+ app = 'app_example' # String | 应用标识
475
+ type = 'type_example' # String | 获取图片的类型 [license,certificate]
476
+
477
+
478
+ begin
479
+ #获取公司营业执照或者一般纳税人证明
480
+ result = api_instance.app_get_company_pic(app, type)
481
+ p result
482
+ rescue IndexeaClient::ApiError => e
483
+ puts "Exception when calling AppsApi->app_get_company_pic: #{e}"
484
+ end
485
+ # Setup authorization
486
+ IndexeaClient.configure do |config|
487
+ end
488
+
489
+ api_instance = IndexeaClient::AppsApi.new
490
+
491
+ begin
492
+ #获取应用列表
493
+ result = api_instance.app_list
494
+ p result
495
+ rescue IndexeaClient::ApiError => e
496
+ puts "Exception when calling AppsApi->app_list: #{e}"
497
+ end
498
+ # Setup authorization
499
+ IndexeaClient.configure do |config|
500
+ end
501
+
502
+ api_instance = IndexeaClient::AppsApi.new
503
+ app = 'app_example' # String | 应用标识
504
+ opts = {
505
+ from: 0, # Integer | 开始位置
506
+ size: 20 # Integer | 获取的数量
507
+ }
508
+
509
+ begin
510
+ #获取应用成员列表
511
+ result = api_instance.app_list_mentors(app, opts)
512
+ p result
513
+ rescue IndexeaClient::ApiError => e
514
+ puts "Exception when calling AppsApi->app_list_mentors: #{e}"
515
+ end
516
+ # Setup authorization
517
+ IndexeaClient.configure do |config|
518
+ end
519
+
520
+ api_instance = IndexeaClient::AppsApi.new
521
+ app = 'app_example' # String | 应用标识
522
+
523
+
524
+ begin
525
+ #获取第三方应用列表
526
+ result = api_instance.app_list_oauth_apps(app)
527
+ p result
528
+ rescue IndexeaClient::ApiError => e
529
+ puts "Exception when calling AppsApi->app_list_oauth_apps: #{e}"
530
+ end
531
+ # Setup authorization
532
+ IndexeaClient.configure do |config|
533
+ end
534
+
535
+ api_instance = IndexeaClient::AppsApi.new
536
+ app = 'app_example' # String | 应用标识
537
+ opts = {
538
+ account: 0, # Integer | 账号
539
+ indices: [56], # Array<Integer> | 索引
540
+ widget: 0, # Integer | 组件
541
+ query: 0, # Integer | 查询
542
+ type: 0, # Integer | 类型
543
+ start_date: Date.parse('2013-10-20'), # Date | 起始日期
544
+ end_date: Date.parse('2013-10-20'), # Date | 结束日期
545
+ from: 0, # Integer | 起始位置
546
+ size: 20 # Integer | 数量
547
+ }
548
+
549
+ begin
550
+ #获取应用的日志列表
551
+ result = api_instance.app_logs(app, opts)
552
+ p result
553
+ rescue IndexeaClient::ApiError => e
554
+ puts "Exception when calling AppsApi->app_logs: #{e}"
555
+ end
556
+ # Setup authorization
557
+ IndexeaClient.configure do |config|
558
+ end
559
+
560
+ api_instance = IndexeaClient::AppsApi.new
561
+ app = 'app_example' # String | 应用标识
562
+ id = 56 # Integer | Access Token 编号
563
+ opts = {
564
+ vcode: 'vcode_example' # String |
565
+ }
566
+
567
+ begin
568
+ #重置 Access Token
569
+ result = api_instance.app_reset_access_token(app, id, opts)
570
+ p result
571
+ rescue IndexeaClient::ApiError => e
572
+ puts "Exception when calling AppsApi->app_reset_access_token: #{e}"
573
+ end
574
+ # Setup authorization
575
+ IndexeaClient.configure do |config|
576
+ end
577
+
578
+ api_instance = IndexeaClient::AppsApi.new
579
+ app = 'app_example' # String | 应用标识
580
+ ident = 'ident_example' # String | 三方应用标识
581
+ opts = {
582
+ vcode: 'vcode_example' # String |
583
+ }
584
+
585
+ begin
586
+ #重新生成三方应用的密钥
587
+ result = api_instance.app_reset_oauth_app_secret(app, ident, opts)
588
+ p result
589
+ rescue IndexeaClient::ApiError => e
590
+ puts "Exception when calling AppsApi->app_reset_oauth_app_secret: #{e}"
591
+ end
592
+ # Setup authorization
593
+ IndexeaClient.configure do |config|
594
+ end
595
+
596
+ api_instance = IndexeaClient::AppsApi.new
597
+ body = IndexeaClient::BlacklistBean.new # BlacklistBean |
598
+ app = 'app_example' # String | 应用标识
599
+
600
+
601
+ begin
602
+ #修改应用的黑名单信息
603
+ result = api_instance.app_save_blacklist(body, app)
604
+ p result
605
+ rescue IndexeaClient::ApiError => e
606
+ puts "Exception when calling AppsApi->app_save_blacklist: #{e}"
607
+ end
608
+ # Setup authorization
609
+ IndexeaClient.configure do |config|
610
+ end
611
+
612
+ api_instance = IndexeaClient::AppsApi.new
613
+ app = 'app_example' # String | 应用标识
614
+ opts = {
615
+ name: 'name_example', # String |
616
+ url: 'url_example', # String |
617
+ nation: 'nation_example', # String |
618
+ province: 'province_example', # String |
619
+ city: 'city_example', # String |
620
+ taxpayer: 'taxpayer_example', # String |
621
+ bank: 'bank_example', # String |
622
+ account: 'account_example', # String |
623
+ address: 'address_example', # String |
624
+ tel: 'tel_example', # String |
625
+ license: 'license_example', # String |
626
+ certificate: 'certificate_example', # String |
627
+ post_addr: 'post_addr_example', # String |
628
+ post_code: 'post_code_example', # String |
629
+ post_name: 'post_name_example', # String |
630
+ post_tel: 'post_tel_example' # String |
631
+ }
632
+
633
+ begin
634
+ #修改应用的公司信息
635
+ result = api_instance.app_save_company(app, opts)
636
+ p result
637
+ rescue IndexeaClient::ApiError => e
638
+ puts "Exception when calling AppsApi->app_save_company: #{e}"
639
+ end
640
+ # Setup authorization
641
+ IndexeaClient.configure do |config|
642
+ end
643
+
644
+ api_instance = IndexeaClient::AppsApi.new
645
+ app = 'app_example' # String | 应用标识
646
+ days = 30 # Integer | 计算平均搜索数的最近天数
647
+
648
+
649
+ begin
650
+ #获取搜索流量包使用配额信息
651
+ result = api_instance.app_searchs_estimate(app, days)
652
+ p result
653
+ rescue IndexeaClient::ApiError => e
654
+ puts "Exception when calling AppsApi->app_searchs_estimate: #{e}"
655
+ end
656
+ # Setup authorization
657
+ IndexeaClient.configure do |config|
658
+ end
659
+
660
+ api_instance = IndexeaClient::AppsApi.new
661
+ body = IndexeaClient::TriggerBean.new # TriggerBean |
662
+ app = 'app_example' # String | 应用标识
663
+
664
+
665
+ begin
666
+ #修改应用的触发器信息
667
+ result = api_instance.app_set_trigger(body, app)
668
+ p result
669
+ rescue IndexeaClient::ApiError => e
670
+ puts "Exception when calling AppsApi->app_set_trigger: #{e}"
671
+ end
672
+ # Setup authorization
673
+ IndexeaClient.configure do |config|
674
+ end
675
+
676
+ api_instance = IndexeaClient::AppsApi.new
677
+ app = 'app_example' # String | 应用标识
678
+
679
+
680
+ begin
681
+ #获取 Access Token 列表
682
+ result = api_instance.app_tokens(app)
683
+ p result
684
+ rescue IndexeaClient::ApiError => e
685
+ puts "Exception when calling AppsApi->app_tokens: #{e}"
686
+ end
687
+ # Setup authorization
688
+ IndexeaClient.configure do |config|
689
+ end
690
+
691
+ api_instance = IndexeaClient::AppsApi.new
692
+ app = 'app_example' # String | 应用标识
693
+ vcode = 'vcode_example' # String | 验证码
694
+ account = 56 # Integer | 目标账号
695
+
696
+
697
+ begin
698
+ #转让应用给他人
699
+ result = api_instance.app_transfer(app, vcode, account)
700
+ p result
701
+ rescue IndexeaClient::ApiError => e
702
+ puts "Exception when calling AppsApi->app_transfer: #{e}"
703
+ end
704
+ # Setup authorization
705
+ IndexeaClient.configure do |config|
706
+ end
707
+
708
+ api_instance = IndexeaClient::AppsApi.new
709
+ app = 'app_example' # String | 应用标识
710
+
711
+
712
+ begin
713
+ #获取应用触发器详情
714
+ result = api_instance.app_trigger(app)
715
+ p result
716
+ rescue IndexeaClient::ApiError => e
717
+ puts "Exception when calling AppsApi->app_trigger: #{e}"
718
+ end
719
+ # Setup authorization
720
+ IndexeaClient.configure do |config|
721
+ end
722
+
723
+ api_instance = IndexeaClient::AppsApi.new
724
+ app = 'app_example' # String | 应用标识
725
+ id = 999999999 # Integer | 起始日志编号
726
+ size = 20 # Integer | 日志数
727
+
728
+
729
+ begin
730
+ #获取应用触发日志列表
731
+ result = api_instance.app_trigger_logs(app, id, size)
732
+ p result
733
+ rescue IndexeaClient::ApiError => e
734
+ puts "Exception when calling AppsApi->app_trigger_logs: #{e}"
735
+ end
736
+ # Setup authorization
737
+ IndexeaClient.configure do |config|
738
+ end
739
+
740
+ api_instance = IndexeaClient::AppsApi.new
741
+ app = 'app_example' # String | 应用标识
742
+ opts = {
743
+ name: 'name_example', # String |
744
+ intro: 'intro_example' # String |
745
+ }
746
+
747
+ begin
748
+ #修改应用的基本信息
749
+ result = api_instance.app_update(app, opts)
750
+ p result
751
+ rescue IndexeaClient::ApiError => e
752
+ puts "Exception when calling AppsApi->app_update: #{e}"
753
+ end
754
+ # Setup authorization
755
+ IndexeaClient.configure do |config|
756
+ end
757
+
758
+ api_instance = IndexeaClient::AppsApi.new
759
+ body = IndexeaClient::TokenBean.new # TokenBean |
760
+ app = 'app_example' # String | 应用标识
761
+
762
+
763
+ begin
764
+ #修改 Access Token
765
+ result = api_instance.app_update_access_token(body, app)
766
+ p result
767
+ rescue IndexeaClient::ApiError => e
768
+ puts "Exception when calling AppsApi->app_update_access_token: #{e}"
769
+ end
770
+ # Setup authorization
771
+ IndexeaClient.configure do |config|
772
+ end
773
+
774
+ api_instance = IndexeaClient::AppsApi.new
775
+ app = 'app_example' # String | 应用标识
776
+ account = 56 # Integer | 成员编号
777
+ name = 'name_example' # String | 备注名称
778
+ scopes = 'scopes_example' # String | 权限
779
+
780
+
781
+ begin
782
+ #修改成员备注和权限
783
+ result = api_instance.app_update_mentor(app, account, name, scopes)
784
+ p result
785
+ rescue IndexeaClient::ApiError => e
786
+ puts "Exception when calling AppsApi->app_update_mentor: #{e}"
787
+ end
788
+ # Setup authorization
789
+ IndexeaClient.configure do |config|
790
+ end
791
+
792
+ api_instance = IndexeaClient::AppsApi.new
793
+ app = 'app_example' # String | 应用标识
794
+ opts = {
795
+ name: 'name_example', # String | 应用备注名称,如果不填写则使用默认名称
796
+ report: false # BOOLEAN | 是否接收使用情况报告
797
+ }
798
+
799
+ begin
800
+ #修改应用成员自身的设置(包括应用名备注,是否接收报告等)
801
+ result = api_instance.app_update_mentor_options(app, opts)
802
+ p result
803
+ rescue IndexeaClient::ApiError => e
804
+ puts "Exception when calling AppsApi->app_update_mentor_options: #{e}"
805
+ end
806
+ # Setup authorization
807
+ IndexeaClient.configure do |config|
808
+ end
809
+
810
+ api_instance = IndexeaClient::AppsApi.new
811
+ key = 'key_example' # String |
812
+ type = 'type_example' # String |
813
+ value = 'value_example' # String |
814
+ vcode = 'vcode_example' # String |
815
+ app = 'app_example' # String | 应用标识
816
+
817
+
818
+ begin
819
+ #修改应用成员自身的通知设置
820
+ result = api_instance.app_update_mentor_report_options(key, type, value, vcode, app)
821
+ p result
822
+ rescue IndexeaClient::ApiError => e
823
+ puts "Exception when calling AppsApi->app_update_mentor_report_options: #{e}"
824
+ end
825
+ # Setup authorization
826
+ IndexeaClient.configure do |config|
827
+ end
828
+
829
+ api_instance = IndexeaClient::AppsApi.new
830
+ body = IndexeaClient::OauthAppBean.new # OauthAppBean |
831
+ app = 'app_example' # String | 应用标识
832
+
833
+
834
+ begin
835
+ #修改第三方应用信息
836
+ result = api_instance.app_update_oauth_app(body, app)
837
+ p result
838
+ rescue IndexeaClient::ApiError => e
839
+ puts "Exception when calling AppsApi->app_update_oauth_app: #{e}"
840
+ end
841
+ # Setup authorization
842
+ IndexeaClient.configure do |config|
843
+ end
844
+
845
+ api_instance = IndexeaClient::AppsApi.new
846
+ app = 'app_example' # String | 应用标识
847
+ ident = 'ident_example' # String | 三方应用标识
848
+ opts = {
849
+ logo: 'logo_example' # String |
850
+ }
851
+
852
+ begin
853
+ #修改三方应用图标
854
+ result = api_instance.app_update_oauth_app_logo(app, ident, opts)
855
+ p result
856
+ rescue IndexeaClient::ApiError => e
857
+ puts "Exception when calling AppsApi->app_update_oauth_app_logo: #{e}"
858
+ end
859
+ # Setup authorization
860
+ IndexeaClient.configure do |config|
861
+ end
862
+
863
+ api_instance = IndexeaClient::AppsApi.new
864
+ app = 'app_example' # String | 应用标识
865
+ vcode = 'vcode_example' # String | 验证码
866
+ status = 56 # Integer | 新状态
867
+
868
+
869
+ begin
870
+ #修改应用的状态
871
+ result = api_instance.app_update_status(app, vcode, status)
872
+ p result
873
+ rescue IndexeaClient::ApiError => e
874
+ puts "Exception when calling AppsApi->app_update_status: #{e}"
875
+ end
876
+ # Setup authorization
877
+ IndexeaClient.configure do |config|
878
+ end
879
+
880
+ api_instance = IndexeaClient::FieldsApi.new
881
+ app = 'app_example' # String | 应用标识
882
+ index = 56 # Integer | 索引编号
883
+
884
+
885
+ begin
886
+ #获取索引字段映射详情
887
+ result = api_instance.index_fields(app, index)
888
+ p result
889
+ rescue IndexeaClient::ApiError => e
890
+ puts "Exception when calling FieldsApi->index_fields: #{e}"
891
+ end
892
+ # Setup authorization
893
+ IndexeaClient.configure do |config|
894
+ end
895
+
896
+ api_instance = IndexeaClient::FieldsApi.new
897
+ body = nil # Object |
898
+ app = 'app_example' # String | 应用标识
899
+ index = 56 # Integer | 索引编号
900
+
901
+
902
+ begin
903
+ #更新索引的字段映射
904
+ result = api_instance.index_update_fields(body, app, index)
905
+ p result
906
+ rescue IndexeaClient::ApiError => e
907
+ puts "Exception when calling FieldsApi->index_update_fields: #{e}"
908
+ end
909
+ # Setup authorization
910
+ IndexeaClient.configure do |config|
911
+ end
912
+
913
+ api_instance = IndexeaClient::FieldsApi.new
914
+ body = nil # Object |
915
+ app = 'app_example' # String | 应用标识
916
+ index = 56 # Integer | 索引编号
917
+
918
+
919
+ begin
920
+ #更新索引的HTML过滤字段列表
921
+ result = api_instance.index_update_html_strip_fields(body, app, index)
922
+ p result
923
+ rescue IndexeaClient::ApiError => e
924
+ puts "Exception when calling FieldsApi->index_update_html_strip_fields: #{e}"
925
+ end
926
+ # Setup authorization
927
+ IndexeaClient.configure do |config|
928
+ end
929
+
930
+ api_instance = IndexeaClient::FieldsApi.new
931
+ app = 'app_example' # String | 应用标识
932
+ index = 56 # Integer | 索引编号
933
+ field = 'field_example' # String | 字段名称
934
+ size = 20 # Integer | values count
935
+
936
+
937
+ begin
938
+ #获取索引字段的所有值列表
939
+ result = api_instance.index_values_of_field(app, index, field, size)
940
+ p result
941
+ rescue IndexeaClient::ApiError => e
942
+ puts "Exception when calling FieldsApi->index_values_of_field: #{e}"
943
+ end
944
+
945
+ api_instance = IndexeaClient::GlobalApi.new
946
+
947
+ begin
948
+ #接口定义(JSON)
949
+ result = api_instance.json
950
+ p result
951
+ rescue IndexeaClient::ApiError => e
952
+ puts "Exception when calling GlobalApi->json: #{e}"
953
+ end
954
+
955
+ api_instance = IndexeaClient::GlobalApi.new
956
+ name = 'name_example' # String |
957
+ keys = 'keys_example' # String | 配置项名,多个配置项请使用逗号隔开
958
+
959
+
960
+ begin
961
+ #系统全局配置接口
962
+ result = api_instance.options_get(name, keys)
963
+ p result
964
+ rescue IndexeaClient::ApiError => e
965
+ puts "Exception when calling GlobalApi->options_get: #{e}"
966
+ end
967
+
968
+ api_instance = IndexeaClient::GlobalApi.new
969
+
970
+ begin
971
+ #数据库服务状态测试
972
+ result = api_instance.status_database
973
+ p result
974
+ rescue IndexeaClient::ApiError => e
975
+ puts "Exception when calling GlobalApi->status_database: #{e}"
976
+ end
977
+
978
+ api_instance = IndexeaClient::GlobalApi.new
979
+
980
+ begin
981
+ #搜索引擎状态测试
982
+ result = api_instance.status_engine
983
+ p result
984
+ rescue IndexeaClient::ApiError => e
985
+ puts "Exception when calling GlobalApi->status_engine: #{e}"
986
+ end
987
+
988
+ api_instance = IndexeaClient::GlobalApi.new
989
+
990
+ begin
991
+ #接口欢迎信息
992
+ result = api_instance.welcome
993
+ p result
994
+ rescue IndexeaClient::ApiError => e
995
+ puts "Exception when calling GlobalApi->welcome: #{e}"
996
+ end
997
+
998
+ api_instance = IndexeaClient::GlobalApi.new
999
+
1000
+ begin
1001
+ #接口定义(YAML)
1002
+ result = api_instance.yaml
1003
+ p result
1004
+ rescue IndexeaClient::ApiError => e
1005
+ puts "Exception when calling GlobalApi->yaml: #{e}"
1006
+ end
1007
+ # Setup authorization
1008
+ IndexeaClient.configure do |config|
1009
+ end
1010
+
1011
+ api_instance = IndexeaClient::IndicesApi.new
1012
+ app = 'app_example' # String | 应用标识
1013
+ index = 56 # Integer | 索引编号
1014
+ vcode = 'vcode_example' # String | 验证码
1015
+
1016
+
1017
+ begin
1018
+ #清空索引记录
1019
+ result = api_instance.index_cleanup(app, index, vcode)
1020
+ p result
1021
+ rescue IndexeaClient::ApiError => e
1022
+ puts "Exception when calling IndicesApi->index_cleanup: #{e}"
1023
+ end
1024
+ # Setup authorization
1025
+ IndexeaClient.configure do |config|
1026
+ end
1027
+
1028
+ api_instance = IndexeaClient::IndicesApi.new
1029
+ app = 'app_example' # String | 应用标识
1030
+ index = 56 # Integer | 索引编号
1031
+ name = 'name_example' # String | 新索引的名称
1032
+ fields = true # BOOLEAN | 是否复制字段定义
1033
+ queries = true # BOOLEAN | 是否复制所有查询
1034
+ records = true # BOOLEAN | 是否复制所有文档
1035
+
1036
+
1037
+ begin
1038
+ #导出索引数据
1039
+ result = api_instance.index_copy_to(app, index, name, fields, queries, records)
1040
+ p result
1041
+ rescue IndexeaClient::ApiError => e
1042
+ puts "Exception when calling IndicesApi->index_copy_to: #{e}"
1043
+ end
1044
+ # Setup authorization
1045
+ IndexeaClient.configure do |config|
1046
+ end
1047
+
1048
+ api_instance = IndexeaClient::IndicesApi.new
1049
+ body = IndexeaClient::IndexForm.new # IndexForm |
1050
+ app = 'app_example' # String | 应用标识
1051
+
1052
+
1053
+ begin
1054
+ #创建索引
1055
+ result = api_instance.index_create(body, app)
1056
+ p result
1057
+ rescue IndexeaClient::ApiError => e
1058
+ puts "Exception when calling IndicesApi->index_create: #{e}"
1059
+ end
1060
+ # Setup authorization
1061
+ IndexeaClient.configure do |config|
1062
+ end
1063
+
1064
+ api_instance = IndexeaClient::IndicesApi.new
1065
+ body = IndexeaClient::IndexTemplate.new # IndexTemplate |
1066
+
1067
+
1068
+ begin
1069
+ #创建索引模板
1070
+ result = api_instance.index_create_template(body)
1071
+ p result
1072
+ rescue IndexeaClient::ApiError => e
1073
+ puts "Exception when calling IndicesApi->index_create_template: #{e}"
1074
+ end
1075
+ # Setup authorization
1076
+ IndexeaClient.configure do |config|
1077
+ end
1078
+
1079
+ api_instance = IndexeaClient::IndicesApi.new
1080
+ app = 'app_example' # String | 应用标识
1081
+ index = 56 # Integer | 索引编号
1082
+ opts = {
1083
+ vcode: 'vcode_example' # String |
1084
+ }
1085
+
1086
+ begin
1087
+ #删除索引
1088
+ result = api_instance.index_delete(app, index, opts)
1089
+ p result
1090
+ rescue IndexeaClient::ApiError => e
1091
+ puts "Exception when calling IndicesApi->index_delete: #{e}"
1092
+ end
1093
+ # Setup authorization
1094
+ IndexeaClient.configure do |config|
1095
+ end
1096
+
1097
+ api_instance = IndexeaClient::IndicesApi.new
1098
+ app = 'app_example' # String | 应用标识
1099
+ index = 56 # Integer | 索引编号
1100
+
1101
+
1102
+ begin
1103
+ #删除索引的数据爬取任务
1104
+ result = api_instance.index_delete_crawler_task(app, index)
1105
+ p result
1106
+ rescue IndexeaClient::ApiError => e
1107
+ puts "Exception when calling IndicesApi->index_delete_crawler_task: #{e}"
1108
+ end
1109
+ # Setup authorization
1110
+ IndexeaClient.configure do |config|
1111
+ end
1112
+
1113
+ api_instance = IndexeaClient::IndicesApi.new
1114
+ id = 56 # Integer |
1115
+
1116
+
1117
+ begin
1118
+ #删除索引模板
1119
+ result = api_instance.index_delete_template(id)
1120
+ p result
1121
+ rescue IndexeaClient::ApiError => e
1122
+ puts "Exception when calling IndicesApi->index_delete_template: #{e}"
1123
+ end
1124
+ # Setup authorization
1125
+ IndexeaClient.configure do |config|
1126
+ end
1127
+
1128
+ api_instance = IndexeaClient::IndicesApi.new
1129
+ app = 'app_example' # String | 应用标识
1130
+ index = 56 # Integer | 索引编号
1131
+ format = 'json' # String | 导出数据的格式
1132
+
1133
+
1134
+ begin
1135
+ #导出索引数据
1136
+ result = api_instance.index_export(app, index, format)
1137
+ p result
1138
+ rescue IndexeaClient::ApiError => e
1139
+ puts "Exception when calling IndicesApi->index_export: #{e}"
1140
+ end
1141
+ # Setup authorization
1142
+ IndexeaClient.configure do |config|
1143
+ end
1144
+
1145
+ api_instance = IndexeaClient::IndicesApi.new
1146
+ app = 'app_example' # String | 应用标识
1147
+ index = 56 # Integer | 索引编号
1148
+
1149
+
1150
+ begin
1151
+ #刷新索引数据,主要用于将内存中的索引数据写入磁盘
1152
+ result = api_instance.index_flush(app, index)
1153
+ p result
1154
+ rescue IndexeaClient::ApiError => e
1155
+ puts "Exception when calling IndicesApi->index_flush: #{e}"
1156
+ end
1157
+ # Setup authorization
1158
+ IndexeaClient.configure do |config|
1159
+ end
1160
+
1161
+ api_instance = IndexeaClient::IndicesApi.new
1162
+ app = 'app_example' # String | 应用标识
1163
+ index = 56 # Integer | 索引编号
1164
+ type = 'type_example' # String | 设置类型
1165
+ opts = {
1166
+ password: 'password_example' # String |
1167
+ }
1168
+
1169
+ begin
1170
+ #写入设置信息到索引
1171
+ result = api_instance.index_flush_settings(app, index, type, opts)
1172
+ p result
1173
+ rescue IndexeaClient::ApiError => e
1174
+ puts "Exception when calling IndicesApi->index_flush_settings: #{e}"
1175
+ end
1176
+ # Setup authorization
1177
+ IndexeaClient.configure do |config|
1178
+ end
1179
+
1180
+ api_instance = IndexeaClient::IndicesApi.new
1181
+ app = 'app_example' # String | 应用标识
1182
+ index = 56 # Integer | 索引编号
1183
+
1184
+
1185
+ begin
1186
+ #获取单个索引详情
1187
+ result = api_instance.index_get(app, index)
1188
+ p result
1189
+ rescue IndexeaClient::ApiError => e
1190
+ puts "Exception when calling IndicesApi->index_get: #{e}"
1191
+ end
1192
+ # Setup authorization
1193
+ IndexeaClient.configure do |config|
1194
+ end
1195
+
1196
+ api_instance = IndexeaClient::IndicesApi.new
1197
+ app = 'app_example' # String | 应用标识
1198
+ index = 56 # Integer | 索引编号
1199
+ from = 56 # Integer |
1200
+ size = 56 # Integer |
1201
+
1202
+
1203
+ begin
1204
+ #获取索引的爬虫任务的爬取日志
1205
+ result = api_instance.index_get_crawler_logs(app, index, from, size)
1206
+ p result
1207
+ rescue IndexeaClient::ApiError => e
1208
+ puts "Exception when calling IndicesApi->index_get_crawler_logs: #{e}"
1209
+ end
1210
+ # Setup authorization
1211
+ IndexeaClient.configure do |config|
1212
+ end
1213
+
1214
+ api_instance = IndexeaClient::IndicesApi.new
1215
+ app = 'app_example' # String | 应用标识
1216
+ index = 56 # Integer | 索引编号
1217
+
1218
+
1219
+ begin
1220
+ #获取索引的爬虫任务设定
1221
+ result = api_instance.index_get_crawler_task(app, index)
1222
+ p result
1223
+ rescue IndexeaClient::ApiError => e
1224
+ puts "Exception when calling IndicesApi->index_get_crawler_task: #{e}"
1225
+ end
1226
+ # Setup authorization
1227
+ IndexeaClient.configure do |config|
1228
+ end
1229
+
1230
+ api_instance = IndexeaClient::IndicesApi.new
1231
+ app = 'app_example' # String | 应用标识
1232
+ index = 56 # Integer | 索引编号
1233
+ type = 'type_example' # String | 设置类型
1234
+
1235
+
1236
+ begin
1237
+ #获取索引设置信息
1238
+ result = api_instance.index_get_filter_settings(app, index, type)
1239
+ p result
1240
+ rescue IndexeaClient::ApiError => e
1241
+ puts "Exception when calling IndicesApi->index_get_filter_settings: #{e}"
1242
+ end
1243
+ # Setup authorization
1244
+ IndexeaClient.configure do |config|
1245
+ end
1246
+
1247
+ api_instance = IndexeaClient::IndicesApi.new
1248
+ app = 'app_example' # String | 应用标识
1249
+ index = 56 # Integer | 索引编号
1250
+ type = 'type_example' # String | 设置类型
1251
+
1252
+
1253
+ begin
1254
+ #获取索引设置信息
1255
+ result = api_instance.index_get_settings(app, index, type)
1256
+ p result
1257
+ rescue IndexeaClient::ApiError => e
1258
+ puts "Exception when calling IndicesApi->index_get_settings: #{e}"
1259
+ end
1260
+ # Setup authorization
1261
+ IndexeaClient.configure do |config|
1262
+ end
1263
+
1264
+ api_instance = IndexeaClient::IndicesApi.new
1265
+ app = 'app_example' # String | 应用标识
1266
+ opts = {
1267
+ stat: true # BOOLEAN | 是否包含索引的统计信息
1268
+ }
1269
+
1270
+ begin
1271
+ #获取应用的索引列表
1272
+ result = api_instance.index_list(app, opts)
1273
+ p result
1274
+ rescue IndexeaClient::ApiError => e
1275
+ puts "Exception when calling IndicesApi->index_list: #{e}"
1276
+ end
1277
+ # Setup authorization
1278
+ IndexeaClient.configure do |config|
1279
+ end
1280
+
1281
+ api_instance = IndexeaClient::IndicesApi.new
1282
+ from = 0 # Integer |
1283
+ size = 100 # Integer |
1284
+
1285
+
1286
+ begin
1287
+ #获取所有可用的索引模板
1288
+ result = api_instance.index_list_templates(from, size)
1289
+ p result
1290
+ rescue IndexeaClient::ApiError => e
1291
+ puts "Exception when calling IndicesApi->index_list_templates: #{e}"
1292
+ end
1293
+ # Setup authorization
1294
+ IndexeaClient.configure do |config|
1295
+ end
1296
+
1297
+ api_instance = IndexeaClient::IndicesApi.new
1298
+ type = 'type_example' # String |
1299
+ url = 'url_example' # String |
1300
+
1301
+
1302
+ begin
1303
+ #获取目标网站内容预览
1304
+ result = api_instance.index_prefetch(type, url)
1305
+ p result
1306
+ rescue IndexeaClient::ApiError => e
1307
+ puts "Exception when calling IndicesApi->index_prefetch: #{e}"
1308
+ end
1309
+ # Setup authorization
1310
+ IndexeaClient.configure do |config|
1311
+ end
1312
+
1313
+ api_instance = IndexeaClient::IndicesApi.new
1314
+ body = IndexeaClient::IndexRebuildForm.new # IndexRebuildForm |
1315
+ app = 'app_example' # String | 应用标识
1316
+ index = 56 # Integer | 索引编号
1317
+
1318
+
1319
+ begin
1320
+ #重建索引数据
1321
+ result = api_instance.index_rebuild(body, app, index)
1322
+ p result
1323
+ rescue IndexeaClient::ApiError => e
1324
+ puts "Exception when calling IndicesApi->index_rebuild: #{e}"
1325
+ end
1326
+ # Setup authorization
1327
+ IndexeaClient.configure do |config|
1328
+ end
1329
+
1330
+ api_instance = IndexeaClient::IndicesApi.new
1331
+ app = 'app_example' # String | 应用标识
1332
+ index = 56 # Integer | 索引编号
1333
+ task_id = 0 # Integer | 任务编号,传0则获取最新的任务信息
1334
+
1335
+
1336
+ begin
1337
+ #获取重建索引任务的详情
1338
+ result = api_instance.index_rebuild_task(app, index, task_id)
1339
+ p result
1340
+ rescue IndexeaClient::ApiError => e
1341
+ puts "Exception when calling IndicesApi->index_rebuild_task: #{e}"
1342
+ end
1343
+ # Setup authorization
1344
+ IndexeaClient.configure do |config|
1345
+ end
1346
+
1347
+ api_instance = IndexeaClient::IndicesApi.new
1348
+ body = IndexeaClient::CrawlerTask.new # CrawlerTask |
1349
+ app = 'app_example' # String | 应用标识
1350
+ index = 56 # Integer | 索引编号
1351
+
1352
+
1353
+ begin
1354
+ #提交或者更新索引的数据爬取任务
1355
+ result = api_instance.index_submit_crawler_task(body, app, index)
1356
+ p result
1357
+ rescue IndexeaClient::ApiError => e
1358
+ puts "Exception when calling IndicesApi->index_submit_crawler_task: #{e}"
1359
+ end
1360
+ # Setup authorization
1361
+ IndexeaClient.configure do |config|
1362
+ end
1363
+
1364
+ api_instance = IndexeaClient::IndicesApi.new
1365
+ body = IndexeaClient::IndexForm.new # IndexForm |
1366
+ app = 'app_example' # String | 应用标识
1367
+ index = 56 # Integer | 索引编号
1368
+
1369
+
1370
+ begin
1371
+ #修改索引
1372
+ result = api_instance.index_update(body, app, index)
1373
+ p result
1374
+ rescue IndexeaClient::ApiError => e
1375
+ puts "Exception when calling IndicesApi->index_update: #{e}"
1376
+ end
1377
+ # Setup authorization
1378
+ IndexeaClient.configure do |config|
1379
+ end
1380
+
1381
+ api_instance = IndexeaClient::IndicesApi.new
1382
+ app = 'app_example' # String | 应用标识
1383
+ index = 56 # Integer | 索引编号
1384
+ type = 'type_example' # String | 设置类型
1385
+ opts = {
1386
+ body: 'body_example' # String |
1387
+ }
1388
+
1389
+ begin
1390
+ #更新索引设置信息
1391
+ result = api_instance.index_update_settings(app, index, type, opts)
1392
+ p result
1393
+ rescue IndexeaClient::ApiError => e
1394
+ puts "Exception when calling IndicesApi->index_update_settings: #{e}"
1395
+ end
1396
+ # Setup authorization
1397
+ IndexeaClient.configure do |config|
1398
+ end
1399
+
1400
+ api_instance = IndexeaClient::IndicesApi.new
1401
+ body = IndexeaClient::IndexTemplate.new # IndexTemplate |
1402
+
1403
+
1404
+ begin
1405
+ #修改索引模板
1406
+ result = api_instance.index_update_template(body)
1407
+ p result
1408
+ rescue IndexeaClient::ApiError => e
1409
+ puts "Exception when calling IndicesApi->index_update_template: #{e}"
1410
+ end
1411
+ # Setup authorization
1412
+ IndexeaClient.configure do |config|
1413
+ end
1414
+
1415
+ api_instance = IndexeaClient::IndicesApi.new
1416
+ body = IndexeaClient::SynonymsBean.new # SynonymsBean |
1417
+ app = 'app_example' # String | 应用标识
1418
+ index = 56 # Integer | 索引编号
1419
+
1420
+
1421
+ begin
1422
+ #添加同义词
1423
+ result = api_instance.synonyms_add(body, app, index)
1424
+ p result
1425
+ rescue IndexeaClient::ApiError => e
1426
+ puts "Exception when calling IndicesApi->synonyms_add: #{e}"
1427
+ end
1428
+ # Setup authorization
1429
+ IndexeaClient.configure do |config|
1430
+ end
1431
+
1432
+ api_instance = IndexeaClient::IndicesApi.new
1433
+ app = 'app_example' # String | 应用标识
1434
+ index = 56 # Integer | 索引编号
1435
+ id = 56 # Integer | 同义词编号
1436
+
1437
+
1438
+ begin
1439
+ #删除同义词
1440
+ result = api_instance.synonyms_delete(app, index, id)
1441
+ p result
1442
+ rescue IndexeaClient::ApiError => e
1443
+ puts "Exception when calling IndicesApi->synonyms_delete: #{e}"
1444
+ end
1445
+ # Setup authorization
1446
+ IndexeaClient.configure do |config|
1447
+ end
1448
+
1449
+ api_instance = IndexeaClient::IndicesApi.new
1450
+ app = 'app_example' # String | 应用标识
1451
+ index = 56 # Integer | 索引编号
1452
+ id = 56 # Integer | 同义词编号
1453
+ opts = {
1454
+ enable: true, # BOOLEAN | 是否启用
1455
+ all: true # BOOLEAN | 是否对所有索引起作用
1456
+ }
1457
+
1458
+ begin
1459
+ #启用禁用同义词
1460
+ result = api_instance.synonyms_enable(app, index, id, opts)
1461
+ p result
1462
+ rescue IndexeaClient::ApiError => e
1463
+ puts "Exception when calling IndicesApi->synonyms_enable: #{e}"
1464
+ end
1465
+ # Setup authorization
1466
+ IndexeaClient.configure do |config|
1467
+ end
1468
+
1469
+ api_instance = IndexeaClient::IndicesApi.new
1470
+ app = 'app_example' # String | 应用标识
1471
+ index = 56 # Integer | 索引编号
1472
+ opts = {
1473
+ password: 'password_example' # String |
1474
+ }
1475
+
1476
+ begin
1477
+ #将同义词更新到搜索引擎的同义词表
1478
+ result = api_instance.synonyms_flush(app, index, opts)
1479
+ p result
1480
+ rescue IndexeaClient::ApiError => e
1481
+ puts "Exception when calling IndicesApi->synonyms_flush: #{e}"
1482
+ end
1483
+ # Setup authorization
1484
+ IndexeaClient.configure do |config|
1485
+ end
1486
+
1487
+ api_instance = IndexeaClient::IndicesApi.new
1488
+ body = [IndexeaClient::SynonymsBean.new] # Array<SynonymsBean> |
1489
+ app = 'app_example' # String | 应用标识
1490
+ index = 56 # Integer | 索引编号
1491
+ action = 56 # Integer | 覆盖方式
1492
+
1493
+
1494
+ begin
1495
+ #导入同义词
1496
+ result = api_instance.synonyms_import(body, app, index, action)
1497
+ p result
1498
+ rescue IndexeaClient::ApiError => e
1499
+ puts "Exception when calling IndicesApi->synonyms_import: #{e}"
1500
+ end
1501
+ # Setup authorization
1502
+ IndexeaClient.configure do |config|
1503
+ end
1504
+
1505
+ api_instance = IndexeaClient::IndicesApi.new
1506
+ app = 'app_example' # String | 应用标识
1507
+ index = 56 # Integer | 索引编号
1508
+ size = 99999 # Integer |
1509
+ opts = {
1510
+ type: 0, # Integer | 类型
1511
+ from: 0 # Integer |
1512
+ }
1513
+
1514
+ begin
1515
+ #获取索引的所有同义词
1516
+ result = api_instance.synonyms_list(app, index, size, opts)
1517
+ p result
1518
+ rescue IndexeaClient::ApiError => e
1519
+ puts "Exception when calling IndicesApi->synonyms_list: #{e}"
1520
+ end
1521
+ # Setup authorization
1522
+ IndexeaClient.configure do |config|
1523
+ end
1524
+
1525
+ api_instance = IndexeaClient::IndicesApi.new
1526
+ body = IndexeaClient::SynonymsBean.new # SynonymsBean |
1527
+ app = 'app_example' # String | 应用标识
1528
+ index = 56 # Integer | 索引编号
1529
+
1530
+
1531
+ begin
1532
+ #修改同义词
1533
+ result = api_instance.synonyms_update(body, app, index)
1534
+ p result
1535
+ rescue IndexeaClient::ApiError => e
1536
+ puts "Exception when calling IndicesApi->synonyms_update: #{e}"
1537
+ end
1538
+ # Setup authorization
1539
+ IndexeaClient.configure do |config|
1540
+ end
1541
+
1542
+ api_instance = IndexeaClient::MessageApi.new
1543
+ id = 56 # Integer | 消息编号
1544
+
1545
+
1546
+ begin
1547
+ #删除消息
1548
+ result = api_instance.message_delete(id)
1549
+ p result
1550
+ rescue IndexeaClient::ApiError => e
1551
+ puts "Exception when calling MessageApi->message_delete: #{e}"
1552
+ end
1553
+ # Setup authorization
1554
+ IndexeaClient.configure do |config|
1555
+ end
1556
+
1557
+ api_instance = IndexeaClient::MessageApi.new
1558
+ content = 'content_example' # String |
1559
+ type = 'type_example' # String |
1560
+
1561
+
1562
+ begin
1563
+ #反馈意见
1564
+ result = api_instance.message_feedback(content, type)
1565
+ p result
1566
+ rescue IndexeaClient::ApiError => e
1567
+ puts "Exception when calling MessageApi->message_feedback: #{e}"
1568
+ end
1569
+ # Setup authorization
1570
+ IndexeaClient.configure do |config|
1571
+ end
1572
+
1573
+ api_instance = IndexeaClient::MessageApi.new
1574
+ scope = 'unread' # String |
1575
+ size = 10 # Integer | 消息数量
1576
+ opts = {
1577
+ from: 0 # Integer | 用于翻页的起始位置
1578
+ }
1579
+
1580
+ begin
1581
+ #获取我相关的消息信息,包括未读消息数量、最新消息等
1582
+ result = api_instance.message_list(scope, size, opts)
1583
+ p result
1584
+ rescue IndexeaClient::ApiError => e
1585
+ puts "Exception when calling MessageApi->message_list: #{e}"
1586
+ end
1587
+ # Setup authorization
1588
+ IndexeaClient.configure do |config|
1589
+ end
1590
+
1591
+ api_instance = IndexeaClient::MessageApi.new
1592
+ id = 'id_example' # String | 消息编号,多个消息使用逗号隔开
1593
+
1594
+
1595
+ begin
1596
+ #标识消息为已读
1597
+ result = api_instance.message_read(id)
1598
+ p result
1599
+ rescue IndexeaClient::ApiError => e
1600
+ puts "Exception when calling MessageApi->message_read: #{e}"
1601
+ end
1602
+ # Setup authorization
1603
+ IndexeaClient.configure do |config|
1604
+ end
1605
+
1606
+ api_instance = IndexeaClient::MessageApi.new
1607
+ receiver = 56 # Integer |
1608
+ msg = 'msg_example' # String |
1609
+
1610
+
1611
+ begin
1612
+ #发送消息
1613
+ result = api_instance.message_send(receiver, msg)
1614
+ p result
1615
+ rescue IndexeaClient::ApiError => e
1616
+ puts "Exception when calling MessageApi->message_send: #{e}"
1617
+ end
1618
+
1619
+ api_instance = IndexeaClient::PaymentApi.new
1620
+
1621
+ begin
1622
+ #接受支付宝的支付结果
1623
+ api_instance.payment_alipay
1624
+ rescue IndexeaClient::ApiError => e
1625
+ puts "Exception when calling PaymentApi->payment_alipay: #{e}"
1626
+ end
1627
+
1628
+ api_instance = IndexeaClient::PaymentApi.new
1629
+
1630
+ begin
1631
+ #支付宝平台支付完毕后调整到该接口
1632
+ api_instance.payment_alipay_return
1633
+ rescue IndexeaClient::ApiError => e
1634
+ puts "Exception when calling PaymentApi->payment_alipay_return: #{e}"
1635
+ end
1636
+ # Setup authorization
1637
+ IndexeaClient.configure do |config|
1638
+ end
1639
+
1640
+ api_instance = IndexeaClient::PaymentApi.new
1641
+ body = ['body_example'] # Array<String> | 申请开发票的订单编号列表
1642
+ app = 'app_example' # String | 应用标识
1643
+ type = 1 # Integer | 发票类型
1644
+
1645
+
1646
+ begin
1647
+ #申请发票
1648
+ result = api_instance.payment_apply_invoice(body, app, type)
1649
+ p result
1650
+ rescue IndexeaClient::ApiError => e
1651
+ puts "Exception when calling PaymentApi->payment_apply_invoice: #{e}"
1652
+ end
1653
+ # Setup authorization
1654
+ IndexeaClient.configure do |config|
1655
+ end
1656
+
1657
+ api_instance = IndexeaClient::PaymentApi.new
1658
+ app = 'app_example' # String | 应用标识
1659
+ ident = 'ident_example' # String | 订单号
1660
+ type = 'type_example' # String | 支付方式
1661
+
1662
+
1663
+ begin
1664
+ #支付订单
1665
+ result = api_instance.payment_begin_pay(app, ident, type)
1666
+ p result
1667
+ rescue IndexeaClient::ApiError => e
1668
+ puts "Exception when calling PaymentApi->payment_begin_pay: #{e}"
1669
+ end
1670
+ # Setup authorization
1671
+ IndexeaClient.configure do |config|
1672
+ end
1673
+
1674
+ api_instance = IndexeaClient::PaymentApi.new
1675
+ body = IndexeaClient::PaymentService.new # PaymentService |
1676
+ app = 'app_example' # String | 应用标识
1677
+
1678
+
1679
+ begin
1680
+ #下单购买
1681
+ result = api_instance.payment_buy(body, app)
1682
+ p result
1683
+ rescue IndexeaClient::ApiError => e
1684
+ puts "Exception when calling PaymentApi->payment_buy: #{e}"
1685
+ end
1686
+ # Setup authorization
1687
+ IndexeaClient.configure do |config|
1688
+ end
1689
+
1690
+ api_instance = IndexeaClient::PaymentApi.new
1691
+ app = 'app_example' # String | 应用标识
1692
+ id = 56 # Integer | 发票编号
1693
+
1694
+
1695
+ begin
1696
+ #删除发票
1697
+ result = api_instance.payment_delete_invoice(app, id)
1698
+ p result
1699
+ rescue IndexeaClient::ApiError => e
1700
+ puts "Exception when calling PaymentApi->payment_delete_invoice: #{e}"
1701
+ end
1702
+ # Setup authorization
1703
+ IndexeaClient.configure do |config|
1704
+ end
1705
+
1706
+ api_instance = IndexeaClient::PaymentApi.new
1707
+ app = 'app_example' # String | 应用标识
1708
+ ident = 'ident_example' # String | 订单号
1709
+
1710
+
1711
+ begin
1712
+ #取消订单
1713
+ result = api_instance.payment_delete_order(app, ident)
1714
+ p result
1715
+ rescue IndexeaClient::ApiError => e
1716
+ puts "Exception when calling PaymentApi->payment_delete_order: #{e}"
1717
+ end
1718
+ # Setup authorization
1719
+ IndexeaClient.configure do |config|
1720
+ end
1721
+
1722
+ api_instance = IndexeaClient::PaymentApi.new
1723
+ app = 'app_example' # String | 应用标识
1724
+
1725
+
1726
+ begin
1727
+ #获取发票列表
1728
+ result = api_instance.payment_invoices(app)
1729
+ p result
1730
+ rescue IndexeaClient::ApiError => e
1731
+ puts "Exception when calling PaymentApi->payment_invoices: #{e}"
1732
+ end
1733
+ # Setup authorization
1734
+ IndexeaClient.configure do |config|
1735
+ end
1736
+
1737
+ api_instance = IndexeaClient::PaymentApi.new
1738
+ app = 'app_example' # String | 应用标识
1739
+ ident = 'ident_example' # String | 订单号
1740
+
1741
+
1742
+ begin
1743
+ #获取订单详情
1744
+ result = api_instance.payment_order(app, ident)
1745
+ p result
1746
+ rescue IndexeaClient::ApiError => e
1747
+ puts "Exception when calling PaymentApi->payment_order: #{e}"
1748
+ end
1749
+ # Setup authorization
1750
+ IndexeaClient.configure do |config|
1751
+ end
1752
+
1753
+ api_instance = IndexeaClient::PaymentApi.new
1754
+ app = 'app_example' # String | 应用标识
1755
+
1756
+
1757
+ begin
1758
+ #订单列表
1759
+ result = api_instance.payment_orders(app)
1760
+ p result
1761
+ rescue IndexeaClient::ApiError => e
1762
+ puts "Exception when calling PaymentApi->payment_orders: #{e}"
1763
+ end
1764
+ # Setup authorization
1765
+ IndexeaClient.configure do |config|
1766
+ end
1767
+
1768
+ api_instance = IndexeaClient::PaymentApi.new
1769
+ app = 'app_example' # String | 应用标识
1770
+
1771
+
1772
+ begin
1773
+ #获取未曾开票的订单列表
1774
+ result = api_instance.payment_orders_without_invoice(app)
1775
+ p result
1776
+ rescue IndexeaClient::ApiError => e
1777
+ puts "Exception when calling PaymentApi->payment_orders_without_invoice: #{e}"
1778
+ end
1779
+ # Setup authorization
1780
+ IndexeaClient.configure do |config|
1781
+ end
1782
+
1783
+ api_instance = IndexeaClient::PaymentApi.new
1784
+ app = 'app_example' # String | 应用标识
1785
+ service = IndexeaClient::PaymentService.new # PaymentService | 配额信息
1786
+
1787
+
1788
+ begin
1789
+ #获取套餐价格
1790
+ result = api_instance.payment_price(app, service)
1791
+ p result
1792
+ rescue IndexeaClient::ApiError => e
1793
+ puts "Exception when calling PaymentApi->payment_price: #{e}"
1794
+ end
1795
+ # Setup authorization
1796
+ IndexeaClient.configure do |config|
1797
+ end
1798
+
1799
+ api_instance = IndexeaClient::PaymentApi.new
1800
+ app = 'app_example' # String | 应用标识
1801
+ ident = 'ident_example' # String | 订单号
1802
+ id = 56 # Integer | 回执编号
1803
+
1804
+
1805
+ begin
1806
+ #获取订单回执图片
1807
+ result = api_instance.payment_receipt(app, ident, id)
1808
+ p result
1809
+ rescue IndexeaClient::ApiError => e
1810
+ puts "Exception when calling PaymentApi->payment_receipt: #{e}"
1811
+ end
1812
+ # Setup authorization
1813
+ IndexeaClient.configure do |config|
1814
+ end
1815
+
1816
+ api_instance = IndexeaClient::PaymentApi.new
1817
+ body = IndexeaClient::ContactForm.new # ContactForm | 客户联系信息
1818
+ app = 'app_example' # String | 应用标识
1819
+
1820
+
1821
+ begin
1822
+ #联系销售获取私有化报价
1823
+ result = api_instance.payment_request_contact(body, app)
1824
+ p result
1825
+ rescue IndexeaClient::ApiError => e
1826
+ puts "Exception when calling PaymentApi->payment_request_contact: #{e}"
1827
+ end
1828
+ # Setup authorization
1829
+ IndexeaClient.configure do |config|
1830
+ end
1831
+
1832
+ api_instance = IndexeaClient::PaymentApi.new
1833
+ receipt = 'receipt_example' # String |
1834
+ app = 'app_example' # String | 应用标识
1835
+ ident = 'ident_example' # String | 订单号
1836
+
1837
+
1838
+ begin
1839
+ #上传转账回执
1840
+ result = api_instance.payment_upload_receipt(receipt, app, ident)
1841
+ p result
1842
+ rescue IndexeaClient::ApiError => e
1843
+ puts "Exception when calling PaymentApi->payment_upload_receipt: #{e}"
1844
+ end
1845
+
1846
+ api_instance = IndexeaClient::PaymentApi.new
1847
+
1848
+ begin
1849
+ #接受微信支付的支付结果
1850
+ api_instance.payment_wepay
1851
+ rescue IndexeaClient::ApiError => e
1852
+ puts "Exception when calling PaymentApi->payment_wepay: #{e}"
1853
+ end
1854
+ # Setup authorization
1855
+ IndexeaClient.configure do |config|
1856
+ end
1857
+
1858
+ api_instance = IndexeaClient::QueriesApi.new
1859
+ body = IndexeaClient::AnalyzeObject.new # AnalyzeObject |
1860
+ app = 'app_example' # String | 应用标识
1861
+ opts = {
1862
+ index: IndexeaClient::BigDecimal.new # BigDecimal | 索引编号,如果指定索引编号则使用索引的分词器
1863
+ }
1864
+
1865
+ begin
1866
+ #分词测试
1867
+ result = api_instance.query_analyze(body, app, opts)
1868
+ p result
1869
+ rescue IndexeaClient::ApiError => e
1870
+ puts "Exception when calling QueriesApi->query_analyze: #{e}"
1871
+ end
1872
+ # Setup authorization
1873
+ IndexeaClient.configure do |config|
1874
+ end
1875
+
1876
+ api_instance = IndexeaClient::QueriesApi.new
1877
+ app = 'app_example' # String | 应用标识
1878
+ query = 56 # Integer | 源查询编号
1879
+
1880
+
1881
+ begin
1882
+ #复制指定查询并创建新查询
1883
+ result = api_instance.query_copy(app, query)
1884
+ p result
1885
+ rescue IndexeaClient::ApiError => e
1886
+ puts "Exception when calling QueriesApi->query_copy: #{e}"
1887
+ end
1888
+ # Setup authorization
1889
+ IndexeaClient.configure do |config|
1890
+ end
1891
+
1892
+ api_instance = IndexeaClient::QueriesApi.new
1893
+ app = 'app_example' # String | 应用标识
1894
+ query = 56 # Integer | 源查询编号
1895
+ to = 56 # Integer | 目标查询编号
1896
+
1897
+
1898
+ begin
1899
+ #复制查询到已有查询
1900
+ result = api_instance.query_copy_to_query(app, query, to)
1901
+ p result
1902
+ rescue IndexeaClient::ApiError => e
1903
+ puts "Exception when calling QueriesApi->query_copy_to_query: #{e}"
1904
+ end
1905
+ # Setup authorization
1906
+ IndexeaClient.configure do |config|
1907
+ end
1908
+
1909
+ api_instance = IndexeaClient::QueriesApi.new
1910
+ body = IndexeaClient::QueryForm.new # QueryForm |
1911
+ app = 'app_example' # String | 应用标识
1912
+
1913
+
1914
+ begin
1915
+ #创建搜索
1916
+ result = api_instance.query_create(body, app)
1917
+ p result
1918
+ rescue IndexeaClient::ApiError => e
1919
+ puts "Exception when calling QueriesApi->query_create: #{e}"
1920
+ end
1921
+ # Setup authorization
1922
+ IndexeaClient.configure do |config|
1923
+ end
1924
+
1925
+ api_instance = IndexeaClient::QueriesApi.new
1926
+ body = IndexeaClient::KeywordBindingBean.new # KeywordBindingBean |
1927
+ app = 'app_example' # String | 应用标识
1928
+ query = 56 # Integer | 查询编号
1929
+
1930
+
1931
+ begin
1932
+ #创建新的关键词文档绑定
1933
+ result = api_instance.query_create_keyword_bindings(body, app, query)
1934
+ p result
1935
+ rescue IndexeaClient::ApiError => e
1936
+ puts "Exception when calling QueriesApi->query_create_keyword_bindings: #{e}"
1937
+ end
1938
+ # Setup authorization
1939
+ IndexeaClient.configure do |config|
1940
+ end
1941
+
1942
+ api_instance = IndexeaClient::QueriesApi.new
1943
+ body = IndexeaClient::QueryVariableBean.new # QueryVariableBean |
1944
+ app = 'app_example' # String | 应用标识
1945
+
1946
+
1947
+ begin
1948
+ #创建新的预定义查询变量
1949
+ result = api_instance.query_create_variable(body, app)
1950
+ p result
1951
+ rescue IndexeaClient::ApiError => e
1952
+ puts "Exception when calling QueriesApi->query_create_variable: #{e}"
1953
+ end
1954
+ # Setup authorization
1955
+ IndexeaClient.configure do |config|
1956
+ end
1957
+
1958
+ api_instance = IndexeaClient::QueriesApi.new
1959
+ app = 'app_example' # String | 应用标识
1960
+ query = 56 # Integer | 查询编号
1961
+
1962
+
1963
+ begin
1964
+ #删除搜索
1965
+ result = api_instance.query_delete(app, query)
1966
+ p result
1967
+ rescue IndexeaClient::ApiError => e
1968
+ puts "Exception when calling QueriesApi->query_delete: #{e}"
1969
+ end
1970
+ # Setup authorization
1971
+ IndexeaClient.configure do |config|
1972
+ end
1973
+
1974
+ api_instance = IndexeaClient::QueriesApi.new
1975
+ app = 'app_example' # String | 应用标识
1976
+ query = 56 # Integer | 查询编号
1977
+ id = 56 # Integer | 关键词编号
1978
+
1979
+
1980
+ begin
1981
+ #删除关键词文档绑定
1982
+ result = api_instance.query_delete_keyword_bindings(app, query, id)
1983
+ p result
1984
+ rescue IndexeaClient::ApiError => e
1985
+ puts "Exception when calling QueriesApi->query_delete_keyword_bindings: #{e}"
1986
+ end
1987
+ # Setup authorization
1988
+ IndexeaClient.configure do |config|
1989
+ end
1990
+
1991
+ api_instance = IndexeaClient::QueriesApi.new
1992
+ app = 'app_example' # String | 应用标识
1993
+ query = 56 # Integer | 查询编号
1994
+
1995
+
1996
+ begin
1997
+ #清除查询条件的节点位置信息
1998
+ result = api_instance.query_delete_node_positions(app, query)
1999
+ p result
2000
+ rescue IndexeaClient::ApiError => e
2001
+ puts "Exception when calling QueriesApi->query_delete_node_positions: #{e}"
2002
+ end
2003
+ # Setup authorization
2004
+ IndexeaClient.configure do |config|
2005
+ end
2006
+
2007
+ api_instance = IndexeaClient::QueriesApi.new
2008
+ app = 'app_example' # String | 应用标识
2009
+ id = 56 # Integer | 自定义查询变量编号
2010
+
2011
+
2012
+ begin
2013
+ #删除预定义查询变量
2014
+ result = api_instance.query_delete_variable(app, id)
2015
+ p result
2016
+ rescue IndexeaClient::ApiError => e
2017
+ puts "Exception when calling QueriesApi->query_delete_variable: #{e}"
2018
+ end
2019
+ # Setup authorization
2020
+ IndexeaClient.configure do |config|
2021
+ end
2022
+
2023
+ api_instance = IndexeaClient::QueriesApi.new
2024
+ app = 'app_example' # String | 应用标识
2025
+ query = 56 # Integer | 查询编号
2026
+
2027
+
2028
+ begin
2029
+ #获取查询关联的所有索引的字段信息
2030
+ result = api_instance.query_fields(app, query)
2031
+ p result
2032
+ rescue IndexeaClient::ApiError => e
2033
+ puts "Exception when calling QueriesApi->query_fields: #{e}"
2034
+ end
2035
+ # Setup authorization
2036
+ IndexeaClient.configure do |config|
2037
+ end
2038
+
2039
+ api_instance = IndexeaClient::QueriesApi.new
2040
+ app = 'app_example' # String | 应用标识
2041
+ query = 56 # Integer | 查询编号
2042
+
2043
+
2044
+ begin
2045
+ #获取查询的详情
2046
+ result = api_instance.query_get(app, query)
2047
+ p result
2048
+ rescue IndexeaClient::ApiError => e
2049
+ puts "Exception when calling QueriesApi->query_get: #{e}"
2050
+ end
2051
+ # Setup authorization
2052
+ IndexeaClient.configure do |config|
2053
+ end
2054
+
2055
+ api_instance = IndexeaClient::QueriesApi.new
2056
+ app = 'app_example' # String | 应用标识
2057
+ query = 56 # Integer | 查询编号
2058
+
2059
+
2060
+ begin
2061
+ #获取查询条件的节点位置信息
2062
+ result = api_instance.query_get_node_positions(app, query)
2063
+ p result
2064
+ rescue IndexeaClient::ApiError => e
2065
+ puts "Exception when calling QueriesApi->query_get_node_positions: #{e}"
2066
+ end
2067
+ # Setup authorization
2068
+ IndexeaClient.configure do |config|
2069
+ end
2070
+
2071
+ api_instance = IndexeaClient::QueriesApi.new
2072
+ app = 'app_example' # String | 应用标识
2073
+ query = 56 # Integer | 查询编号
2074
+ _id = '_id_example' # String | 记录 _id 值
2075
+
2076
+
2077
+ begin
2078
+ #获取记录的详情
2079
+ result = api_instance.query_get_record(app, query, _id)
2080
+ p result
2081
+ rescue IndexeaClient::ApiError => e
2082
+ puts "Exception when calling QueriesApi->query_get_record: #{e}"
2083
+ end
2084
+ # Setup authorization
2085
+ IndexeaClient.configure do |config|
2086
+ end
2087
+
2088
+ api_instance = IndexeaClient::QueriesApi.new
2089
+ app = 'app_example' # String | 应用标识
2090
+ query = 56 # Integer | 查询编号
2091
+
2092
+
2093
+ begin
2094
+ #获取查询的关键词文档绑定列表
2095
+ result = api_instance.query_keyword_bindings(app, query)
2096
+ p result
2097
+ rescue IndexeaClient::ApiError => e
2098
+ puts "Exception when calling QueriesApi->query_keyword_bindings: #{e}"
2099
+ end
2100
+ # Setup authorization
2101
+ IndexeaClient.configure do |config|
2102
+ end
2103
+
2104
+ api_instance = IndexeaClient::QueriesApi.new
2105
+ app = 'app_example' # String | 应用标识
2106
+ opts = {
2107
+ index: 56 # Integer | 索引编号
2108
+ }
2109
+
2110
+ begin
2111
+ #获取应用下所有索引下的查询列表(按索引进行分组)
2112
+ result = api_instance.query_list(app, opts)
2113
+ p result
2114
+ rescue IndexeaClient::ApiError => e
2115
+ puts "Exception when calling QueriesApi->query_list: #{e}"
2116
+ end
2117
+ # Setup authorization
2118
+ IndexeaClient.configure do |config|
2119
+ end
2120
+
2121
+ api_instance = IndexeaClient::QueriesApi.new
2122
+ app = 'app_example' # String | 应用标识
2123
+ query = 56 # Integer | 记录编号
2124
+ opts = {
2125
+ q: 'q_example' # String | 诊断关键字
2126
+ }
2127
+
2128
+ begin
2129
+ #获取搜索诊断信息
2130
+ result = api_instance.query_profile(app, query, opts)
2131
+ p result
2132
+ rescue IndexeaClient::ApiError => e
2133
+ puts "Exception when calling QueriesApi->query_profile: #{e}"
2134
+ end
2135
+ # Setup authorization
2136
+ IndexeaClient.configure do |config|
2137
+ end
2138
+
2139
+ api_instance = IndexeaClient::QueriesApi.new
2140
+ app = 'app_example' # String | 应用标识
2141
+ id = 56 # Integer | 关键词绑定编号
2142
+
2143
+
2144
+ begin
2145
+ #获取关键词绑定对应的记录列表
2146
+ result = api_instance.query_records_of_keyword_binding(app, id)
2147
+ p result
2148
+ rescue IndexeaClient::ApiError => e
2149
+ puts "Exception when calling QueriesApi->query_records_of_keyword_binding: #{e}"
2150
+ end
2151
+ # Setup authorization
2152
+ IndexeaClient.configure do |config|
2153
+ end
2154
+
2155
+ api_instance = IndexeaClient::QueriesApi.new
2156
+ app = 'app_example' # String | 应用标识
2157
+ query = 56 # Integer | 查询编号
2158
+ opts = {
2159
+ fields: ['fields_example'] # Array<String> | 字段列表
2160
+ }
2161
+
2162
+ begin
2163
+ #设置索引智能匹配字段
2164
+ result = api_instance.query_save_intelligent_mappings(app, query, opts)
2165
+ p result
2166
+ rescue IndexeaClient::ApiError => e
2167
+ puts "Exception when calling QueriesApi->query_save_intelligent_mappings: #{e}"
2168
+ end
2169
+ # Setup authorization
2170
+ IndexeaClient.configure do |config|
2171
+ end
2172
+
2173
+ api_instance = IndexeaClient::QueriesApi.new
2174
+ body = nil # Object |
2175
+ app = 'app_example' # String | 应用标识
2176
+ query = 56 # Integer | 查询编号
2177
+
2178
+
2179
+ begin
2180
+ #保存查询条件的节点位置信息
2181
+ result = api_instance.query_save_node_positions(body, app, query)
2182
+ p result
2183
+ rescue IndexeaClient::ApiError => e
2184
+ puts "Exception when calling QueriesApi->query_save_node_positions: #{e}"
2185
+ end
2186
+ # Setup authorization
2187
+ IndexeaClient.configure do |config|
2188
+ end
2189
+
2190
+ api_instance = IndexeaClient::QueriesApi.new
2191
+ app = 'app_example' # String | 应用标识
2192
+ query = 56 # Integer | 查询编号
2193
+ from = 0 # Integer | 起始记录
2194
+ size = 10 # Integer | 每页记录数量
2195
+ opts = {
2196
+ q: 'q_example', # String | 查询关键字
2197
+ params: {'key' => 'params_example'} # Hash<String, String> | 聚合参数
2198
+ }
2199
+
2200
+ begin
2201
+ #搜索测试
2202
+ result = api_instance.query_search(app, query, from, size, opts)
2203
+ p result
2204
+ rescue IndexeaClient::ApiError => e
2205
+ puts "Exception when calling QueriesApi->query_search: #{e}"
2206
+ end
2207
+ # Setup authorization
2208
+ IndexeaClient.configure do |config|
2209
+ end
2210
+
2211
+ api_instance = IndexeaClient::QueriesApi.new
2212
+ app = 'app_example' # String | 应用标识
2213
+ query = 56 # Integer | 查询编号
2214
+ opts = {
2215
+ q: 'q_example' # String | 搜索关键字
2216
+ }
2217
+
2218
+ begin
2219
+ #获取最终查询的源码(JSON)
2220
+ result = api_instance.query_source(app, query, opts)
2221
+ p result
2222
+ rescue IndexeaClient::ApiError => e
2223
+ puts "Exception when calling QueriesApi->query_source: #{e}"
2224
+ end
2225
+ # Setup authorization
2226
+ IndexeaClient.configure do |config|
2227
+ end
2228
+
2229
+ api_instance = IndexeaClient::QueriesApi.new
2230
+ app = 'app_example' # String | 应用标识
2231
+ query = 56 # Integer | 查询编号
2232
+ q = 'q_example' # String | 搜索关键字
2233
+
2234
+
2235
+ begin
2236
+ #获取搜索建议列表
2237
+ result = api_instance.query_suggest(app, query, q)
2238
+ p result
2239
+ rescue IndexeaClient::ApiError => e
2240
+ puts "Exception when calling QueriesApi->query_suggest: #{e}"
2241
+ end
2242
+ # Setup authorization
2243
+ IndexeaClient.configure do |config|
2244
+ end
2245
+
2246
+ api_instance = IndexeaClient::QueriesApi.new
2247
+ app = 'app_example' # String | 应用标识
2248
+ query = 56 # Integer | 查询编号
2249
+ q = 'q_example' # String | 搜索内容
2250
+ opts = {
2251
+ fields: ['fields_example'] # Array<String> | 字段列表
2252
+ }
2253
+
2254
+ begin
2255
+ #测试索引智能匹配字段
2256
+ result = api_instance.query_test_intelligent_mappings(app, query, q, opts)
2257
+ p result
2258
+ rescue IndexeaClient::ApiError => e
2259
+ puts "Exception when calling QueriesApi->query_test_intelligent_mappings: #{e}"
2260
+ end
2261
+ # Setup authorization
2262
+ IndexeaClient.configure do |config|
2263
+ end
2264
+
2265
+ api_instance = IndexeaClient::QueriesApi.new
2266
+ body = IndexeaClient::QueryForm.new # QueryForm |
2267
+ app = 'app_example' # String | 应用标识
2268
+ query = 56 # Integer | 查询编号
2269
+
2270
+
2271
+ begin
2272
+ #修改查询
2273
+ result = api_instance.query_update(body, app, query)
2274
+ p result
2275
+ rescue IndexeaClient::ApiError => e
2276
+ puts "Exception when calling QueriesApi->query_update: #{e}"
2277
+ end
2278
+ # Setup authorization
2279
+ IndexeaClient.configure do |config|
2280
+ end
2281
+
2282
+ api_instance = IndexeaClient::QueriesApi.new
2283
+ body = IndexeaClient::KeywordBindingBean.new # KeywordBindingBean |
2284
+ app = 'app_example' # String | 应用标识
2285
+ query = 56 # Integer | 查询编号
2286
+
2287
+
2288
+ begin
2289
+ #修改关键词文档绑定
2290
+ result = api_instance.query_update_keyword_bindings(body, app, query)
2291
+ p result
2292
+ rescue IndexeaClient::ApiError => e
2293
+ puts "Exception when calling QueriesApi->query_update_keyword_bindings: #{e}"
2294
+ end
2295
+ # Setup authorization
2296
+ IndexeaClient.configure do |config|
2297
+ end
2298
+
2299
+ api_instance = IndexeaClient::QueriesApi.new
2300
+ app = 'app_example' # String | 应用标识
2301
+ query = 56 # Integer | 记录编号
2302
+ name = 'name_example' # String | 设置项名称
2303
+ value = 'value_example' # String | 设置值
2304
+ type = 'string' # String | 设置项类型
2305
+
2306
+
2307
+ begin
2308
+ #更改查询的设置项
2309
+ result = api_instance.query_update_settings(app, query, name, value, type)
2310
+ p result
2311
+ rescue IndexeaClient::ApiError => e
2312
+ puts "Exception when calling QueriesApi->query_update_settings: #{e}"
2313
+ end
2314
+ # Setup authorization
2315
+ IndexeaClient.configure do |config|
2316
+ end
2317
+
2318
+ api_instance = IndexeaClient::QueriesApi.new
2319
+ body = IndexeaClient::QueryVariableBean.new # QueryVariableBean |
2320
+ app = 'app_example' # String | 应用标识
2321
+ id = 56 # Integer | 自定义查询变量编号
2322
+
2323
+
2324
+ begin
2325
+ #修改预定义查询变量
2326
+ result = api_instance.query_update_variable(body, app, id)
2327
+ p result
2328
+ rescue IndexeaClient::ApiError => e
2329
+ puts "Exception when calling QueriesApi->query_update_variable: #{e}"
2330
+ end
2331
+ # Setup authorization
2332
+ IndexeaClient.configure do |config|
2333
+ end
2334
+
2335
+ api_instance = IndexeaClient::QueriesApi.new
2336
+ app = 'app_example' # String | 应用标识
2337
+ query = 56 # Integer | 查询编号
2338
+
2339
+
2340
+ begin
2341
+ #获取搜索验证结果
2342
+ result = api_instance.query_validate(app, query)
2343
+ p result
2344
+ rescue IndexeaClient::ApiError => e
2345
+ puts "Exception when calling QueriesApi->query_validate: #{e}"
2346
+ end
2347
+ # Setup authorization
2348
+ IndexeaClient.configure do |config|
2349
+ end
2350
+
2351
+ api_instance = IndexeaClient::QueriesApi.new
2352
+ body = nil # Object |
2353
+ app = 'app_example' # String | 应用标识
2354
+ query = 56 # Integer | 查询编号
2355
+
2356
+
2357
+ begin
2358
+ #验证聚合定义是否正确
2359
+ result = api_instance.query_validate_aggregation(body, app, query)
2360
+ p result
2361
+ rescue IndexeaClient::ApiError => e
2362
+ puts "Exception when calling QueriesApi->query_validate_aggregation: #{e}"
2363
+ end
2364
+ # Setup authorization
2365
+ IndexeaClient.configure do |config|
2366
+ end
2367
+
2368
+ api_instance = IndexeaClient::QueriesApi.new
2369
+ body = nil # Object |
2370
+ app = 'app_example' # String | 应用标识
2371
+ query = 56 # Integer | 查询编号
2372
+
2373
+
2374
+ begin
2375
+ #验证聚合定义是否正确
2376
+ result = api_instance.query_validate_query(body, app, query)
2377
+ p result
2378
+ rescue IndexeaClient::ApiError => e
2379
+ puts "Exception when calling QueriesApi->query_validate_query: #{e}"
2380
+ end
2381
+ # Setup authorization
2382
+ IndexeaClient.configure do |config|
2383
+ end
2384
+
2385
+ api_instance = IndexeaClient::QueriesApi.new
2386
+ body = nil # Object |
2387
+ app = 'app_example' # String | 应用标识
2388
+ opts = {
2389
+ query: 56, # Integer | 查询编号, query 和 index 两个参数传一个即可
2390
+ index: 56 # Integer | 索引编号, query 和 index 两个参数传一个即可
2391
+ }
2392
+
2393
+ begin
2394
+ #验证脚本字段是否正确
2395
+ result = api_instance.query_validate_script_field(body, app, opts)
2396
+ p result
2397
+ rescue IndexeaClient::ApiError => e
2398
+ puts "Exception when calling QueriesApi->query_validate_script_field: #{e}"
2399
+ end
2400
+ # Setup authorization
2401
+ IndexeaClient.configure do |config|
2402
+ end
2403
+
2404
+ api_instance = IndexeaClient::QueriesApi.new
2405
+ body = nil # Object |
2406
+ app = 'app_example' # String | 应用标识
2407
+ query = 56 # Integer | 查询编号
2408
+
2409
+
2410
+ begin
2411
+ #验证脚本字段是否正确
2412
+ result = api_instance.query_validate_script_score(body, app, query)
2413
+ p result
2414
+ rescue IndexeaClient::ApiError => e
2415
+ puts "Exception when calling QueriesApi->query_validate_script_score: #{e}"
2416
+ end
2417
+ # Setup authorization
2418
+ IndexeaClient.configure do |config|
2419
+ end
2420
+
2421
+ api_instance = IndexeaClient::QueriesApi.new
2422
+ body = nil # Object |
2423
+ app = 'app_example' # String | 应用标识
2424
+ query = 56 # Integer | 查询编号
2425
+
2426
+
2427
+ begin
2428
+ #验证建议是否正确
2429
+ result = api_instance.query_validate_suggestion(body, app, query)
2430
+ p result
2431
+ rescue IndexeaClient::ApiError => e
2432
+ puts "Exception when calling QueriesApi->query_validate_suggestion: #{e}"
2433
+ end
2434
+ # Setup authorization
2435
+ IndexeaClient.configure do |config|
2436
+ end
2437
+
2438
+ api_instance = IndexeaClient::QueriesApi.new
2439
+ app = 'app_example' # String | 应用标识
2440
+
2441
+
2442
+ begin
2443
+ #获取应用的预定义查询变量列表
2444
+ result = api_instance.query_variables(app)
2445
+ p result
2446
+ rescue IndexeaClient::ApiError => e
2447
+ puts "Exception when calling QueriesApi->query_variables: #{e}"
2448
+ end
2449
+
2450
+ api_instance = IndexeaClient::RecommendApi.new
2451
+ ident = 'ident_example' # String | 推荐的唯一标识
2452
+ action_id = 'action_id_example' # String | 对应推荐行为编号
2453
+ doc_id = 'doc_id_example' # String | 对应索引中的内部记录编号
2454
+ opts = {
2455
+ userid: 'userid_example', # String | 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
2456
+ x_token: 'x_token_example' # String | 如果要使用非发布的组件,需要组件作者授权
2457
+ }
2458
+
2459
+ begin
2460
+ #推荐结果点击行为收集
2461
+ result = api_instance.recommend_click(ident, action_id, doc_id, opts)
2462
+ p result
2463
+ rescue IndexeaClient::ApiError => e
2464
+ puts "Exception when calling RecommendApi->recommend_click: #{e}"
2465
+ end
2466
+ # Setup authorization
2467
+ IndexeaClient.configure do |config|
2468
+ end
2469
+
2470
+ api_instance = IndexeaClient::RecommendApi.new
2471
+ body = IndexeaClient::RecommendBean.new # RecommendBean | 推荐信息
2472
+ app = 'app_example' # String | 应用标识
2473
+
2474
+
2475
+ begin
2476
+ #创建新的推荐
2477
+ result = api_instance.recommend_create(body, app)
2478
+ p result
2479
+ rescue IndexeaClient::ApiError => e
2480
+ puts "Exception when calling RecommendApi->recommend_create: #{e}"
2481
+ end
2482
+ # Setup authorization
2483
+ IndexeaClient.configure do |config|
2484
+ end
2485
+
2486
+ api_instance = IndexeaClient::RecommendApi.new
2487
+ app = 'app_example' # String | 应用标识
2488
+ id = 56 # Integer | 推荐编号
2489
+
2490
+
2491
+ begin
2492
+ #删除推荐
2493
+ result = api_instance.recommend_delete(app, id)
2494
+ p result
2495
+ rescue IndexeaClient::ApiError => e
2496
+ puts "Exception when calling RecommendApi->recommend_delete: #{e}"
2497
+ end
2498
+
2499
+ api_instance = IndexeaClient::RecommendApi.new
2500
+ ident = 'ident_example' # String | 推荐定义的标识
2501
+ opts = {
2502
+ x_token: 'x_token_example' # String | 如果要使用非发布的组件,需要组件作者授权
2503
+ }
2504
+
2505
+ begin
2506
+ #获取推荐的记录列表
2507
+ result = api_instance.recommend_detail(ident, opts)
2508
+ p result
2509
+ rescue IndexeaClient::ApiError => e
2510
+ puts "Exception when calling RecommendApi->recommend_detail: #{e}"
2511
+ end
2512
+
2513
+ api_instance = IndexeaClient::RecommendApi.new
2514
+ ident = 'ident_example' # String | 推荐定义的标识
2515
+ opts = {
2516
+ x_token: 'x_token_example', # String | 如果要使用非发布的组件,需要组件作者授权
2517
+ userid: 'userid_example', # String | 访客的唯一标识,该标识由搜索前端生成,长度不超过64
2518
+ condition: {'key' => 'condition_example'}, # Hash<String, String> | 获取某个记录的参数,例如 id=11223(后端将使用 term query 进行匹配)
2519
+ from: 0, # Integer | 起始值
2520
+ count: 10 # Integer | 推荐的记录数
2521
+ }
2522
+
2523
+ begin
2524
+ #获取推荐的记录列表
2525
+ result = api_instance.recommend_fetch(ident, opts)
2526
+ p result
2527
+ rescue IndexeaClient::ApiError => e
2528
+ puts "Exception when calling RecommendApi->recommend_fetch: #{e}"
2529
+ end
2530
+ # Setup authorization
2531
+ IndexeaClient.configure do |config|
2532
+ end
2533
+
2534
+ api_instance = IndexeaClient::RecommendApi.new
2535
+ app = 'app_example' # String | 应用标识
2536
+
2537
+
2538
+ begin
2539
+ #获取已定义的推荐列表
2540
+ result = api_instance.recommend_list(app)
2541
+ p result
2542
+ rescue IndexeaClient::ApiError => e
2543
+ puts "Exception when calling RecommendApi->recommend_list: #{e}"
2544
+ end
2545
+ # Setup authorization
2546
+ IndexeaClient.configure do |config|
2547
+ end
2548
+
2549
+ api_instance = IndexeaClient::RecommendApi.new
2550
+ body = IndexeaClient::RecommendBean.new # RecommendBean | 推荐信息
2551
+ app = 'app_example' # String | 应用标识
2552
+
2553
+
2554
+ begin
2555
+ #更新推荐信息
2556
+ result = api_instance.recommend_update(body, app)
2557
+ p result
2558
+ rescue IndexeaClient::ApiError => e
2559
+ puts "Exception when calling RecommendApi->recommend_update: #{e}"
2560
+ end
2561
+ # Setup authorization
2562
+ IndexeaClient.configure do |config|
2563
+ end
2564
+
2565
+ api_instance = IndexeaClient::RecordsApi.new
2566
+ app = 'app_example' # String | 应用标识
2567
+ index = 56 # Integer | 索引编号
2568
+ _id = ['_id_example'] # Array<String> | 主键字段值
2569
+
2570
+
2571
+ begin
2572
+ #删除记录数据
2573
+ result = api_instance.record_delete(app, index, _id)
2574
+ p result
2575
+ rescue IndexeaClient::ApiError => e
2576
+ puts "Exception when calling RecordsApi->record_delete: #{e}"
2577
+ end
2578
+ # Setup authorization
2579
+ IndexeaClient.configure do |config|
2580
+ end
2581
+
2582
+ api_instance = IndexeaClient::RecordsApi.new
2583
+ app = 'app_example' # String | 应用标识
2584
+ index = 56 # Integer | 索引编号
2585
+ _id = '_id_example' # String | 记录 _id 值
2586
+
2587
+
2588
+ begin
2589
+ #获取单条记录详情
2590
+ result = api_instance.record_get(app, index, _id)
2591
+ p result
2592
+ rescue IndexeaClient::ApiError => e
2593
+ puts "Exception when calling RecordsApi->record_get: #{e}"
2594
+ end
2595
+ # Setup authorization
2596
+ IndexeaClient.configure do |config|
2597
+ end
2598
+
2599
+ api_instance = IndexeaClient::RecordsApi.new
2600
+ app = 'app_example' # String | 应用标识
2601
+ index = 56 # Integer | 索引编号
2602
+ opts = {
2603
+ body: IndexeaClient::RecordFilter.new, # RecordFilter |
2604
+ q: 'q_example', # String | 搜索关键字
2605
+ field: 'field_example', # String | 搜索字段
2606
+ from: 0, # Integer | 起始记录
2607
+ size: 20, # Integer | 获取记录数
2608
+ save_filter: false # BOOLEAN | 是否保存过滤器信息
2609
+ }
2610
+
2611
+ begin
2612
+ #获取索引记录列表
2613
+ result = api_instance.record_list(app, index, opts)
2614
+ p result
2615
+ rescue IndexeaClient::ApiError => e
2616
+ puts "Exception when calling RecordsApi->record_list: #{e}"
2617
+ end
2618
+ # Setup authorization
2619
+ IndexeaClient.configure do |config|
2620
+ end
2621
+
2622
+ api_instance = IndexeaClient::RecordsApi.new
2623
+ body = nil # Array<Object> |
2624
+ app = 'app_example' # String | 应用标识
2625
+ index = 56 # Integer | 索引编号
2626
+ opts = {
2627
+ combine: false # BOOLEAN | 更新策略:合并还是替换,combine=true 为合并模式
2628
+ }
2629
+
2630
+ begin
2631
+ #插入或者更新索引数据
2632
+ result = api_instance.record_push(body, app, index, opts)
2633
+ p result
2634
+ rescue IndexeaClient::ApiError => e
2635
+ puts "Exception when calling RecordsApi->record_push: #{e}"
2636
+ end
2637
+ # Setup authorization
2638
+ IndexeaClient.configure do |config|
2639
+ end
2640
+
2641
+ api_instance = IndexeaClient::RecordsApi.new
2642
+ app = 'app_example' # String | 应用标识
2643
+ index = 56 # Integer | 索引编号
2644
+ opts = {
2645
+ files: ['files_example'], # Array<String> |
2646
+ combine: false, # BOOLEAN | 更新策略:合并还是替换,combine=true 为合并模式
2647
+ use_id_as_id_value: true # BOOLEAN | 使用数据中的 id 值作为记录 _id, 如果没有 id 字段则自动生成
2648
+ }
2649
+
2650
+ begin
2651
+ #上传记录
2652
+ result = api_instance.record_upload(app, index, opts)
2653
+ p result
2654
+ rescue IndexeaClient::ApiError => e
2655
+ puts "Exception when calling RecordsApi->record_upload: #{e}"
2656
+ end
2657
+
2658
+ api_instance = IndexeaClient::SearchApi.new
2659
+ widget = 'widget_example' # String | 组件唯一标识
2660
+ action_id = 'action_id_example' # String | 对应搜索行为编号
2661
+ doc_id = 'doc_id_example' # String | 对应索引中的内部记录编号
2662
+ opts = {
2663
+ userid: 'userid_example', # String | 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
2664
+ x_token: 'x_token_example' # String | 如果要使用非发布的组件,需要组件作者授权
2665
+ }
2666
+
2667
+ begin
2668
+ #搜索结果点击行为收集
2669
+ result = api_instance.search_click(widget, action_id, doc_id, opts)
2670
+ p result
2671
+ rescue IndexeaClient::ApiError => e
2672
+ puts "Exception when calling SearchApi->search_click: #{e}"
2673
+ end
2674
+
2675
+ api_instance = IndexeaClient::SearchApi.new
2676
+ widget = 'widget_example' # String | 组件唯一标识
2677
+ strategy = 'popular' # String | 搜索记录策略
2678
+ query = 0 # Integer | 指定关联查询的编号
2679
+ size = 10 # Integer | 数量
2680
+ opts = {
2681
+ userid: 'userid_example', # String | 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
2682
+ x_token: 'x_token_example' # String | 如果要使用非公开的组件,需要组件作者授权
2683
+ }
2684
+
2685
+ begin
2686
+ #获取当前搜索用户的最新搜索记录
2687
+ result = api_instance.search_histories(widget, strategy, query, size, opts)
2688
+ p result
2689
+ rescue IndexeaClient::ApiError => e
2690
+ puts "Exception when calling SearchApi->search_histories: #{e}"
2691
+ end
2692
+ # Setup authorization
2693
+ IndexeaClient.configure do |config|
2694
+ end
2695
+
2696
+ api_instance = IndexeaClient::SearchApi.new
2697
+ app = 'app_example' # String | 应用标识
2698
+ opts = {
2699
+ indices: [56], # Array<Integer> | 只看指定索引
2700
+ scope: 'all', # String | 搜索范围
2701
+ widget: 0, # Integer | 搜索组件
2702
+ query: 0, # Integer | 指定查询
2703
+ recomm: 0, # Integer | 推荐组件
2704
+ start_date: Date.parse('2013-10-20'), # Date | 统计起始日期
2705
+ end_date: Date.parse('2013-10-20'), # Date | 统计结束日期
2706
+ from: 0, # Integer | 起始位置
2707
+ size: 50 # Integer | 每页记录数量
2708
+ }
2709
+
2710
+ begin
2711
+ #获取搜索日志
2712
+ result = api_instance.search_logs(app, opts)
2713
+ p result
2714
+ rescue IndexeaClient::ApiError => e
2715
+ puts "Exception when calling SearchApi->search_logs: #{e}"
2716
+ end
2717
+
2718
+ api_instance = IndexeaClient::SearchApi.new
2719
+ query = 'query_example' # String | 查询唯一标识
2720
+ strategy = 'popular' # String | 搜索记录策略
2721
+ size = 10 # Integer | 数量
2722
+ opts = {
2723
+ userid: 'userid_example', # String | 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
2724
+ x_token: 'x_token_example' # String | 如果要使用非公开查询,需要组件作者授权
2725
+ }
2726
+
2727
+ begin
2728
+ #获取当前搜索用户的最新搜索记录
2729
+ result = api_instance.search_query_histories(query, strategy, size, opts)
2730
+ p result
2731
+ rescue IndexeaClient::ApiError => e
2732
+ puts "Exception when calling SearchApi->search_query_histories: #{e}"
2733
+ end
2734
+
2735
+ api_instance = IndexeaClient::SearchApi.new
2736
+ query = 'query_example' # String | 查询标识
2737
+ scope = 'all' # String | 时间范围
2738
+ count = 10 # Integer | 获取热词数量
2739
+ opts = {
2740
+ x_token: 'x_token_example', # String | 如果要使用非发布的组件,需要组件作者授权
2741
+ userid: 'userid_example' # String | 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
2742
+ }
2743
+
2744
+ begin
2745
+ #获取查询相关热词
2746
+ result = api_instance.search_query_hot_words(query, scope, count, opts)
2747
+ p result
2748
+ rescue IndexeaClient::ApiError => e
2749
+ puts "Exception when calling SearchApi->search_query_hot_words: #{e}"
2750
+ end
2751
+
2752
+ api_instance = IndexeaClient::SearchApi.new
2753
+ query = 'query_example' # String | 查询标识
2754
+ id = 'id_example' # String | scroll_id 值,该值的有效期是 1 分钟
2755
+ opts = {
2756
+ x_token: 'x_token_example', # String | 如果要使用非发布的组件,需要组件作者授权
2757
+ userid: 'userid_example' # String | 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
2758
+ }
2759
+
2760
+ begin
2761
+ #读取滚动搜索结果
2762
+ result = api_instance.search_query_repeat_scroll(query, id, opts)
2763
+ p result
2764
+ rescue IndexeaClient::ApiError => e
2765
+ puts "Exception when calling SearchApi->search_query_repeat_scroll: #{e}"
2766
+ end
2767
+
2768
+ api_instance = IndexeaClient::SearchApi.new
2769
+ query = 'query_example' # String | 查询标识
2770
+ opts = {
2771
+ x_token: 'x_token_example', # String | 如果要使用非发布的组件,需要组件作者授权
2772
+ userid: 'userid_example', # String | 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
2773
+ size: 100, # Integer | 单次滚动的记录数
2774
+ q: 'q_example', # String | 搜索关键字
2775
+ params: {'key' => 'params_example'} # Hash<String, String> | 聚合参数
2776
+ }
2777
+
2778
+ begin
2779
+ #基于查询的滚动搜索
2780
+ result = api_instance.search_query_scroll(query, opts)
2781
+ p result
2782
+ rescue IndexeaClient::ApiError => e
2783
+ puts "Exception when calling SearchApi->search_query_scroll: #{e}"
2784
+ end
2785
+
2786
+ api_instance = IndexeaClient::SearchApi.new
2787
+ query = 'query_example' # String | 查询标识
2788
+ from = 0 # Integer | 起始记录
2789
+ size = 20 # Integer | 每页记录数量
2790
+ opts = {
2791
+ x_token: 'x_token_example', # String | 如果要使用非发布的组件,需要组件作者授权
2792
+ userid: 'userid_example', # String | 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
2793
+ q: 'q_example', # String | 搜索关键字
2794
+ params: {'key' => 'params_example'} # Hash<String, String> | 聚合参数
2795
+ }
2796
+
2797
+ begin
2798
+ #基于查询的公开搜索
2799
+ result = api_instance.search_query_search(query, from, size, opts)
2800
+ p result
2801
+ rescue IndexeaClient::ApiError => e
2802
+ puts "Exception when calling SearchApi->search_query_search: #{e}"
2803
+ end
2804
+
2805
+ api_instance = IndexeaClient::SearchApi.new
2806
+ widget = 'widget_example' # String | 组件唯一标识
2807
+ query = 0 # Integer | 查询编号
2808
+ q = 'q_example' # String | 搜索关键字
2809
+ size = 10 # Integer | 数量
2810
+ opts = {
2811
+ userid: 'userid_example', # String | 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
2812
+ x_token: 'x_token_example' # String | 如果要使用非发布的组件,需要组件作者授权
2813
+ }
2814
+
2815
+ begin
2816
+ #基于组件的搜索词自动完成
2817
+ result = api_instance.search_widget_auto_complete(widget, query, q, size, opts)
2818
+ p result
2819
+ rescue IndexeaClient::ApiError => e
2820
+ puts "Exception when calling SearchApi->search_widget_auto_complete: #{e}"
2821
+ end
2822
+
2823
+ api_instance = IndexeaClient::SearchApi.new
2824
+ widget = 'widget_example' # String | 组件唯一标识
2825
+ opts = {
2826
+ x_token: 'x_token_example', # String | 如果要使用非发布的组件,需要组件作者授权
2827
+ userid: 'userid_example', # String | 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
2828
+ query: 56, # Integer | 查询编号
2829
+ scope: 'scope_example', # String | 时间范围
2830
+ count: 10 # Integer | 获取热词数量
2831
+ }
2832
+
2833
+ begin
2834
+ #获取组件搜索的相关热词
2835
+ result = api_instance.search_widget_hot_words(widget, opts)
2836
+ p result
2837
+ rescue IndexeaClient::ApiError => e
2838
+ puts "Exception when calling SearchApi->search_widget_hot_words: #{e}"
2839
+ end
2840
+
2841
+ api_instance = IndexeaClient::SearchApi.new
2842
+ widget = 'widget_example' # String | 组件唯一标识
2843
+ query = 56 # Integer | 查询编号
2844
+ from = 0 # Integer | 起始记录
2845
+ size = -1 # Integer | 每页记录数量, 如果值小于0则使用预设值的记录数
2846
+ opts = {
2847
+ userid: 'userid_example', # String | 搜索者的唯一标识,该标识由搜索前端生成,长度不超过64
2848
+ x_token: 'x_token_example', # String | 如果要使用非发布的组件,需要组件作者授权
2849
+ original: 'original_example', # String | 搜索动作的延续,在 Web 组件中一边输入即时搜索时,使用的是同一个 original,original 值等于第一个搜索动作产生结果中的 action 值
2850
+ q: 'q_example', # String | 搜索关键字
2851
+ params: {'key' => 'params_example'} # Hash<String, String> | 聚合参数
2852
+ }
2853
+
2854
+ begin
2855
+ #基于组件的公开搜索
2856
+ result = api_instance.search_widget_search(widget, query, from, size, opts)
2857
+ p result
2858
+ rescue IndexeaClient::ApiError => e
2859
+ puts "Exception when calling SearchApi->search_widget_search: #{e}"
2860
+ end
2861
+ # Setup authorization
2862
+ IndexeaClient.configure do |config|
2863
+ end
2864
+
2865
+ api_instance = IndexeaClient::StatsApi.new
2866
+ app = 'app_example' # String | 应用标识
2867
+ opts = {
2868
+ recomm: 0, # Integer | 统计指定推荐
2869
+ start_date: Date.parse('2013-10-20'), # Date | 统计起始日期
2870
+ end_date: Date.parse('2013-10-20'), # Date | 统计结束日期
2871
+ interval: 'date' # String | 统计间隔 - 日、周、月、季度、年
2872
+ }
2873
+
2874
+ begin
2875
+ #获取推荐日志的汇总信息
2876
+ result = api_instance.stats_recomms(app, opts)
2877
+ p result
2878
+ rescue IndexeaClient::ApiError => e
2879
+ puts "Exception when calling StatsApi->stats_recomms: #{e}"
2880
+ end
2881
+ # Setup authorization
2882
+ IndexeaClient.configure do |config|
2883
+ end
2884
+
2885
+ api_instance = IndexeaClient::StatsApi.new
2886
+ app = 'app_example' # String | 应用标识
2887
+ opts = {
2888
+ index: 0, # Integer | 统计指定索引
2889
+ query: 0, # Integer | 统计指定查询
2890
+ widget: 0, # Integer | 统计指定组件
2891
+ start_date: Date.parse('2013-10-20'), # Date | 统计起始日期
2892
+ end_date: Date.parse('2013-10-20'), # Date | 统计结束日期
2893
+ interval: 'date' # String | 统计间隔 - 日、周、月、季度、年
2894
+ }
2895
+
2896
+ begin
2897
+ #获取搜索日志的汇总信息
2898
+ result = api_instance.stats_searchs(app, opts)
2899
+ p result
2900
+ rescue IndexeaClient::ApiError => e
2901
+ puts "Exception when calling StatsApi->stats_searchs: #{e}"
2902
+ end
2903
+ # Setup authorization
2904
+ IndexeaClient.configure do |config|
2905
+ end
2906
+
2907
+ api_instance = IndexeaClient::StatsApi.new
2908
+ app = 'app_example' # String | 应用标识
2909
+ size = 10 # Integer | 排行榜大小
2910
+ opts = {
2911
+ index: 0, # Integer | 统计指定索引
2912
+ query: 0, # Integer | 统计指定查询
2913
+ recomm: 0, # Integer | 统计指定推荐组件
2914
+ widget: 0, # Integer | 统计指定组件
2915
+ start_date: Date.parse('2013-10-20'), # Date | 统计起始日期
2916
+ end_date: Date.parse('2013-10-20') # Date | 统计结束日期
2917
+ }
2918
+
2919
+ begin
2920
+ #获取点击排行榜
2921
+ result = api_instance.stats_top_clicks(app, size, opts)
2922
+ p result
2923
+ rescue IndexeaClient::ApiError => e
2924
+ puts "Exception when calling StatsApi->stats_top_clicks: #{e}"
2925
+ end
2926
+ # Setup authorization
2927
+ IndexeaClient.configure do |config|
2928
+ end
2929
+
2930
+ api_instance = IndexeaClient::StatsApi.new
2931
+ app = 'app_example' # String | 应用标识
2932
+ opts = {
2933
+ widget: 0, # Integer | 统计指定模板或组件
2934
+ start_date: Date.parse('2013-10-20'), # Date | 统计起始日期
2935
+ end_date: Date.parse('2013-10-20'), # Date | 统计结束日期
2936
+ interval: 'date' # String | 统计间隔 - 日、周、月、季度、年
2937
+ }
2938
+
2939
+ begin
2940
+ #获取模板与组件的统计信息
2941
+ result = api_instance.stats_widgets(app, opts)
2942
+ p result
2943
+ rescue IndexeaClient::ApiError => e
2944
+ puts "Exception when calling StatsApi->stats_widgets: #{e}"
2945
+ end
2946
+ # Setup authorization
2947
+ IndexeaClient.configure do |config|
2948
+ end
2949
+
2950
+ api_instance = IndexeaClient::WidgetsApi.new
2951
+ app = 'app_example' # String | 应用标识
2952
+ widget = 56 # Integer | 源组件编号
2953
+
2954
+
2955
+ begin
2956
+ #复制指定组件并创建新组件
2957
+ result = api_instance.widget_copy(app, widget)
2958
+ p result
2959
+ rescue IndexeaClient::ApiError => e
2960
+ puts "Exception when calling WidgetsApi->widget_copy: #{e}"
2961
+ end
2962
+ # Setup authorization
2963
+ IndexeaClient.configure do |config|
2964
+ end
2965
+
2966
+ api_instance = IndexeaClient::WidgetsApi.new
2967
+ app = 'app_example' # String | 应用标识
2968
+ widget = 56 # Integer | 源组件编号
2969
+ to = 56 # Integer | 目标组件编号
2970
+
2971
+
2972
+ begin
2973
+ #复制组件到已有组件
2974
+ result = api_instance.widget_copy_to_widget(app, widget, to)
2975
+ p result
2976
+ rescue IndexeaClient::ApiError => e
2977
+ puts "Exception when calling WidgetsApi->widget_copy_to_widget: #{e}"
2978
+ end
2979
+ # Setup authorization
2980
+ IndexeaClient.configure do |config|
2981
+ end
2982
+
2983
+ api_instance = IndexeaClient::WidgetsApi.new
2984
+ body = IndexeaClient::WidgetForm.new # WidgetForm |
2985
+ app = 'app_example' # String | 应用标识
2986
+
2987
+
2988
+ begin
2989
+ #创建组件
2990
+ result = api_instance.widget_create(body, app)
2991
+ p result
2992
+ rescue IndexeaClient::ApiError => e
2993
+ puts "Exception when calling WidgetsApi->widget_create: #{e}"
2994
+ end
2995
+ # Setup authorization
2996
+ IndexeaClient.configure do |config|
2997
+ end
2998
+
2999
+ api_instance = IndexeaClient::WidgetsApi.new
3000
+ app = 'app_example' # String | 应用标识
3001
+ widget = 56 # Integer | 组件编号
3002
+ opts = {
3003
+ password: 'password_example' # String |
3004
+ }
3005
+
3006
+ begin
3007
+ #删除组件
3008
+ result = api_instance.widget_delete(app, widget, opts)
3009
+ p result
3010
+ rescue IndexeaClient::ApiError => e
3011
+ puts "Exception when calling WidgetsApi->widget_delete: #{e}"
3012
+ end
3013
+
3014
+ api_instance = IndexeaClient::WidgetsApi.new
3015
+ ident = 'ident_example' # String | UI组件的唯一标识
3016
+ opts = {
3017
+ x_token: 'x_token_example' # String | 如果要使用非发布的组件,需要组件作者授权
3018
+ }
3019
+
3020
+ begin
3021
+ #获取UI组件的所有相关信息
3022
+ result = api_instance.widget_detail(ident, opts)
3023
+ p result
3024
+ rescue IndexeaClient::ApiError => e
3025
+ puts "Exception when calling WidgetsApi->widget_detail: #{e}"
3026
+ end
3027
+ # Setup authorization
3028
+ IndexeaClient.configure do |config|
3029
+ end
3030
+
3031
+ api_instance = IndexeaClient::WidgetsApi.new
3032
+ app = 'app_example' # String | 应用标识
3033
+ widget = 56 # Integer | 组件编号
3034
+ framework = 'framework_example' # String | 指定的技术框架
3035
+
3036
+
3037
+ begin
3038
+ #下载组件应用源码
3039
+ result = api_instance.widget_download(app, widget, framework)
3040
+ p result
3041
+ rescue IndexeaClient::ApiError => e
3042
+ puts "Exception when calling WidgetsApi->widget_download: #{e}"
3043
+ end
3044
+ # Setup authorization
3045
+ IndexeaClient.configure do |config|
3046
+ end
3047
+
3048
+ api_instance = IndexeaClient::WidgetsApi.new
3049
+ app = 'app_example' # String | 应用标识
3050
+ widget = 56 # Integer | 组件编号
3051
+
3052
+
3053
+ begin
3054
+ #获取组件的详情
3055
+ result = api_instance.widget_get(app, widget)
3056
+ p result
3057
+ rescue IndexeaClient::ApiError => e
3058
+ puts "Exception when calling WidgetsApi->widget_get: #{e}"
3059
+ end
3060
+ # Setup authorization
3061
+ IndexeaClient.configure do |config|
3062
+ end
3063
+
3064
+ api_instance = IndexeaClient::WidgetsApi.new
3065
+ app = 'app_example' # String | 应用标识
3066
+
3067
+
3068
+ begin
3069
+ #获取应用的组件列表
3070
+ result = api_instance.widget_list(app)
3071
+ p result
3072
+ rescue IndexeaClient::ApiError => e
3073
+ puts "Exception when calling WidgetsApi->widget_list: #{e}"
3074
+ end
3075
+ # Setup authorization
3076
+ IndexeaClient.configure do |config|
3077
+ end
3078
+
3079
+ api_instance = IndexeaClient::WidgetsApi.new
3080
+ app = 'app_example' # String | 应用标识
3081
+ widget = 56 # Integer | 组件编号
3082
+ opts = {
3083
+ logo: 'logo_example' # String |
3084
+ }
3085
+
3086
+ begin
3087
+ #设置组件 Logo
3088
+ result = api_instance.widget_logo(app, widget, opts)
3089
+ p result
3090
+ rescue IndexeaClient::ApiError => e
3091
+ puts "Exception when calling WidgetsApi->widget_logo: #{e}"
3092
+ end
3093
+ # Setup authorization
3094
+ IndexeaClient.configure do |config|
3095
+ end
3096
+
3097
+ api_instance = IndexeaClient::WidgetsApi.new
3098
+ body = IndexeaClient::WidgetForm.new # WidgetForm |
3099
+ app = 'app_example' # String | 应用标识
3100
+ widget = 56 # Integer | 组件编号
3101
+
3102
+
3103
+ begin
3104
+ #修改组件
3105
+ result = api_instance.widget_update(body, app, widget)
3106
+ p result
3107
+ rescue IndexeaClient::ApiError => e
3108
+ puts "Exception when calling WidgetsApi->widget_update: #{e}"
3109
+ end
3110
+ # Setup authorization
3111
+ IndexeaClient.configure do |config|
3112
+ end
3113
+
3114
+ api_instance = IndexeaClient::WidgetsApi.new
3115
+ key = 'key_example' # String |
3116
+ type = 'type_example' # String |
3117
+ value = 'value_example' # String |
3118
+ vcode = 'vcode_example' # String |
3119
+ app = 'app_example' # String | 应用标识
3120
+ widget = 56 # Integer | 组件编号
3121
+
3122
+
3123
+ begin
3124
+ #修改组件设置参数
3125
+ result = api_instance.widget_update_settings(key, type, value, vcode, app, widget)
3126
+ p result
3127
+ rescue IndexeaClient::ApiError => e
3128
+ puts "Exception when calling WidgetsApi->widget_update_settings: #{e}"
3129
+ end
3130
+ ```
3131
+
3132
+ ## Documentation for API Endpoints
3133
+
3134
+ All URIs are relative to *https://api.indexea.com/v1*
3135
+
3136
+ Class | Method | HTTP request | Description
3137
+ ------------ | ------------- | ------------- | -------------
3138
+ *IndexeaClient::AccountApi* | [**account_bulletin**](docs/AccountApi.md#account_bulletin) | **GET** /accounts/bulletin | 获取系统公告
3139
+ *IndexeaClient::AccountApi* | [**account_delete**](docs/AccountApi.md#account_delete) | **DELETE** /account/profile | 注销账号
3140
+ *IndexeaClient::AccountApi* | [**account_delete_openid**](docs/AccountApi.md#account_delete_openid) | **DELETE** /account/openid | 解绑三方账号
3141
+ *IndexeaClient::AccountApi* | [**account_openid**](docs/AccountApi.md#account_openid) | **GET** /account/openid | 获取绑定的所有三方账号
3142
+ *IndexeaClient::AccountApi* | [**account_passwd**](docs/AccountApi.md#account_passwd) | **POST** /account/passwd | 修改账号密码
3143
+ *IndexeaClient::AccountApi* | [**account_portrait**](docs/AccountApi.md#account_portrait) | **POST** /account/portrait | 修改账号头像
3144
+ *IndexeaClient::AccountApi* | [**account_profile**](docs/AccountApi.md#account_profile) | **GET** /account/profile | 获取登录账号信息
3145
+ *IndexeaClient::AccountApi* | [**account_reset_pwd**](docs/AccountApi.md#account_reset_pwd) | **POST** /account/reset-pwd | 重置账号密码
3146
+ *IndexeaClient::AccountApi* | [**account_send_verify_code**](docs/AccountApi.md#account_send_verify_code) | **GET** /account/send-verify-code | 发送账号验证码
3147
+ *IndexeaClient::AccountApi* | [**account_signin**](docs/AccountApi.md#account_signin) | **POST** /account/signin | 登录系统
3148
+ *IndexeaClient::AccountApi* | [**account_signout**](docs/AccountApi.md#account_signout) | **POST** /account/sign-out | 退出登录状态
3149
+ *IndexeaClient::AccountApi* | [**account_signup**](docs/AccountApi.md#account_signup) | **POST** /account/signup | 注册新账号
3150
+ *IndexeaClient::AccountApi* | [**account_update**](docs/AccountApi.md#account_update) | **POST** /account/profile | 修改账号资料
3151
+ *IndexeaClient::AccountApi* | [**account_update_settings**](docs/AccountApi.md#account_update_settings) | **POST** /account/settings | 修改账号设置
3152
+ *IndexeaClient::AppsApi* | [**app_add_mentor**](docs/AppsApi.md#app_add_mentor) | **POST** /apps/{app}/mentors | 添加应用成员
3153
+ *IndexeaClient::AppsApi* | [**app_blacklist**](docs/AppsApi.md#app_blacklist) | **GET** /apps/{app}/blacklist | 获取黑名单信息
3154
+ *IndexeaClient::AppsApi* | [**app_create**](docs/AppsApi.md#app_create) | **POST** /apps | 创建应用
3155
+ *IndexeaClient::AppsApi* | [**app_create_access_token**](docs/AppsApi.md#app_create_access_token) | **POST** /apps/{app}/tokens | 创建 Access Token
3156
+ *IndexeaClient::AppsApi* | [**app_create_oauth_app**](docs/AppsApi.md#app_create_oauth_app) | **POST** /apps/{app}/oauth | 创建第三方应用
3157
+ *IndexeaClient::AppsApi* | [**app_delete**](docs/AppsApi.md#app_delete) | **DELETE** /apps/{app} | 删除应用
3158
+ *IndexeaClient::AppsApi* | [**app_delete_access_token**](docs/AppsApi.md#app_delete_access_token) | **DELETE** /apps/{app}/tokens | 删除 Access Token
3159
+ *IndexeaClient::AppsApi* | [**app_delete_mentor**](docs/AppsApi.md#app_delete_mentor) | **DELETE** /apps/{app}/mentors | 删除应用成员
3160
+ *IndexeaClient::AppsApi* | [**app_delete_oauth_app**](docs/AppsApi.md#app_delete_oauth_app) | **DELETE** /apps/{app}/oauth | 删除第三方应用
3161
+ *IndexeaClient::AppsApi* | [**app_excel_of_logs**](docs/AppsApi.md#app_excel_of_logs) | **GET** /apps/{app}/logs | 导出应用日志到 Excel
3162
+ *IndexeaClient::AppsApi* | [**app_get**](docs/AppsApi.md#app_get) | **GET** /apps/{app} | 获取应用详情
3163
+ *IndexeaClient::AppsApi* | [**app_get_company**](docs/AppsApi.md#app_get_company) | **POST** /apps/{app}/company | 获取应用填写的公司信息
3164
+ *IndexeaClient::AppsApi* | [**app_get_company_pic**](docs/AppsApi.md#app_get_company_pic) | **GET** /apps/{app}/company | 获取公司营业执照或者一般纳税人证明
3165
+ *IndexeaClient::AppsApi* | [**app_list**](docs/AppsApi.md#app_list) | **GET** /apps | 获取应用列表
3166
+ *IndexeaClient::AppsApi* | [**app_list_mentors**](docs/AppsApi.md#app_list_mentors) | **GET** /apps/{app}/mentors | 获取应用成员列表
3167
+ *IndexeaClient::AppsApi* | [**app_list_oauth_apps**](docs/AppsApi.md#app_list_oauth_apps) | **GET** /apps/{app}/oauth | 获取第三方应用列表
3168
+ *IndexeaClient::AppsApi* | [**app_logs**](docs/AppsApi.md#app_logs) | **POST** /apps/{app}/logs | 获取应用的日志列表
3169
+ *IndexeaClient::AppsApi* | [**app_reset_access_token**](docs/AppsApi.md#app_reset_access_token) | **PATCH** /apps/{app}/tokens | 重置 Access Token
3170
+ *IndexeaClient::AppsApi* | [**app_reset_oauth_app_secret**](docs/AppsApi.md#app_reset_oauth_app_secret) | **POST** /apps/{app}/oauth-reset-secret | 重新生成三方应用的密钥
3171
+ *IndexeaClient::AppsApi* | [**app_save_blacklist**](docs/AppsApi.md#app_save_blacklist) | **PUT** /apps/{app}/blacklist | 修改应用的黑名单信息
3172
+ *IndexeaClient::AppsApi* | [**app_save_company**](docs/AppsApi.md#app_save_company) | **PUT** /apps/{app}/company | 修改应用的公司信息
3173
+ *IndexeaClient::AppsApi* | [**app_searchs_estimate**](docs/AppsApi.md#app_searchs_estimate) | **GET** /apps/{app}/searchs-estimate | 获取搜索流量包使用配额信息
3174
+ *IndexeaClient::AppsApi* | [**app_set_trigger**](docs/AppsApi.md#app_set_trigger) | **PUT** /apps/{app}/trigger | 修改应用的触发器信息
3175
+ *IndexeaClient::AppsApi* | [**app_tokens**](docs/AppsApi.md#app_tokens) | **GET** /apps/{app}/tokens | 获取 Access Token 列表
3176
+ *IndexeaClient::AppsApi* | [**app_transfer**](docs/AppsApi.md#app_transfer) | **POST** /apps/{app}/transfer | 转让应用给他人
3177
+ *IndexeaClient::AppsApi* | [**app_trigger**](docs/AppsApi.md#app_trigger) | **GET** /apps/{app}/trigger | 获取应用触发器详情
3178
+ *IndexeaClient::AppsApi* | [**app_trigger_logs**](docs/AppsApi.md#app_trigger_logs) | **GET** /apps/{app}/trigger-logs | 获取应用触发日志列表
3179
+ *IndexeaClient::AppsApi* | [**app_update**](docs/AppsApi.md#app_update) | **PUT** /apps/{app} | 修改应用的基本信息
3180
+ *IndexeaClient::AppsApi* | [**app_update_access_token**](docs/AppsApi.md#app_update_access_token) | **PUT** /apps/{app}/tokens | 修改 Access Token
3181
+ *IndexeaClient::AppsApi* | [**app_update_mentor**](docs/AppsApi.md#app_update_mentor) | **PATCH** /apps/{app}/mentors | 修改成员备注和权限
3182
+ *IndexeaClient::AppsApi* | [**app_update_mentor_options**](docs/AppsApi.md#app_update_mentor_options) | **POST** /apps/{app}/mentors-options | 修改应用成员自身的设置(包括应用名备注,是否接收报告等)
3183
+ *IndexeaClient::AppsApi* | [**app_update_mentor_report_options**](docs/AppsApi.md#app_update_mentor_report_options) | **PATCH** /apps/{app}/mentors-options | 修改应用成员自身的通知设置
3184
+ *IndexeaClient::AppsApi* | [**app_update_oauth_app**](docs/AppsApi.md#app_update_oauth_app) | **PATCH** /apps/{app}/oauth | 修改第三方应用信息
3185
+ *IndexeaClient::AppsApi* | [**app_update_oauth_app_logo**](docs/AppsApi.md#app_update_oauth_app_logo) | **PUT** /apps/{app}/oauth | 修改三方应用图标
3186
+ *IndexeaClient::AppsApi* | [**app_update_status**](docs/AppsApi.md#app_update_status) | **PATCH** /apps/{app} | 修改应用的状态
3187
+ *IndexeaClient::FieldsApi* | [**index_fields**](docs/FieldsApi.md#index_fields) | **GET** /indices/{app}/{index}/fields | 获取索引字段映射详情
3188
+ *IndexeaClient::FieldsApi* | [**index_update_fields**](docs/FieldsApi.md#index_update_fields) | **POST** /indices/{app}/{index}/fields | 更新索引的字段映射
3189
+ *IndexeaClient::FieldsApi* | [**index_update_html_strip_fields**](docs/FieldsApi.md#index_update_html_strip_fields) | **PATCH** /indices/{app}/{index}/fields | 更新索引的HTML过滤字段列表
3190
+ *IndexeaClient::FieldsApi* | [**index_values_of_field**](docs/FieldsApi.md#index_values_of_field) | **GET** /indices/{app}/{index}/fields/{field} | 获取索引字段的所有值列表
3191
+ *IndexeaClient::GlobalApi* | [**json**](docs/GlobalApi.md#json) | **GET** /json | 接口定义(JSON)
3192
+ *IndexeaClient::GlobalApi* | [**options_get**](docs/GlobalApi.md#options_get) | **GET** /options | 系统全局配置接口
3193
+ *IndexeaClient::GlobalApi* | [**status_database**](docs/GlobalApi.md#status_database) | **GET** /status/database | 数据库服务状态测试
3194
+ *IndexeaClient::GlobalApi* | [**status_engine**](docs/GlobalApi.md#status_engine) | **GET** /status/engine | 搜索引擎状态测试
3195
+ *IndexeaClient::GlobalApi* | [**welcome**](docs/GlobalApi.md#welcome) | **GET** / | 接口欢迎信息
3196
+ *IndexeaClient::GlobalApi* | [**yaml**](docs/GlobalApi.md#yaml) | **GET** /yaml | 接口定义(YAML)
3197
+ *IndexeaClient::IndicesApi* | [**index_cleanup**](docs/IndicesApi.md#index_cleanup) | **POST** /indices/{app}/{index}/cleanup | 清空索引记录
3198
+ *IndexeaClient::IndicesApi* | [**index_copy_to**](docs/IndicesApi.md#index_copy_to) | **POST** /indices/{app}/{index}/copyto | 导出索引数据
3199
+ *IndexeaClient::IndicesApi* | [**index_create**](docs/IndicesApi.md#index_create) | **POST** /indices/{app} | 创建索引
3200
+ *IndexeaClient::IndicesApi* | [**index_create_template**](docs/IndicesApi.md#index_create_template) | **POST** /indices/templates | 创建索引模板
3201
+ *IndexeaClient::IndicesApi* | [**index_delete**](docs/IndicesApi.md#index_delete) | **DELETE** /indices/{app}/{index} | 删除索引
3202
+ *IndexeaClient::IndicesApi* | [**index_delete_crawler_task**](docs/IndicesApi.md#index_delete_crawler_task) | **DELETE** /indices/{app}/{index}/crawler-settings | 删除索引的数据爬取任务
3203
+ *IndexeaClient::IndicesApi* | [**index_delete_template**](docs/IndicesApi.md#index_delete_template) | **DELETE** /indices/templates | 删除索引模板
3204
+ *IndexeaClient::IndicesApi* | [**index_export**](docs/IndicesApi.md#index_export) | **POST** /indices/{app}/{index}/export | 导出索引数据
3205
+ *IndexeaClient::IndicesApi* | [**index_flush**](docs/IndicesApi.md#index_flush) | **POST** /indices/{app}/{index}/flush | 刷新索引数据,主要用于将内存中的索引数据写入磁盘
3206
+ *IndexeaClient::IndicesApi* | [**index_flush_settings**](docs/IndicesApi.md#index_flush_settings) | **PUT** /indices/{app}/{index}/settings | 写入设置信息到索引
3207
+ *IndexeaClient::IndicesApi* | [**index_get**](docs/IndicesApi.md#index_get) | **GET** /indices/{app}/{index} | 获取单个索引详情
3208
+ *IndexeaClient::IndicesApi* | [**index_get_crawler_logs**](docs/IndicesApi.md#index_get_crawler_logs) | **GET** /indices/{app}/{index}/crawler-logs | 获取索引的爬虫任务的爬取日志
3209
+ *IndexeaClient::IndicesApi* | [**index_get_crawler_task**](docs/IndicesApi.md#index_get_crawler_task) | **GET** /indices/{app}/{index}/crawler-settings | 获取索引的爬虫任务设定
3210
+ *IndexeaClient::IndicesApi* | [**index_get_filter_settings**](docs/IndicesApi.md#index_get_filter_settings) | **GET** /indices/{app}/{index}/filter-settings | 获取索引设置信息
3211
+ *IndexeaClient::IndicesApi* | [**index_get_settings**](docs/IndicesApi.md#index_get_settings) | **GET** /indices/{app}/{index}/settings | 获取索引设置信息
3212
+ *IndexeaClient::IndicesApi* | [**index_list**](docs/IndicesApi.md#index_list) | **GET** /indices/{app} | 获取应用的索引列表
3213
+ *IndexeaClient::IndicesApi* | [**index_list_templates**](docs/IndicesApi.md#index_list_templates) | **GET** /indices/templates | 获取所有可用的索引模板
3214
+ *IndexeaClient::IndicesApi* | [**index_prefetch**](docs/IndicesApi.md#index_prefetch) | **GET** /indices/crawler | 获取目标网站内容预览
3215
+ *IndexeaClient::IndicesApi* | [**index_rebuild**](docs/IndicesApi.md#index_rebuild) | **POST** /indices/{app}/{index}/rebuild | 重建索引数据
3216
+ *IndexeaClient::IndicesApi* | [**index_rebuild_task**](docs/IndicesApi.md#index_rebuild_task) | **GET** /indices/{app}/{index}/rebuild | 获取重建索引任务的详情
3217
+ *IndexeaClient::IndicesApi* | [**index_submit_crawler_task**](docs/IndicesApi.md#index_submit_crawler_task) | **POST** /indices/{app}/{index}/crawler-settings | 提交或者更新索引的数据爬取任务
3218
+ *IndexeaClient::IndicesApi* | [**index_update**](docs/IndicesApi.md#index_update) | **PUT** /indices/{app}/{index} | 修改索引
3219
+ *IndexeaClient::IndicesApi* | [**index_update_settings**](docs/IndicesApi.md#index_update_settings) | **POST** /indices/{app}/{index}/settings | 更新索引设置信息
3220
+ *IndexeaClient::IndicesApi* | [**index_update_template**](docs/IndicesApi.md#index_update_template) | **PUT** /indices/templates | 修改索引模板
3221
+ *IndexeaClient::IndicesApi* | [**synonyms_add**](docs/IndicesApi.md#synonyms_add) | **POST** /indices/{app}/{index}/synonyms | 添加同义词
3222
+ *IndexeaClient::IndicesApi* | [**synonyms_delete**](docs/IndicesApi.md#synonyms_delete) | **DELETE** /indices/{app}/{index}/synonyms | 删除同义词
3223
+ *IndexeaClient::IndicesApi* | [**synonyms_enable**](docs/IndicesApi.md#synonyms_enable) | **PATCH** /indices/{app}/{index}/synonyms | 启用禁用同义词
3224
+ *IndexeaClient::IndicesApi* | [**synonyms_flush**](docs/IndicesApi.md#synonyms_flush) | **POST** /indices/{app}/{index}/synonyms-flush | 将同义词更新到搜索引擎的同义词表
3225
+ *IndexeaClient::IndicesApi* | [**synonyms_import**](docs/IndicesApi.md#synonyms_import) | **POST** /indices/{app}/{index}/synonyms-import | 导入同义词
3226
+ *IndexeaClient::IndicesApi* | [**synonyms_list**](docs/IndicesApi.md#synonyms_list) | **GET** /indices/{app}/{index}/synonyms | 获取索引的所有同义词
3227
+ *IndexeaClient::IndicesApi* | [**synonyms_update**](docs/IndicesApi.md#synonyms_update) | **PUT** /indices/{app}/{index}/synonyms | 修改同义词
3228
+ *IndexeaClient::MessageApi* | [**message_delete**](docs/MessageApi.md#message_delete) | **DELETE** /accounts/message | 删除消息
3229
+ *IndexeaClient::MessageApi* | [**message_feedback**](docs/MessageApi.md#message_feedback) | **POST** /accounts/feedback | 反馈意见
3230
+ *IndexeaClient::MessageApi* | [**message_list**](docs/MessageApi.md#message_list) | **GET** /accounts/message | 获取我相关的消息信息,包括未读消息数量、最新消息等
3231
+ *IndexeaClient::MessageApi* | [**message_read**](docs/MessageApi.md#message_read) | **PATCH** /accounts/message | 标识消息为已读
3232
+ *IndexeaClient::MessageApi* | [**message_send**](docs/MessageApi.md#message_send) | **POST** /accounts/message | 发送消息
3233
+ *IndexeaClient::PaymentApi* | [**payment_alipay**](docs/PaymentApi.md#payment_alipay) | **POST** /payment/alipay | 接受支付宝的支付结果
3234
+ *IndexeaClient::PaymentApi* | [**payment_alipay_return**](docs/PaymentApi.md#payment_alipay_return) | **GET** /payment/alipay | 支付宝平台支付完毕后调整到该接口
3235
+ *IndexeaClient::PaymentApi* | [**payment_apply_invoice**](docs/PaymentApi.md#payment_apply_invoice) | **POST** /payment/{app}/invoices | 申请发票
3236
+ *IndexeaClient::PaymentApi* | [**payment_begin_pay**](docs/PaymentApi.md#payment_begin_pay) | **POST** /payment/{app}/orders/{ident} | 支付订单
3237
+ *IndexeaClient::PaymentApi* | [**payment_buy**](docs/PaymentApi.md#payment_buy) | **PUT** /payment/{app}/orders | 下单购买
3238
+ *IndexeaClient::PaymentApi* | [**payment_delete_invoice**](docs/PaymentApi.md#payment_delete_invoice) | **DELETE** /payment/{app}/invoices | 删除发票
3239
+ *IndexeaClient::PaymentApi* | [**payment_delete_order**](docs/PaymentApi.md#payment_delete_order) | **DELETE** /payment/{app}/orders/{ident} | 取消订单
3240
+ *IndexeaClient::PaymentApi* | [**payment_invoices**](docs/PaymentApi.md#payment_invoices) | **GET** /payment/{app}/invoices | 获取发票列表
3241
+ *IndexeaClient::PaymentApi* | [**payment_order**](docs/PaymentApi.md#payment_order) | **GET** /payment/{app}/orders/{ident} | 获取订单详情
3242
+ *IndexeaClient::PaymentApi* | [**payment_orders**](docs/PaymentApi.md#payment_orders) | **POST** /payment/{app}/orders | 订单列表
3243
+ *IndexeaClient::PaymentApi* | [**payment_orders_without_invoice**](docs/PaymentApi.md#payment_orders_without_invoice) | **GET** /payment/{app}/orders_without_invoice | 获取未曾开票的订单列表
3244
+ *IndexeaClient::PaymentApi* | [**payment_price**](docs/PaymentApi.md#payment_price) | **GET** /payment/{app}/price | 获取套餐价格
3245
+ *IndexeaClient::PaymentApi* | [**payment_receipt**](docs/PaymentApi.md#payment_receipt) | **GET** /payment/{app}/orders | 获取订单回执图片
3246
+ *IndexeaClient::PaymentApi* | [**payment_request_contact**](docs/PaymentApi.md#payment_request_contact) | **POST** /payment/{app}/contact | 联系销售获取私有化报价
3247
+ *IndexeaClient::PaymentApi* | [**payment_upload_receipt**](docs/PaymentApi.md#payment_upload_receipt) | **PUT** /payment/{app}/orders/{ident} | 上传转账回执
3248
+ *IndexeaClient::PaymentApi* | [**payment_wepay**](docs/PaymentApi.md#payment_wepay) | **POST** /payment/wepay | 接受微信支付的支付结果
3249
+ *IndexeaClient::QueriesApi* | [**query_analyze**](docs/QueriesApi.md#query_analyze) | **POST** /queries/{app}/analyze | 分词测试
3250
+ *IndexeaClient::QueriesApi* | [**query_copy**](docs/QueriesApi.md#query_copy) | **POST** /queries/{app}/copy | 复制指定查询并创建新查询
3251
+ *IndexeaClient::QueriesApi* | [**query_copy_to_query**](docs/QueriesApi.md#query_copy_to_query) | **PUT** /queries/{app}/copy | 复制查询到已有查询
3252
+ *IndexeaClient::QueriesApi* | [**query_create**](docs/QueriesApi.md#query_create) | **POST** /queries/{app} | 创建搜索
3253
+ *IndexeaClient::QueriesApi* | [**query_create_keyword_bindings**](docs/QueriesApi.md#query_create_keyword_bindings) | **POST** /queries/{app}/keyword-bindings | 创建新的关键词文档绑定
3254
+ *IndexeaClient::QueriesApi* | [**query_create_variable**](docs/QueriesApi.md#query_create_variable) | **POST** /queries/{app}/variables | 创建新的预定义查询变量
3255
+ *IndexeaClient::QueriesApi* | [**query_delete**](docs/QueriesApi.md#query_delete) | **DELETE** /queries/{app} | 删除搜索
3256
+ *IndexeaClient::QueriesApi* | [**query_delete_keyword_bindings**](docs/QueriesApi.md#query_delete_keyword_bindings) | **DELETE** /queries/{app}/keyword-bindings | 删除关键词文档绑定
3257
+ *IndexeaClient::QueriesApi* | [**query_delete_node_positions**](docs/QueriesApi.md#query_delete_node_positions) | **DELETE** /queries/{app}/node-positions | 清除查询条件的节点位置信息
3258
+ *IndexeaClient::QueriesApi* | [**query_delete_variable**](docs/QueriesApi.md#query_delete_variable) | **DELETE** /queries/{app}/variables | 删除预定义查询变量
3259
+ *IndexeaClient::QueriesApi* | [**query_fields**](docs/QueriesApi.md#query_fields) | **GET** /queries/{app}/fields | 获取查询关联的所有索引的字段信息
3260
+ *IndexeaClient::QueriesApi* | [**query_get**](docs/QueriesApi.md#query_get) | **GET** /queries/{app}/{query} | 获取查询的详情
3261
+ *IndexeaClient::QueriesApi* | [**query_get_node_positions**](docs/QueriesApi.md#query_get_node_positions) | **GET** /queries/{app}/node-positions | 获取查询条件的节点位置信息
3262
+ *IndexeaClient::QueriesApi* | [**query_get_record**](docs/QueriesApi.md#query_get_record) | **GET** /queries/{app}/record | 获取记录的详情
3263
+ *IndexeaClient::QueriesApi* | [**query_keyword_bindings**](docs/QueriesApi.md#query_keyword_bindings) | **GET** /queries/{app}/keyword-bindings | 获取查询的关键词文档绑定列表
3264
+ *IndexeaClient::QueriesApi* | [**query_list**](docs/QueriesApi.md#query_list) | **GET** /queries/{app} | 获取应用下所有索引下的查询列表(按索引进行分组)
3265
+ *IndexeaClient::QueriesApi* | [**query_profile**](docs/QueriesApi.md#query_profile) | **GET** /queries/{app}/profiler | 获取搜索诊断信息
3266
+ *IndexeaClient::QueriesApi* | [**query_records_of_keyword_binding**](docs/QueriesApi.md#query_records_of_keyword_binding) | **GET** /queries/{app}/keyword-bindings-records | 获取关键词绑定对应的记录列表
3267
+ *IndexeaClient::QueriesApi* | [**query_save_intelligent_mappings**](docs/QueriesApi.md#query_save_intelligent_mappings) | **PUT** /queries/{app}/intelligent-mappings | 设置索引智能匹配字段
3268
+ *IndexeaClient::QueriesApi* | [**query_save_node_positions**](docs/QueriesApi.md#query_save_node_positions) | **PUT** /queries/{app}/node-positions | 保存查询条件的节点位置信息
3269
+ *IndexeaClient::QueriesApi* | [**query_search**](docs/QueriesApi.md#query_search) | **GET** /queries/{app}/search | 搜索测试
3270
+ *IndexeaClient::QueriesApi* | [**query_source**](docs/QueriesApi.md#query_source) | **POST** /queries/{app}/{query} | 获取最终查询的源码(JSON)
3271
+ *IndexeaClient::QueriesApi* | [**query_suggest**](docs/QueriesApi.md#query_suggest) | **GET** /queries/{app}/suggest | 获取搜索建议列表
3272
+ *IndexeaClient::QueriesApi* | [**query_test_intelligent_mappings**](docs/QueriesApi.md#query_test_intelligent_mappings) | **POST** /queries/{app}/intelligent-mappings | 测试索引智能匹配字段
3273
+ *IndexeaClient::QueriesApi* | [**query_update**](docs/QueriesApi.md#query_update) | **PUT** /queries/{app} | 修改查询
3274
+ *IndexeaClient::QueriesApi* | [**query_update_keyword_bindings**](docs/QueriesApi.md#query_update_keyword_bindings) | **PATCH** /queries/{app}/keyword-bindings | 修改关键词文档绑定
3275
+ *IndexeaClient::QueriesApi* | [**query_update_settings**](docs/QueriesApi.md#query_update_settings) | **POST** /queries/{app}/settings | 更改查询的设置项
3276
+ *IndexeaClient::QueriesApi* | [**query_update_variable**](docs/QueriesApi.md#query_update_variable) | **PATCH** /queries/{app}/variables | 修改预定义查询变量
3277
+ *IndexeaClient::QueriesApi* | [**query_validate**](docs/QueriesApi.md#query_validate) | **GET** /queries/{app}/validate | 获取搜索验证结果
3278
+ *IndexeaClient::QueriesApi* | [**query_validate_aggregation**](docs/QueriesApi.md#query_validate_aggregation) | **POST** /queries/{app}/validate-aggregation | 验证聚合定义是否正确
3279
+ *IndexeaClient::QueriesApi* | [**query_validate_query**](docs/QueriesApi.md#query_validate_query) | **POST** /queries/{app}/validate-query | 验证聚合定义是否正确
3280
+ *IndexeaClient::QueriesApi* | [**query_validate_script_field**](docs/QueriesApi.md#query_validate_script_field) | **POST** /queries/{app}/validate-script-field | 验证脚本字段是否正确
3281
+ *IndexeaClient::QueriesApi* | [**query_validate_script_score**](docs/QueriesApi.md#query_validate_script_score) | **POST** /queries/{app}/validate-script-score | 验证脚本字段是否正确
3282
+ *IndexeaClient::QueriesApi* | [**query_validate_suggestion**](docs/QueriesApi.md#query_validate_suggestion) | **POST** /queries/{app}/validate-suggest | 验证建议是否正确
3283
+ *IndexeaClient::QueriesApi* | [**query_variables**](docs/QueriesApi.md#query_variables) | **GET** /queries/{app}/variables | 获取应用的预定义查询变量列表
3284
+ *IndexeaClient::RecommendApi* | [**recommend_click**](docs/RecommendApi.md#recommend_click) | **POST** /recommend/{ident}/click | 推荐结果点击行为收集
3285
+ *IndexeaClient::RecommendApi* | [**recommend_create**](docs/RecommendApi.md#recommend_create) | **POST** /recommends/{app} | 创建新的推荐
3286
+ *IndexeaClient::RecommendApi* | [**recommend_delete**](docs/RecommendApi.md#recommend_delete) | **DELETE** /recommends/{app} | 删除推荐
3287
+ *IndexeaClient::RecommendApi* | [**recommend_detail**](docs/RecommendApi.md#recommend_detail) | **GET** /recommend/{ident} | 获取推荐的记录列表
3288
+ *IndexeaClient::RecommendApi* | [**recommend_fetch**](docs/RecommendApi.md#recommend_fetch) | **POST** /recommend/{ident} | 获取推荐的记录列表
3289
+ *IndexeaClient::RecommendApi* | [**recommend_list**](docs/RecommendApi.md#recommend_list) | **GET** /recommends/{app} | 获取已定义的推荐列表
3290
+ *IndexeaClient::RecommendApi* | [**recommend_update**](docs/RecommendApi.md#recommend_update) | **PUT** /recommends/{app} | 更新推荐信息
3291
+ *IndexeaClient::RecordsApi* | [**record_delete**](docs/RecordsApi.md#record_delete) | **DELETE** /records/{app}/{index} | 删除记录数据
3292
+ *IndexeaClient::RecordsApi* | [**record_get**](docs/RecordsApi.md#record_get) | **GET** /records/{app}/{index} | 获取单条记录详情
3293
+ *IndexeaClient::RecordsApi* | [**record_list**](docs/RecordsApi.md#record_list) | **POST** /records/{app}/{index} | 获取索引记录列表
3294
+ *IndexeaClient::RecordsApi* | [**record_push**](docs/RecordsApi.md#record_push) | **PUT** /records/{app}/{index} | 插入或者更新索引数据
3295
+ *IndexeaClient::RecordsApi* | [**record_upload**](docs/RecordsApi.md#record_upload) | **POST** /records/{app}/{index}/upload | 上传记录
3296
+ *IndexeaClient::SearchApi* | [**search_click**](docs/SearchApi.md#search_click) | **POST** /search/widget/{widget}/click | 搜索结果点击行为收集
3297
+ *IndexeaClient::SearchApi* | [**search_histories**](docs/SearchApi.md#search_histories) | **GET** /search/widget/{widget}/histories | 获取当前搜索用户的最新搜索记录
3298
+ *IndexeaClient::SearchApi* | [**search_logs**](docs/SearchApi.md#search_logs) | **GET** /apps/{app}/logs-searchs | 获取搜索日志
3299
+ *IndexeaClient::SearchApi* | [**search_query_histories**](docs/SearchApi.md#search_query_histories) | **GET** /search/query/{query}/histories | 获取当前搜索用户的最新搜索记录
3300
+ *IndexeaClient::SearchApi* | [**search_query_hot_words**](docs/SearchApi.md#search_query_hot_words) | **GET** /search/query/{query}/hotwords | 获取查询相关热词
3301
+ *IndexeaClient::SearchApi* | [**search_query_repeat_scroll**](docs/SearchApi.md#search_query_repeat_scroll) | **POST** /search/scroll/{query} | 读取滚动搜索结果
3302
+ *IndexeaClient::SearchApi* | [**search_query_scroll**](docs/SearchApi.md#search_query_scroll) | **GET** /search/scroll/{query} | 基于查询的滚动搜索
3303
+ *IndexeaClient::SearchApi* | [**search_query_search**](docs/SearchApi.md#search_query_search) | **GET** /search/query/{query} | 基于查询的公开搜索
3304
+ *IndexeaClient::SearchApi* | [**search_widget_auto_complete**](docs/SearchApi.md#search_widget_auto_complete) | **GET** /search/widget/{widget}/autocomplete | 基于组件的搜索词自动完成
3305
+ *IndexeaClient::SearchApi* | [**search_widget_hot_words**](docs/SearchApi.md#search_widget_hot_words) | **GET** /search/widget/{widget}/hotwords | 获取组件搜索的相关热词
3306
+ *IndexeaClient::SearchApi* | [**search_widget_search**](docs/SearchApi.md#search_widget_search) | **GET** /search/widget/{widget} | 基于组件的公开搜索
3307
+ *IndexeaClient::StatsApi* | [**stats_recomms**](docs/StatsApi.md#stats_recomms) | **GET** /stats/{app}/recomms | 获取推荐日志的汇总信息
3308
+ *IndexeaClient::StatsApi* | [**stats_searchs**](docs/StatsApi.md#stats_searchs) | **GET** /stats/{app}/searchs | 获取搜索日志的汇总信息
3309
+ *IndexeaClient::StatsApi* | [**stats_top_clicks**](docs/StatsApi.md#stats_top_clicks) | **GET** /stats/{app}/top-clicks | 获取点击排行榜
3310
+ *IndexeaClient::StatsApi* | [**stats_widgets**](docs/StatsApi.md#stats_widgets) | **GET** /stats/{app}/widgets | 获取模板与组件的统计信息
3311
+ *IndexeaClient::WidgetsApi* | [**widget_copy**](docs/WidgetsApi.md#widget_copy) | **POST** /widget/{app}/copy | 复制指定组件并创建新组件
3312
+ *IndexeaClient::WidgetsApi* | [**widget_copy_to_widget**](docs/WidgetsApi.md#widget_copy_to_widget) | **PUT** /widget/{app}/copy | 复制组件到已有组件
3313
+ *IndexeaClient::WidgetsApi* | [**widget_create**](docs/WidgetsApi.md#widget_create) | **POST** /widgets/{app} | 创建组件
3314
+ *IndexeaClient::WidgetsApi* | [**widget_delete**](docs/WidgetsApi.md#widget_delete) | **DELETE** /widgets/{app}/{widget} | 删除组件
3315
+ *IndexeaClient::WidgetsApi* | [**widget_detail**](docs/WidgetsApi.md#widget_detail) | **GET** /widget/{ident} | 获取UI组件的所有相关信息
3316
+ *IndexeaClient::WidgetsApi* | [**widget_download**](docs/WidgetsApi.md#widget_download) | **GET** /widgets/{app}/{widget}/download | 下载组件应用源码
3317
+ *IndexeaClient::WidgetsApi* | [**widget_get**](docs/WidgetsApi.md#widget_get) | **GET** /widgets/{app}/{widget} | 获取组件的详情
3318
+ *IndexeaClient::WidgetsApi* | [**widget_list**](docs/WidgetsApi.md#widget_list) | **GET** /widgets/{app} | 获取应用的组件列表
3319
+ *IndexeaClient::WidgetsApi* | [**widget_logo**](docs/WidgetsApi.md#widget_logo) | **POST** /widgets/{app}/{widget}/logo | 设置组件 Logo
3320
+ *IndexeaClient::WidgetsApi* | [**widget_update**](docs/WidgetsApi.md#widget_update) | **PUT** /widgets/{app}/{widget} | 修改组件
3321
+ *IndexeaClient::WidgetsApi* | [**widget_update_settings**](docs/WidgetsApi.md#widget_update_settings) | **PATCH** /widgets/{app}/{widget} | 修改组件设置参数
3322
+
3323
+ ## Documentation for Models
3324
+
3325
+ - [IndexeaClient::AccountBean](docs/AccountBean.md)
3326
+ - [IndexeaClient::AccountPasswdBody](docs/AccountPasswdBody.md)
3327
+ - [IndexeaClient::AccountPortraitBody](docs/AccountPortraitBody.md)
3328
+ - [IndexeaClient::AccountProfileBody](docs/AccountProfileBody.md)
3329
+ - [IndexeaClient::AccountResetpwdBody](docs/AccountResetpwdBody.md)
3330
+ - [IndexeaClient::AccountSigninBody](docs/AccountSigninBody.md)
3331
+ - [IndexeaClient::AccountSignupBody](docs/AccountSignupBody.md)
3332
+ - [IndexeaClient::AccountsFeedbackBody](docs/AccountsFeedbackBody.md)
3333
+ - [IndexeaClient::AccountsMessageBody](docs/AccountsMessageBody.md)
3334
+ - [IndexeaClient::AnalyzeObject](docs/AnalyzeObject.md)
3335
+ - [IndexeaClient::AnalyzeToken](docs/AnalyzeToken.md)
3336
+ - [IndexeaClient::AppBean](docs/AppBean.md)
3337
+ - [IndexeaClient::AppCompanyBody](docs/AppCompanyBody.md)
3338
+ - [IndexeaClient::AppIndexBody](docs/AppIndexBody.md)
3339
+ - [IndexeaClient::AppLogAccount](docs/AppLogAccount.md)
3340
+ - [IndexeaClient::AppLogBean](docs/AppLogBean.md)
3341
+ - [IndexeaClient::AppLogsBean](docs/AppLogsBean.md)
3342
+ - [IndexeaClient::AppMentorBean](docs/AppMentorBean.md)
3343
+ - [IndexeaClient::AppOauthBody](docs/AppOauthBody.md)
3344
+ - [IndexeaClient::AppOauthBody1](docs/AppOauthBody1.md)
3345
+ - [IndexeaClient::AppOauthresetsecretBody](docs/AppOauthresetsecretBody.md)
3346
+ - [IndexeaClient::AppTokensBody](docs/AppTokensBody.md)
3347
+ - [IndexeaClient::AppTokensBody1](docs/AppTokensBody1.md)
3348
+ - [IndexeaClient::AppWidgetBody](docs/AppWidgetBody.md)
3349
+ - [IndexeaClient::AppsAppBody](docs/AppsAppBody.md)
3350
+ - [IndexeaClient::AppsBody](docs/AppsBody.md)
3351
+ - [IndexeaClient::AutoCompleteItem](docs/AutoCompleteItem.md)
3352
+ - [IndexeaClient::BlacklistBean](docs/BlacklistBean.md)
3353
+ - [IndexeaClient::Bulletin](docs/Bulletin.md)
3354
+ - [IndexeaClient::CompanyBean](docs/CompanyBean.md)
3355
+ - [IndexeaClient::ContactForm](docs/ContactForm.md)
3356
+ - [IndexeaClient::CrawlerLog](docs/CrawlerLog.md)
3357
+ - [IndexeaClient::CrawlerLogs](docs/CrawlerLogs.md)
3358
+ - [IndexeaClient::CrawlerTask](docs/CrawlerTask.md)
3359
+ - [IndexeaClient::GlobalOptionForm](docs/GlobalOptionForm.md)
3360
+ - [IndexeaClient::IndexBean](docs/IndexBean.md)
3361
+ - [IndexeaClient::IndexFieldBean](docs/IndexFieldBean.md)
3362
+ - [IndexeaClient::IndexForm](docs/IndexForm.md)
3363
+ - [IndexeaClient::IndexRebuildForm](docs/IndexRebuildForm.md)
3364
+ - [IndexeaClient::IndexSettings](docs/IndexSettings.md)
3365
+ - [IndexeaClient::IndexSettingsBody](docs/IndexSettingsBody.md)
3366
+ - [IndexeaClient::IndexStatBean](docs/IndexStatBean.md)
3367
+ - [IndexeaClient::IndexSynonymsflushBody](docs/IndexSynonymsflushBody.md)
3368
+ - [IndexeaClient::IndexTask](docs/IndexTask.md)
3369
+ - [IndexeaClient::IndexTemplate](docs/IndexTemplate.md)
3370
+ - [IndexeaClient::IndexTemplates](docs/IndexTemplates.md)
3371
+ - [IndexeaClient::IndexUploadBody](docs/IndexUploadBody.md)
3372
+ - [IndexeaClient::IntelligentMapping](docs/IntelligentMapping.md)
3373
+ - [IndexeaClient::KeywordBindingBean](docs/KeywordBindingBean.md)
3374
+ - [IndexeaClient::MentorForm](docs/MentorForm.md)
3375
+ - [IndexeaClient::Message](docs/Message.md)
3376
+ - [IndexeaClient::Messages](docs/Messages.md)
3377
+ - [IndexeaClient::OauthAppBean](docs/OauthAppBean.md)
3378
+ - [IndexeaClient::OpenidBean](docs/OpenidBean.md)
3379
+ - [IndexeaClient::OptionForm](docs/OptionForm.md)
3380
+ - [IndexeaClient::OrdersIdentBody](docs/OrdersIdentBody.md)
3381
+ - [IndexeaClient::PayResult](docs/PayResult.md)
3382
+ - [IndexeaClient::PaymentInvoice](docs/PaymentInvoice.md)
3383
+ - [IndexeaClient::PaymentOrder](docs/PaymentOrder.md)
3384
+ - [IndexeaClient::PaymentRecord](docs/PaymentRecord.md)
3385
+ - [IndexeaClient::PaymentService](docs/PaymentService.md)
3386
+ - [IndexeaClient::QueryActionBean](docs/QueryActionBean.md)
3387
+ - [IndexeaClient::QueryBean](docs/QueryBean.md)
3388
+ - [IndexeaClient::QueryForm](docs/QueryForm.md)
3389
+ - [IndexeaClient::QueryNode](docs/QueryNode.md)
3390
+ - [IndexeaClient::QuerySortField](docs/QuerySortField.md)
3391
+ - [IndexeaClient::QueryVariableBean](docs/QueryVariableBean.md)
3392
+ - [IndexeaClient::RecommendBean](docs/RecommendBean.md)
3393
+ - [IndexeaClient::RecordFilter](docs/RecordFilter.md)
3394
+ - [IndexeaClient::SearchEstimateResult](docs/SearchEstimateResult.md)
3395
+ - [IndexeaClient::SearchWord](docs/SearchWord.md)
3396
+ - [IndexeaClient::StatIndexBean](docs/StatIndexBean.md)
3397
+ - [IndexeaClient::SynonymsBean](docs/SynonymsBean.md)
3398
+ - [IndexeaClient::TokenBean](docs/TokenBean.md)
3399
+ - [IndexeaClient::TriggerBean](docs/TriggerBean.md)
3400
+ - [IndexeaClient::TriggerLogBean](docs/TriggerLogBean.md)
3401
+ - [IndexeaClient::ValueOfField](docs/ValueOfField.md)
3402
+ - [IndexeaClient::WidgetBean](docs/WidgetBean.md)
3403
+ - [IndexeaClient::WidgetForm](docs/WidgetForm.md)
3404
+ - [IndexeaClient::WidgetLogo](docs/WidgetLogo.md)
3405
+ - [IndexeaClient::WidgetLogoBody](docs/WidgetLogoBody.md)
3406
+ - [IndexeaClient::WidgetStatusForm](docs/WidgetStatusForm.md)
3407
+
3408
+ ## Documentation for Authorization
3409
+
3410
+
3411
+ ### TokenAuth
3412
+
3413
+