zsgf_client 1.0.18

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 (672) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +430 -0
  4. data/Rakefile +10 -0
  5. data/docs/AccessTokenApi.md +307 -0
  6. data/docs/AccessTokenListResult.md +20 -0
  7. data/docs/AccessTokenListResultApiResponse.md +22 -0
  8. data/docs/AccessTokenPostRequest.md +28 -0
  9. data/docs/AccessTokenPutRequest.md +26 -0
  10. data/docs/AlipayApi.md +453 -0
  11. data/docs/AlipayCreateOrderPagePayRequest.md +24 -0
  12. data/docs/AlipayCreateOrderRequest.md +24 -0
  13. data/docs/AlipayCreateOrderWapPayRequest.md +24 -0
  14. data/docs/AlipayTradeQueryResponse.md +154 -0
  15. data/docs/AlipayTradeQueryResponseApiResponse.md +22 -0
  16. data/docs/AlipayTradeRefundResponse.md +76 -0
  17. data/docs/AlipayTradeRefundResponseApiResponse.md +22 -0
  18. data/docs/App.md +50 -0
  19. data/docs/AppApi.md +735 -0
  20. data/docs/AppApiResponse.md +22 -0
  21. data/docs/AppCheckVersionResult.md +20 -0
  22. data/docs/AppCheckVersionResultApiResponse.md +22 -0
  23. data/docs/AppInfoItem.md +32 -0
  24. data/docs/AppInfoResult.md +20 -0
  25. data/docs/AppInfoResultApiResponse.md +22 -0
  26. data/docs/AppListResult.md +20 -0
  27. data/docs/AppListResultApiResponse.md +22 -0
  28. data/docs/AppPostResult.md +20 -0
  29. data/docs/AppPostResultApiResponse.md +22 -0
  30. data/docs/AppProperty.md +22 -0
  31. data/docs/AppSetting.md +36 -0
  32. data/docs/AppSettingApi.md +1495 -0
  33. data/docs/AppSettingApiResponse.md +22 -0
  34. data/docs/AppSettingGroupPostResult.md +18 -0
  35. data/docs/AppSettingGroupPostResultApiResponse.md +22 -0
  36. data/docs/AppSettingItemPostResult.md +18 -0
  37. data/docs/AppSettingItemPostResultApiResponse.md +22 -0
  38. data/docs/AppSettingListApiResponse.md +22 -0
  39. data/docs/AppSettingProviderPostResult.md +18 -0
  40. data/docs/AppSettingProviderPostResultApiResponse.md +22 -0
  41. data/docs/AppSettingSettingPostResult.md +18 -0
  42. data/docs/AppSettingSettingPostResultApiResponse.md +22 -0
  43. data/docs/AppUserConsentModel.md +30 -0
  44. data/docs/AppUserConsentModelListApiResponse.md +22 -0
  45. data/docs/AppUserListResponse.md +40 -0
  46. data/docs/AppUserResetPwdRequest.md +24 -0
  47. data/docs/AuthorizePolicy.md +28 -0
  48. data/docs/AuthorizePolicyApi.md +377 -0
  49. data/docs/AuthorizePolicyApiResponse.md +22 -0
  50. data/docs/AuthorizePolicyListApiResponse.md +22 -0
  51. data/docs/AuthorizeResult.md +26 -0
  52. data/docs/AuthorizeResultApiResponse.md +22 -0
  53. data/docs/BkAgentRespInfo.md +26 -0
  54. data/docs/BooleanApiResponse.md +22 -0
  55. data/docs/ChargeInfo.md +30 -0
  56. data/docs/CommonFriendModel.md +22 -0
  57. data/docs/ContributeDetail.md +20 -0
  58. data/docs/CreateOrderRequest.md +24 -0
  59. data/docs/CreateOrderResult.md +20 -0
  60. data/docs/CreateOrderResultApiResponse.md +22 -0
  61. data/docs/CreatePostResult.md +18 -0
  62. data/docs/CreatePostResultApiResponse.md +22 -0
  63. data/docs/Currency.md +48 -0
  64. data/docs/CurrencyApi.md +677 -0
  65. data/docs/CurrencyApiResponse.md +22 -0
  66. data/docs/CurrencyConsumeRequest.md +26 -0
  67. data/docs/CurrencyExchangeRate.md +30 -0
  68. data/docs/CurrencyExchangeRateApiResponse.md +22 -0
  69. data/docs/CurrencyListApiResponse.md +22 -0
  70. data/docs/CurrencyTransaction.md +40 -0
  71. data/docs/CurrencyTransactionListApiResponse.md +22 -0
  72. data/docs/DingTalkApi.md +81 -0
  73. data/docs/DirectoryItem.md +24 -0
  74. data/docs/EmailSignInRequest.md +22 -0
  75. data/docs/EmailSignUpRequest.md +32 -0
  76. data/docs/EnterprisePayInfo.md +22 -0
  77. data/docs/ExchangeCurrencyRequest.md +28 -0
  78. data/docs/ExchangeRatePutRequest.md +22 -0
  79. data/docs/ExecuteFunctionRequest.md +18 -0
  80. data/docs/FileApi.md +385 -0
  81. data/docs/FileItem.md +24 -0
  82. data/docs/FileListResult.md +26 -0
  83. data/docs/FileListResultApiResponse.md +22 -0
  84. data/docs/FollowerModel.md +40 -0
  85. data/docs/FollowerPutModel.md +28 -0
  86. data/docs/FulfillmentDetail.md +22 -0
  87. data/docs/GeoLocationModel.md +58 -0
  88. data/docs/GeoLocationModelApiResponse.md +22 -0
  89. data/docs/GeoLocationResponseModel.md +60 -0
  90. data/docs/GoodsDetail.md +38 -0
  91. data/docs/GrantRequest.md +32 -0
  92. data/docs/GrantResult.md +24 -0
  93. data/docs/GrantResultApiResponse.md +22 -0
  94. data/docs/HbFqPayInfo.md +20 -0
  95. data/docs/Int64ApiResponse.md +22 -0
  96. data/docs/IntactChargeInfo.md +40 -0
  97. data/docs/ListResponseItem.md +36 -0
  98. data/docs/ListResponseItemListApiResponse.md +22 -0
  99. data/docs/OAuthAccountBindRequest.md +26 -0
  100. data/docs/OAuthAccountPutBindRequest.md +22 -0
  101. data/docs/OAuthAccountSignInRequest.md +22 -0
  102. data/docs/OAuthApi.md +361 -0
  103. data/docs/ObjectApiResponse.md +22 -0
  104. data/docs/ObjectListApiResponse.md +22 -0
  105. data/docs/Order.md +54 -0
  106. data/docs/OrderApi.md +243 -0
  107. data/docs/OrderApiResponse.md +22 -0
  108. data/docs/OrderListResult.md +20 -0
  109. data/docs/OrderListResultApiResponse.md +22 -0
  110. data/docs/PaymentInfoWithId.md +20 -0
  111. data/docs/PhoneSignInRequest.md +22 -0
  112. data/docs/PhoneSignUpRequest.md +32 -0
  113. data/docs/PostIndexRequest.md +20 -0
  114. data/docs/PostResult.md +18 -0
  115. data/docs/PostResultApiResponse.md +22 -0
  116. data/docs/PresetPayToolInfo.md +20 -0
  117. data/docs/ProfileResult.md +44 -0
  118. data/docs/ProfileResultApiResponse.md +22 -0
  119. data/docs/Project.md +34 -0
  120. data/docs/ProjectApi.md +367 -0
  121. data/docs/ProjectApiResponse.md +22 -0
  122. data/docs/ProjectListResult.md +20 -0
  123. data/docs/ProjectListResultApiResponse.md +22 -0
  124. data/docs/QRCodePreSignInRequest.md +22 -0
  125. data/docs/QRCodeScanRequest.md +18 -0
  126. data/docs/QRCodeSignInRequest.md +18 -0
  127. data/docs/QRCodeSignUpRequest.md +34 -0
  128. data/docs/RechargePointRequest.md +26 -0
  129. data/docs/RecommendFriend.md +36 -0
  130. data/docs/RefundChargeInfo.md +24 -0
  131. data/docs/RefundSubFee.md +20 -0
  132. data/docs/ReturnPageNotifyRequest.md +40 -0
  133. data/docs/SendEmailCodeRequest.md +20 -0
  134. data/docs/SendSMSCodeRequest.md +20 -0
  135. data/docs/ServiceGroup.md +36 -0
  136. data/docs/ServiceGroupApiResponse.md +22 -0
  137. data/docs/ServiceGroupListApiResponse.md +22 -0
  138. data/docs/ServiceItem.md +48 -0
  139. data/docs/ServiceItemApiResponse.md +22 -0
  140. data/docs/ServiceItemListApiResponse.md +22 -0
  141. data/docs/ServiceProvider.md +38 -0
  142. data/docs/ServiceProviderApiResponse.md +22 -0
  143. data/docs/ServiceProviderListApiResponse.md +22 -0
  144. data/docs/ServiceSettingApi.md +1459 -0
  145. data/docs/ServiceSettingGroupPostResult.md +18 -0
  146. data/docs/ServiceSettingGroupPostResultApiResponse.md +22 -0
  147. data/docs/ServiceSettingItemPostResult.md +18 -0
  148. data/docs/ServiceSettingItemPostResultApiResponse.md +22 -0
  149. data/docs/ServiceSettingProviderPostResult.md +18 -0
  150. data/docs/ServiceSettingProviderPostResultApiResponse.md +22 -0
  151. data/docs/ServiceSettingSettingPostResult.md +18 -0
  152. data/docs/ServiceSettingSettingPostResultApiResponse.md +22 -0
  153. data/docs/Settings.md +40 -0
  154. data/docs/SettingsApiResponse.md +22 -0
  155. data/docs/SettingsListApiResponse.md +22 -0
  156. data/docs/SetupCode.md +22 -0
  157. data/docs/SetupCodeApiResponse.md +22 -0
  158. data/docs/SignInRequest.md +22 -0
  159. data/docs/SignUpRequest.md +34 -0
  160. data/docs/StorageApi.md +1229 -0
  161. data/docs/StorageListResult.md +26 -0
  162. data/docs/StorageListResultApiResponse.md +22 -0
  163. data/docs/StringApiResponse.md +22 -0
  164. data/docs/StringListApiResponse.md +22 -0
  165. data/docs/SubFee.md +22 -0
  166. data/docs/SystemDirectoryItem.md +24 -0
  167. data/docs/SystemFileApi.md +371 -0
  168. data/docs/SystemFileItem.md +24 -0
  169. data/docs/SystemFileListResult.md +22 -0
  170. data/docs/SystemFileListResultApiResponse.md +22 -0
  171. data/docs/TapPayInfo.md +18 -0
  172. data/docs/Team.md +36 -0
  173. data/docs/TeamApi.md +297 -0
  174. data/docs/TokenModel.md +22 -0
  175. data/docs/TokenModelApiResponse.md +22 -0
  176. data/docs/TradeFundBill.md +26 -0
  177. data/docs/TradeSettleDetail.md +32 -0
  178. data/docs/TradeSettleInfo.md +20 -0
  179. data/docs/UnionIDSignInRequest.md +22 -0
  180. data/docs/UnionIDSignUpRequest.md +38 -0
  181. data/docs/UpdateProfileRequest.md +50 -0
  182. data/docs/User.md +90 -0
  183. data/docs/UserAccessToken.md +38 -0
  184. data/docs/UserApi.md +3303 -0
  185. data/docs/UserApiResponse.md +22 -0
  186. data/docs/UserCommonInterestsResult.md +20 -0
  187. data/docs/UserCommonInterestsResultApiResponse.md +22 -0
  188. data/docs/UserCurrency.md +24 -0
  189. data/docs/UserCurrencyApi.md +403 -0
  190. data/docs/UserCurrencyCurrencyTransResult.md +20 -0
  191. data/docs/UserCurrencyCurrencyTransResultApiResponse.md +22 -0
  192. data/docs/UserCurrencyListApiResponse.md +22 -0
  193. data/docs/UserFollowersResult.md +20 -0
  194. data/docs/UserFollowersResultApiResponse.md +22 -0
  195. data/docs/UserFollowingResult.md +20 -0
  196. data/docs/UserFollowingResultApiResponse.md +22 -0
  197. data/docs/UserFriendsNearByResult.md +20 -0
  198. data/docs/UserFriendsNearByResultApiResponse.md +22 -0
  199. data/docs/UserListResult.md +20 -0
  200. data/docs/UserListResultApiResponse.md +22 -0
  201. data/docs/UserLocationPostResult.md +18 -0
  202. data/docs/UserLocationPostResultApiResponse.md +22 -0
  203. data/docs/UserLocationsResult.md +20 -0
  204. data/docs/UserLocationsResultApiResponse.md +22 -0
  205. data/docs/UserLogins.md +36 -0
  206. data/docs/UserLoginsListApiResponse.md +22 -0
  207. data/docs/UserMutualFollowersResult.md +20 -0
  208. data/docs/UserMutualFollowersResultApiResponse.md +22 -0
  209. data/docs/UserMutualFollowingsResult.md +20 -0
  210. data/docs/UserMutualFollowingsResultApiResponse.md +22 -0
  211. data/docs/UserProfileResult.md +48 -0
  212. data/docs/UserProfileResultApiResponse.md +22 -0
  213. data/docs/UserQRCodeScanResult.md +34 -0
  214. data/docs/UserQRCodeScanResultApiResponse.md +22 -0
  215. data/docs/UserSetting.md +38 -0
  216. data/docs/UserSettingApi.md +379 -0
  217. data/docs/UserSettingApiResponse.md +22 -0
  218. data/docs/UserSettingListApiResponse.md +22 -0
  219. data/docs/UserSettingPostResult.md +18 -0
  220. data/docs/UserSettingPostResultApiResponse.md +22 -0
  221. data/docs/VoucherDetail.md +40 -0
  222. data/docs/WechatApi.md +751 -0
  223. data/docs/WechatJSConfigResult.md +26 -0
  224. data/docs/WechatJSConfigResultApiResponse.md +22 -0
  225. data/lib/zsgf_client/api/access_token_api.rb +309 -0
  226. data/lib/zsgf_client/api/alipay_api.rb +437 -0
  227. data/lib/zsgf_client/api/app_api.rb +675 -0
  228. data/lib/zsgf_client/api/app_setting_api.rb +1446 -0
  229. data/lib/zsgf_client/api/authorize_policy_api.rb +375 -0
  230. data/lib/zsgf_client/api/currency_api.rb +667 -0
  231. data/lib/zsgf_client/api/ding_talk_api.rb +88 -0
  232. data/lib/zsgf_client/api/file_api.rb +369 -0
  233. data/lib/zsgf_client/api/o_auth_api.rb +349 -0
  234. data/lib/zsgf_client/api/order_api.rb +251 -0
  235. data/lib/zsgf_client/api/project_api.rb +345 -0
  236. data/lib/zsgf_client/api/service_setting_api.rb +1340 -0
  237. data/lib/zsgf_client/api/storage_api.rb +1311 -0
  238. data/lib/zsgf_client/api/system_file_api.rb +333 -0
  239. data/lib/zsgf_client/api/team_api.rb +282 -0
  240. data/lib/zsgf_client/api/user_api.rb +3164 -0
  241. data/lib/zsgf_client/api/user_currency_api.rb +445 -0
  242. data/lib/zsgf_client/api/user_setting_api.rb +378 -0
  243. data/lib/zsgf_client/api/wechat_api.rb +712 -0
  244. data/lib/zsgf_client/api_client.rb +393 -0
  245. data/lib/zsgf_client/api_error.rb +58 -0
  246. data/lib/zsgf_client/configuration.rb +312 -0
  247. data/lib/zsgf_client/models/access_token_list_result.rb +232 -0
  248. data/lib/zsgf_client/models/access_token_list_result_api_response.rb +245 -0
  249. data/lib/zsgf_client/models/access_token_post_request.rb +322 -0
  250. data/lib/zsgf_client/models/access_token_put_request.rb +299 -0
  251. data/lib/zsgf_client/models/alipay_create_order_page_pay_request.rb +330 -0
  252. data/lib/zsgf_client/models/alipay_create_order_request.rb +330 -0
  253. data/lib/zsgf_client/models/alipay_create_order_wap_pay_request.rb +330 -0
  254. data/lib/zsgf_client/models/alipay_trade_query_response.rb +909 -0
  255. data/lib/zsgf_client/models/alipay_trade_query_response_api_response.rb +245 -0
  256. data/lib/zsgf_client/models/alipay_trade_refund_response.rb +515 -0
  257. data/lib/zsgf_client/models/alipay_trade_refund_response_api_response.rb +245 -0
  258. data/lib/zsgf_client/models/app.rb +583 -0
  259. data/lib/zsgf_client/models/app_api_response.rb +245 -0
  260. data/lib/zsgf_client/models/app_check_version_result.rb +235 -0
  261. data/lib/zsgf_client/models/app_check_version_result_api_response.rb +245 -0
  262. data/lib/zsgf_client/models/app_info_item.rb +289 -0
  263. data/lib/zsgf_client/models/app_info_result.rb +232 -0
  264. data/lib/zsgf_client/models/app_info_result_api_response.rb +245 -0
  265. data/lib/zsgf_client/models/app_list_result.rb +232 -0
  266. data/lib/zsgf_client/models/app_list_result_api_response.rb +245 -0
  267. data/lib/zsgf_client/models/app_post_result.rb +230 -0
  268. data/lib/zsgf_client/models/app_post_result_api_response.rb +245 -0
  269. data/lib/zsgf_client/models/app_property.rb +241 -0
  270. data/lib/zsgf_client/models/app_setting.rb +437 -0
  271. data/lib/zsgf_client/models/app_setting_api_response.rb +245 -0
  272. data/lib/zsgf_client/models/app_setting_group_post_result.rb +220 -0
  273. data/lib/zsgf_client/models/app_setting_group_post_result_api_response.rb +245 -0
  274. data/lib/zsgf_client/models/app_setting_item_post_result.rb +220 -0
  275. data/lib/zsgf_client/models/app_setting_item_post_result_api_response.rb +245 -0
  276. data/lib/zsgf_client/models/app_setting_list_api_response.rb +249 -0
  277. data/lib/zsgf_client/models/app_setting_provider_post_result.rb +220 -0
  278. data/lib/zsgf_client/models/app_setting_provider_post_result_api_response.rb +245 -0
  279. data/lib/zsgf_client/models/app_setting_setting_post_result.rb +220 -0
  280. data/lib/zsgf_client/models/app_setting_setting_post_result_api_response.rb +245 -0
  281. data/lib/zsgf_client/models/app_user_consent_model.rb +278 -0
  282. data/lib/zsgf_client/models/app_user_consent_model_list_api_response.rb +249 -0
  283. data/lib/zsgf_client/models/app_user_list_response.rb +327 -0
  284. data/lib/zsgf_client/models/app_user_reset_pwd_request.rb +323 -0
  285. data/lib/zsgf_client/models/authorize_policy.rb +290 -0
  286. data/lib/zsgf_client/models/authorize_policy_api_response.rb +245 -0
  287. data/lib/zsgf_client/models/authorize_policy_list_api_response.rb +249 -0
  288. data/lib/zsgf_client/models/authorize_result.rb +259 -0
  289. data/lib/zsgf_client/models/authorize_result_api_response.rb +245 -0
  290. data/lib/zsgf_client/models/bk_agent_resp_info.rb +261 -0
  291. data/lib/zsgf_client/models/boolean_api_response.rb +246 -0
  292. data/lib/zsgf_client/models/charge_info.rb +283 -0
  293. data/lib/zsgf_client/models/common_friend_model.rb +240 -0
  294. data/lib/zsgf_client/models/contribute_detail.rb +231 -0
  295. data/lib/zsgf_client/models/create_order_request.rb +351 -0
  296. data/lib/zsgf_client/models/create_order_result.rb +230 -0
  297. data/lib/zsgf_client/models/create_order_result_api_response.rb +245 -0
  298. data/lib/zsgf_client/models/create_post_result.rb +220 -0
  299. data/lib/zsgf_client/models/create_post_result_api_response.rb +245 -0
  300. data/lib/zsgf_client/models/currency.rb +484 -0
  301. data/lib/zsgf_client/models/currency_api_response.rb +245 -0
  302. data/lib/zsgf_client/models/currency_consume_request.rb +307 -0
  303. data/lib/zsgf_client/models/currency_exchange_rate.rb +330 -0
  304. data/lib/zsgf_client/models/currency_exchange_rate_api_response.rb +245 -0
  305. data/lib/zsgf_client/models/currency_list_api_response.rb +249 -0
  306. data/lib/zsgf_client/models/currency_transaction.rb +413 -0
  307. data/lib/zsgf_client/models/currency_transaction_list_api_response.rb +249 -0
  308. data/lib/zsgf_client/models/directory_item.rb +249 -0
  309. data/lib/zsgf_client/models/email_sign_in_request.rb +303 -0
  310. data/lib/zsgf_client/models/email_sign_up_request.rb +452 -0
  311. data/lib/zsgf_client/models/enterprise_pay_info.rb +240 -0
  312. data/lib/zsgf_client/models/exchange_currency_request.rb +343 -0
  313. data/lib/zsgf_client/models/exchange_rate_put_request.rb +240 -0
  314. data/lib/zsgf_client/models/execute_function_request.rb +222 -0
  315. data/lib/zsgf_client/models/file_item.rb +249 -0
  316. data/lib/zsgf_client/models/file_list_result.rb +262 -0
  317. data/lib/zsgf_client/models/file_list_result_api_response.rb +245 -0
  318. data/lib/zsgf_client/models/follower_model.rb +325 -0
  319. data/lib/zsgf_client/models/follower_put_model.rb +269 -0
  320. data/lib/zsgf_client/models/fulfillment_detail.rb +241 -0
  321. data/lib/zsgf_client/models/geo_location_model.rb +436 -0
  322. data/lib/zsgf_client/models/geo_location_model_api_response.rb +245 -0
  323. data/lib/zsgf_client/models/geo_location_response_model.rb +446 -0
  324. data/lib/zsgf_client/models/goods_detail.rb +320 -0
  325. data/lib/zsgf_client/models/grant_request.rb +387 -0
  326. data/lib/zsgf_client/models/grant_result.rb +249 -0
  327. data/lib/zsgf_client/models/grant_result_api_response.rb +245 -0
  328. data/lib/zsgf_client/models/hb_fq_pay_info.rb +231 -0
  329. data/lib/zsgf_client/models/int64_api_response.rb +246 -0
  330. data/lib/zsgf_client/models/intact_charge_info.rb +330 -0
  331. data/lib/zsgf_client/models/list_response_item.rb +308 -0
  332. data/lib/zsgf_client/models/list_response_item_list_api_response.rb +249 -0
  333. data/lib/zsgf_client/models/o_auth_account_bind_request.rb +336 -0
  334. data/lib/zsgf_client/models/o_auth_account_put_bind_request.rb +243 -0
  335. data/lib/zsgf_client/models/o_auth_account_sign_in_request.rb +292 -0
  336. data/lib/zsgf_client/models/object_api_response.rb +247 -0
  337. data/lib/zsgf_client/models/object_list_api_response.rb +249 -0
  338. data/lib/zsgf_client/models/order.rb +547 -0
  339. data/lib/zsgf_client/models/order_api_response.rb +245 -0
  340. data/lib/zsgf_client/models/order_list_result.rb +232 -0
  341. data/lib/zsgf_client/models/order_list_result_api_response.rb +245 -0
  342. data/lib/zsgf_client/models/payment_info_with_id.rb +233 -0
  343. data/lib/zsgf_client/models/phone_sign_in_request.rb +292 -0
  344. data/lib/zsgf_client/models/phone_sign_up_request.rb +471 -0
  345. data/lib/zsgf_client/models/post_index_request.rb +251 -0
  346. data/lib/zsgf_client/models/post_result.rb +220 -0
  347. data/lib/zsgf_client/models/post_result_api_response.rb +245 -0
  348. data/lib/zsgf_client/models/preset_pay_tool_info.rb +233 -0
  349. data/lib/zsgf_client/models/profile_result.rb +346 -0
  350. data/lib/zsgf_client/models/profile_result_api_response.rb +245 -0
  351. data/lib/zsgf_client/models/project.rb +353 -0
  352. data/lib/zsgf_client/models/project_api_response.rb +245 -0
  353. data/lib/zsgf_client/models/project_list_result.rb +232 -0
  354. data/lib/zsgf_client/models/project_list_result_api_response.rb +245 -0
  355. data/lib/zsgf_client/models/qr_code_pre_sign_in_request.rb +241 -0
  356. data/lib/zsgf_client/models/qr_code_scan_request.rb +237 -0
  357. data/lib/zsgf_client/models/qr_code_sign_in_request.rb +237 -0
  358. data/lib/zsgf_client/models/qr_code_sign_up_request.rb +454 -0
  359. data/lib/zsgf_client/models/recharge_point_request.rb +307 -0
  360. data/lib/zsgf_client/models/recommend_friend.rb +306 -0
  361. data/lib/zsgf_client/models/refund_charge_info.rb +253 -0
  362. data/lib/zsgf_client/models/refund_sub_fee.rb +231 -0
  363. data/lib/zsgf_client/models/return_page_notify_request.rb +344 -0
  364. data/lib/zsgf_client/models/send_email_code_request.rb +282 -0
  365. data/lib/zsgf_client/models/send_sms_code_request.rb +283 -0
  366. data/lib/zsgf_client/models/service_group.rb +361 -0
  367. data/lib/zsgf_client/models/service_group_api_response.rb +245 -0
  368. data/lib/zsgf_client/models/service_group_list_api_response.rb +249 -0
  369. data/lib/zsgf_client/models/service_item.rb +502 -0
  370. data/lib/zsgf_client/models/service_item_api_response.rb +245 -0
  371. data/lib/zsgf_client/models/service_item_list_api_response.rb +249 -0
  372. data/lib/zsgf_client/models/service_provider.rb +403 -0
  373. data/lib/zsgf_client/models/service_provider_api_response.rb +245 -0
  374. data/lib/zsgf_client/models/service_provider_list_api_response.rb +249 -0
  375. data/lib/zsgf_client/models/service_setting_group_post_result.rb +220 -0
  376. data/lib/zsgf_client/models/service_setting_group_post_result_api_response.rb +245 -0
  377. data/lib/zsgf_client/models/service_setting_item_post_result.rb +220 -0
  378. data/lib/zsgf_client/models/service_setting_item_post_result_api_response.rb +245 -0
  379. data/lib/zsgf_client/models/service_setting_provider_post_result.rb +220 -0
  380. data/lib/zsgf_client/models/service_setting_provider_post_result_api_response.rb +245 -0
  381. data/lib/zsgf_client/models/service_setting_setting_post_result.rb +220 -0
  382. data/lib/zsgf_client/models/service_setting_setting_post_result_api_response.rb +245 -0
  383. data/lib/zsgf_client/models/settings.rb +445 -0
  384. data/lib/zsgf_client/models/settings_api_response.rb +245 -0
  385. data/lib/zsgf_client/models/settings_list_api_response.rb +249 -0
  386. data/lib/zsgf_client/models/setup_code.rb +241 -0
  387. data/lib/zsgf_client/models/setup_code_api_response.rb +245 -0
  388. data/lib/zsgf_client/models/sign_in_request.rb +292 -0
  389. data/lib/zsgf_client/models/sign_up_request.rb +482 -0
  390. data/lib/zsgf_client/models/storage_list_result.rb +258 -0
  391. data/lib/zsgf_client/models/storage_list_result_api_response.rb +245 -0
  392. data/lib/zsgf_client/models/string_api_response.rb +247 -0
  393. data/lib/zsgf_client/models/string_list_api_response.rb +249 -0
  394. data/lib/zsgf_client/models/sub_fee.rb +241 -0
  395. data/lib/zsgf_client/models/system_directory_item.rb +249 -0
  396. data/lib/zsgf_client/models/system_file_item.rb +249 -0
  397. data/lib/zsgf_client/models/system_file_list_result.rb +244 -0
  398. data/lib/zsgf_client/models/system_file_list_result_api_response.rb +245 -0
  399. data/lib/zsgf_client/models/tap_pay_info.rb +221 -0
  400. data/lib/zsgf_client/models/team.rb +376 -0
  401. data/lib/zsgf_client/models/token_model.rb +240 -0
  402. data/lib/zsgf_client/models/token_model_api_response.rb +245 -0
  403. data/lib/zsgf_client/models/trade_fund_bill.rb +261 -0
  404. data/lib/zsgf_client/models/trade_settle_detail.rb +291 -0
  405. data/lib/zsgf_client/models/trade_settle_info.rb +233 -0
  406. data/lib/zsgf_client/models/union_id_sign_in_request.rb +292 -0
  407. data/lib/zsgf_client/models/union_id_sign_up_request.rb +549 -0
  408. data/lib/zsgf_client/models/update_profile_request.rb +608 -0
  409. data/lib/zsgf_client/models/user.rb +906 -0
  410. data/lib/zsgf_client/models/user_access_token.rb +357 -0
  411. data/lib/zsgf_client/models/user_api_response.rb +245 -0
  412. data/lib/zsgf_client/models/user_common_interests_result.rb +232 -0
  413. data/lib/zsgf_client/models/user_common_interests_result_api_response.rb +245 -0
  414. data/lib/zsgf_client/models/user_currency.rb +268 -0
  415. data/lib/zsgf_client/models/user_currency_currency_trans_result.rb +232 -0
  416. data/lib/zsgf_client/models/user_currency_currency_trans_result_api_response.rb +245 -0
  417. data/lib/zsgf_client/models/user_currency_list_api_response.rb +249 -0
  418. data/lib/zsgf_client/models/user_followers_result.rb +232 -0
  419. data/lib/zsgf_client/models/user_followers_result_api_response.rb +245 -0
  420. data/lib/zsgf_client/models/user_following_result.rb +232 -0
  421. data/lib/zsgf_client/models/user_following_result_api_response.rb +245 -0
  422. data/lib/zsgf_client/models/user_friends_near_by_result.rb +232 -0
  423. data/lib/zsgf_client/models/user_friends_near_by_result_api_response.rb +245 -0
  424. data/lib/zsgf_client/models/user_list_result.rb +232 -0
  425. data/lib/zsgf_client/models/user_list_result_api_response.rb +245 -0
  426. data/lib/zsgf_client/models/user_location_post_result.rb +220 -0
  427. data/lib/zsgf_client/models/user_location_post_result_api_response.rb +245 -0
  428. data/lib/zsgf_client/models/user_locations_result.rb +232 -0
  429. data/lib/zsgf_client/models/user_locations_result_api_response.rb +245 -0
  430. data/lib/zsgf_client/models/user_logins.rb +377 -0
  431. data/lib/zsgf_client/models/user_logins_list_api_response.rb +249 -0
  432. data/lib/zsgf_client/models/user_mutual_followers_result.rb +232 -0
  433. data/lib/zsgf_client/models/user_mutual_followers_result_api_response.rb +245 -0
  434. data/lib/zsgf_client/models/user_mutual_followings_result.rb +232 -0
  435. data/lib/zsgf_client/models/user_mutual_followings_result_api_response.rb +245 -0
  436. data/lib/zsgf_client/models/user_profile_result.rb +368 -0
  437. data/lib/zsgf_client/models/user_profile_result_api_response.rb +245 -0
  438. data/lib/zsgf_client/models/user_qr_code_scan_result.rb +300 -0
  439. data/lib/zsgf_client/models/user_qr_code_scan_result_api_response.rb +245 -0
  440. data/lib/zsgf_client/models/user_setting.rb +464 -0
  441. data/lib/zsgf_client/models/user_setting_api_response.rb +245 -0
  442. data/lib/zsgf_client/models/user_setting_list_api_response.rb +249 -0
  443. data/lib/zsgf_client/models/user_setting_post_result.rb +220 -0
  444. data/lib/zsgf_client/models/user_setting_post_result_api_response.rb +245 -0
  445. data/lib/zsgf_client/models/voucher_detail.rb +333 -0
  446. data/lib/zsgf_client/models/wechat_js_config_result.rb +263 -0
  447. data/lib/zsgf_client/models/wechat_js_config_result_api_response.rb +245 -0
  448. data/lib/zsgf_client/version.rb +15 -0
  449. data/lib/zsgf_client.rb +259 -0
  450. data/spec/api/access_token_api_spec.rb +90 -0
  451. data/spec/api/alipay_api_spec.rb +114 -0
  452. data/spec/api/app_api_spec.rb +162 -0
  453. data/spec/api/app_setting_api_spec.rb +307 -0
  454. data/spec/api/authorize_policy_api_spec.rb +102 -0
  455. data/spec/api/currency_api_spec.rb +159 -0
  456. data/spec/api/ding_talk_api_spec.rb +48 -0
  457. data/spec/api/file_api_spec.rb +104 -0
  458. data/spec/api/o_auth_api_spec.rb +95 -0
  459. data/spec/api/order_api_spec.rb +82 -0
  460. data/spec/api/project_api_spec.rb +97 -0
  461. data/spec/api/service_setting_api_spec.rb +289 -0
  462. data/spec/api/storage_api_spec.rb +268 -0
  463. data/spec/api/system_file_api_spec.rb +97 -0
  464. data/spec/api/team_api_spec.rb +85 -0
  465. data/spec/api/user_api_spec.rb +639 -0
  466. data/spec/api/user_currency_api_spec.rb +114 -0
  467. data/spec/api/user_setting_api_spec.rb +103 -0
  468. data/spec/api/wechat_api_spec.rb +167 -0
  469. data/spec/models/access_token_list_result_api_response_spec.rb +48 -0
  470. data/spec/models/access_token_list_result_spec.rb +42 -0
  471. data/spec/models/access_token_post_request_spec.rb +66 -0
  472. data/spec/models/access_token_put_request_spec.rb +60 -0
  473. data/spec/models/alipay_create_order_page_pay_request_spec.rb +54 -0
  474. data/spec/models/alipay_create_order_request_spec.rb +54 -0
  475. data/spec/models/alipay_create_order_wap_pay_request_spec.rb +54 -0
  476. data/spec/models/alipay_trade_query_response_api_response_spec.rb +48 -0
  477. data/spec/models/alipay_trade_query_response_spec.rb +444 -0
  478. data/spec/models/alipay_trade_refund_response_api_response_spec.rb +48 -0
  479. data/spec/models/alipay_trade_refund_response_spec.rb +210 -0
  480. data/spec/models/app_api_response_spec.rb +48 -0
  481. data/spec/models/app_check_version_result_api_response_spec.rb +48 -0
  482. data/spec/models/app_check_version_result_spec.rb +42 -0
  483. data/spec/models/app_info_item_spec.rb +78 -0
  484. data/spec/models/app_info_result_api_response_spec.rb +48 -0
  485. data/spec/models/app_info_result_spec.rb +42 -0
  486. data/spec/models/app_list_result_api_response_spec.rb +48 -0
  487. data/spec/models/app_list_result_spec.rb +42 -0
  488. data/spec/models/app_post_result_api_response_spec.rb +48 -0
  489. data/spec/models/app_post_result_spec.rb +42 -0
  490. data/spec/models/app_property_spec.rb +48 -0
  491. data/spec/models/app_setting_api_response_spec.rb +48 -0
  492. data/spec/models/app_setting_group_post_result_api_response_spec.rb +48 -0
  493. data/spec/models/app_setting_group_post_result_spec.rb +36 -0
  494. data/spec/models/app_setting_item_post_result_api_response_spec.rb +48 -0
  495. data/spec/models/app_setting_item_post_result_spec.rb +36 -0
  496. data/spec/models/app_setting_list_api_response_spec.rb +48 -0
  497. data/spec/models/app_setting_provider_post_result_api_response_spec.rb +48 -0
  498. data/spec/models/app_setting_provider_post_result_spec.rb +36 -0
  499. data/spec/models/app_setting_setting_post_result_api_response_spec.rb +48 -0
  500. data/spec/models/app_setting_setting_post_result_spec.rb +36 -0
  501. data/spec/models/app_setting_spec.rb +90 -0
  502. data/spec/models/app_spec.rb +132 -0
  503. data/spec/models/app_user_consent_model_list_api_response_spec.rb +48 -0
  504. data/spec/models/app_user_consent_model_spec.rb +72 -0
  505. data/spec/models/app_user_list_response_spec.rb +102 -0
  506. data/spec/models/app_user_reset_pwd_request_spec.rb +54 -0
  507. data/spec/models/authorize_policy_api_response_spec.rb +48 -0
  508. data/spec/models/authorize_policy_list_api_response_spec.rb +48 -0
  509. data/spec/models/authorize_policy_spec.rb +66 -0
  510. data/spec/models/authorize_result_api_response_spec.rb +48 -0
  511. data/spec/models/authorize_result_spec.rb +60 -0
  512. data/spec/models/bk_agent_resp_info_spec.rb +60 -0
  513. data/spec/models/boolean_api_response_spec.rb +48 -0
  514. data/spec/models/charge_info_spec.rb +72 -0
  515. data/spec/models/common_friend_model_spec.rb +48 -0
  516. data/spec/models/contribute_detail_spec.rb +42 -0
  517. data/spec/models/create_order_request_spec.rb +54 -0
  518. data/spec/models/create_order_result_api_response_spec.rb +48 -0
  519. data/spec/models/create_order_result_spec.rb +42 -0
  520. data/spec/models/create_post_result_api_response_spec.rb +48 -0
  521. data/spec/models/create_post_result_spec.rb +36 -0
  522. data/spec/models/currency_api_response_spec.rb +48 -0
  523. data/spec/models/currency_consume_request_spec.rb +60 -0
  524. data/spec/models/currency_exchange_rate_api_response_spec.rb +48 -0
  525. data/spec/models/currency_exchange_rate_spec.rb +72 -0
  526. data/spec/models/currency_list_api_response_spec.rb +48 -0
  527. data/spec/models/currency_spec.rb +126 -0
  528. data/spec/models/currency_transaction_list_api_response_spec.rb +48 -0
  529. data/spec/models/currency_transaction_spec.rb +102 -0
  530. data/spec/models/directory_item_spec.rb +54 -0
  531. data/spec/models/email_sign_in_request_spec.rb +48 -0
  532. data/spec/models/email_sign_up_request_spec.rb +78 -0
  533. data/spec/models/enterprise_pay_info_spec.rb +48 -0
  534. data/spec/models/exchange_currency_request_spec.rb +66 -0
  535. data/spec/models/exchange_rate_put_request_spec.rb +48 -0
  536. data/spec/models/execute_function_request_spec.rb +36 -0
  537. data/spec/models/file_item_spec.rb +54 -0
  538. data/spec/models/file_list_result_api_response_spec.rb +48 -0
  539. data/spec/models/file_list_result_spec.rb +60 -0
  540. data/spec/models/follower_model_spec.rb +102 -0
  541. data/spec/models/follower_put_model_spec.rb +66 -0
  542. data/spec/models/fulfillment_detail_spec.rb +48 -0
  543. data/spec/models/geo_location_model_api_response_spec.rb +48 -0
  544. data/spec/models/geo_location_model_spec.rb +156 -0
  545. data/spec/models/geo_location_response_model_spec.rb +162 -0
  546. data/spec/models/goods_detail_spec.rb +96 -0
  547. data/spec/models/grant_request_spec.rb +78 -0
  548. data/spec/models/grant_result_api_response_spec.rb +48 -0
  549. data/spec/models/grant_result_spec.rb +54 -0
  550. data/spec/models/hb_fq_pay_info_spec.rb +42 -0
  551. data/spec/models/int64_api_response_spec.rb +48 -0
  552. data/spec/models/intact_charge_info_spec.rb +102 -0
  553. data/spec/models/list_response_item_list_api_response_spec.rb +48 -0
  554. data/spec/models/list_response_item_spec.rb +90 -0
  555. data/spec/models/o_auth_account_bind_request_spec.rb +60 -0
  556. data/spec/models/o_auth_account_put_bind_request_spec.rb +48 -0
  557. data/spec/models/o_auth_account_sign_in_request_spec.rb +48 -0
  558. data/spec/models/object_api_response_spec.rb +48 -0
  559. data/spec/models/object_list_api_response_spec.rb +48 -0
  560. data/spec/models/order_api_response_spec.rb +48 -0
  561. data/spec/models/order_list_result_api_response_spec.rb +48 -0
  562. data/spec/models/order_list_result_spec.rb +42 -0
  563. data/spec/models/order_spec.rb +144 -0
  564. data/spec/models/payment_info_with_id_spec.rb +42 -0
  565. data/spec/models/phone_sign_in_request_spec.rb +48 -0
  566. data/spec/models/phone_sign_up_request_spec.rb +78 -0
  567. data/spec/models/post_index_request_spec.rb +42 -0
  568. data/spec/models/post_result_api_response_spec.rb +48 -0
  569. data/spec/models/post_result_spec.rb +36 -0
  570. data/spec/models/preset_pay_tool_info_spec.rb +42 -0
  571. data/spec/models/profile_result_api_response_spec.rb +48 -0
  572. data/spec/models/profile_result_spec.rb +114 -0
  573. data/spec/models/project_api_response_spec.rb +48 -0
  574. data/spec/models/project_list_result_api_response_spec.rb +48 -0
  575. data/spec/models/project_list_result_spec.rb +42 -0
  576. data/spec/models/project_spec.rb +84 -0
  577. data/spec/models/qr_code_pre_sign_in_request_spec.rb +48 -0
  578. data/spec/models/qr_code_scan_request_spec.rb +36 -0
  579. data/spec/models/qr_code_sign_in_request_spec.rb +36 -0
  580. data/spec/models/qr_code_sign_up_request_spec.rb +84 -0
  581. data/spec/models/recharge_point_request_spec.rb +60 -0
  582. data/spec/models/recommend_friend_spec.rb +90 -0
  583. data/spec/models/refund_charge_info_spec.rb +54 -0
  584. data/spec/models/refund_sub_fee_spec.rb +42 -0
  585. data/spec/models/return_page_notify_request_spec.rb +102 -0
  586. data/spec/models/send_email_code_request_spec.rb +42 -0
  587. data/spec/models/send_sms_code_request_spec.rb +42 -0
  588. data/spec/models/service_group_api_response_spec.rb +48 -0
  589. data/spec/models/service_group_list_api_response_spec.rb +48 -0
  590. data/spec/models/service_group_spec.rb +90 -0
  591. data/spec/models/service_item_api_response_spec.rb +48 -0
  592. data/spec/models/service_item_list_api_response_spec.rb +48 -0
  593. data/spec/models/service_item_spec.rb +126 -0
  594. data/spec/models/service_provider_api_response_spec.rb +48 -0
  595. data/spec/models/service_provider_list_api_response_spec.rb +48 -0
  596. data/spec/models/service_provider_spec.rb +96 -0
  597. data/spec/models/service_setting_group_post_result_api_response_spec.rb +48 -0
  598. data/spec/models/service_setting_group_post_result_spec.rb +36 -0
  599. data/spec/models/service_setting_item_post_result_api_response_spec.rb +48 -0
  600. data/spec/models/service_setting_item_post_result_spec.rb +36 -0
  601. data/spec/models/service_setting_provider_post_result_api_response_spec.rb +48 -0
  602. data/spec/models/service_setting_provider_post_result_spec.rb +36 -0
  603. data/spec/models/service_setting_setting_post_result_api_response_spec.rb +48 -0
  604. data/spec/models/service_setting_setting_post_result_spec.rb +36 -0
  605. data/spec/models/settings_api_response_spec.rb +48 -0
  606. data/spec/models/settings_list_api_response_spec.rb +48 -0
  607. data/spec/models/settings_spec.rb +102 -0
  608. data/spec/models/setup_code_api_response_spec.rb +48 -0
  609. data/spec/models/setup_code_spec.rb +48 -0
  610. data/spec/models/sign_in_request_spec.rb +48 -0
  611. data/spec/models/sign_up_request_spec.rb +84 -0
  612. data/spec/models/storage_list_result_api_response_spec.rb +48 -0
  613. data/spec/models/storage_list_result_spec.rb +60 -0
  614. data/spec/models/string_api_response_spec.rb +48 -0
  615. data/spec/models/string_list_api_response_spec.rb +48 -0
  616. data/spec/models/sub_fee_spec.rb +48 -0
  617. data/spec/models/system_directory_item_spec.rb +54 -0
  618. data/spec/models/system_file_item_spec.rb +54 -0
  619. data/spec/models/system_file_list_result_api_response_spec.rb +48 -0
  620. data/spec/models/system_file_list_result_spec.rb +48 -0
  621. data/spec/models/tap_pay_info_spec.rb +36 -0
  622. data/spec/models/team_spec.rb +90 -0
  623. data/spec/models/token_model_api_response_spec.rb +48 -0
  624. data/spec/models/token_model_spec.rb +48 -0
  625. data/spec/models/trade_fund_bill_spec.rb +60 -0
  626. data/spec/models/trade_settle_detail_spec.rb +78 -0
  627. data/spec/models/trade_settle_info_spec.rb +42 -0
  628. data/spec/models/union_id_sign_in_request_spec.rb +48 -0
  629. data/spec/models/union_id_sign_up_request_spec.rb +96 -0
  630. data/spec/models/update_profile_request_spec.rb +132 -0
  631. data/spec/models/user_access_token_spec.rb +96 -0
  632. data/spec/models/user_api_response_spec.rb +48 -0
  633. data/spec/models/user_common_interests_result_api_response_spec.rb +48 -0
  634. data/spec/models/user_common_interests_result_spec.rb +42 -0
  635. data/spec/models/user_currency_currency_trans_result_api_response_spec.rb +48 -0
  636. data/spec/models/user_currency_currency_trans_result_spec.rb +42 -0
  637. data/spec/models/user_currency_list_api_response_spec.rb +48 -0
  638. data/spec/models/user_currency_spec.rb +54 -0
  639. data/spec/models/user_followers_result_api_response_spec.rb +48 -0
  640. data/spec/models/user_followers_result_spec.rb +42 -0
  641. data/spec/models/user_following_result_api_response_spec.rb +48 -0
  642. data/spec/models/user_following_result_spec.rb +42 -0
  643. data/spec/models/user_friends_near_by_result_api_response_spec.rb +48 -0
  644. data/spec/models/user_friends_near_by_result_spec.rb +42 -0
  645. data/spec/models/user_list_result_api_response_spec.rb +48 -0
  646. data/spec/models/user_list_result_spec.rb +42 -0
  647. data/spec/models/user_location_post_result_api_response_spec.rb +48 -0
  648. data/spec/models/user_location_post_result_spec.rb +36 -0
  649. data/spec/models/user_locations_result_api_response_spec.rb +48 -0
  650. data/spec/models/user_locations_result_spec.rb +42 -0
  651. data/spec/models/user_logins_list_api_response_spec.rb +48 -0
  652. data/spec/models/user_logins_spec.rb +90 -0
  653. data/spec/models/user_mutual_followers_result_api_response_spec.rb +48 -0
  654. data/spec/models/user_mutual_followers_result_spec.rb +42 -0
  655. data/spec/models/user_mutual_followings_result_api_response_spec.rb +48 -0
  656. data/spec/models/user_mutual_followings_result_spec.rb +42 -0
  657. data/spec/models/user_profile_result_api_response_spec.rb +48 -0
  658. data/spec/models/user_profile_result_spec.rb +126 -0
  659. data/spec/models/user_qr_code_scan_result_api_response_spec.rb +48 -0
  660. data/spec/models/user_qr_code_scan_result_spec.rb +84 -0
  661. data/spec/models/user_setting_api_response_spec.rb +48 -0
  662. data/spec/models/user_setting_list_api_response_spec.rb +48 -0
  663. data/spec/models/user_setting_post_result_api_response_spec.rb +48 -0
  664. data/spec/models/user_setting_post_result_spec.rb +36 -0
  665. data/spec/models/user_setting_spec.rb +96 -0
  666. data/spec/models/user_spec.rb +252 -0
  667. data/spec/models/voucher_detail_spec.rb +102 -0
  668. data/spec/models/wechat_js_config_result_api_response_spec.rb +48 -0
  669. data/spec/models/wechat_js_config_result_spec.rb +60 -0
  670. data/spec/spec_helper.rb +111 -0
  671. data/zsgf_client.gemspec +39 -0
  672. metadata +974 -0
@@ -0,0 +1,3164 @@
1
+ =begin
2
+ #全部 API 文档
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v1
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.13.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module ZSGFClient
16
+ class UserApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # 获取用户详情
23
+ # 根据用户ID获取用户详情
24
+ # @param id [Integer] 用户ID
25
+ # @param app_key [String]
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [UserApiResponse]
28
+ def user(id, app_key, opts = {})
29
+ data, _status_code, _headers = user_with_http_info(id, app_key, opts)
30
+ data
31
+ end
32
+
33
+ # 获取用户详情
34
+ # 根据用户ID获取用户详情
35
+ # @param id [Integer] 用户ID
36
+ # @param app_key [String]
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [Array<(UserApiResponse, Integer, Hash)>] UserApiResponse data, response status code and response headers
39
+ def user_with_http_info(id, app_key, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: UserApi.user ...'
42
+ end
43
+ # verify the required parameter 'id' is set
44
+ if @api_client.config.client_side_validation && id.nil?
45
+ fail ArgumentError, "Missing the required parameter 'id' when calling UserApi.user"
46
+ end
47
+ # verify the required parameter 'app_key' is set
48
+ if @api_client.config.client_side_validation && app_key.nil?
49
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user"
50
+ end
51
+ # resource path
52
+ local_var_path = '/User/{appKey}/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
53
+
54
+ # query parameters
55
+ query_params = opts[:query_params] || {}
56
+
57
+ # header parameters
58
+ header_params = opts[:header_params] || {}
59
+ # HTTP header 'Accept' (if needed)
60
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
61
+
62
+ # form parameters
63
+ form_params = opts[:form_params] || {}
64
+
65
+ # http body (model)
66
+ post_body = opts[:debug_body]
67
+
68
+ # return_type
69
+ return_type = opts[:debug_return_type] || 'UserApiResponse'
70
+
71
+ # auth_names
72
+ auth_names = opts[:debug_auth_names] || ['Bearer']
73
+
74
+ new_options = opts.merge(
75
+ :operation => :"UserApi.user",
76
+ :header_params => header_params,
77
+ :query_params => query_params,
78
+ :form_params => form_params,
79
+ :body => post_body,
80
+ :auth_names => auth_names,
81
+ :return_type => return_type
82
+ )
83
+
84
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
85
+ if @api_client.config.debugging
86
+ @api_client.config.logger.debug "API called: UserApi#user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
87
+ end
88
+ return data, status_code, headers
89
+ end
90
+
91
+ # 清空用户数据
92
+ # 清空用户数据
93
+ # @param app_key [String]
94
+ # @param [Hash] opts the optional parameters
95
+ # @return [BooleanApiResponse]
96
+ def user_clear(app_key, opts = {})
97
+ data, _status_code, _headers = user_clear_with_http_info(app_key, opts)
98
+ data
99
+ end
100
+
101
+ # 清空用户数据
102
+ # 清空用户数据
103
+ # @param app_key [String]
104
+ # @param [Hash] opts the optional parameters
105
+ # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
106
+ def user_clear_with_http_info(app_key, opts = {})
107
+ if @api_client.config.debugging
108
+ @api_client.config.logger.debug 'Calling API: UserApi.user_clear ...'
109
+ end
110
+ # verify the required parameter 'app_key' is set
111
+ if @api_client.config.client_side_validation && app_key.nil?
112
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_clear"
113
+ end
114
+ # resource path
115
+ local_var_path = '/User/{appKey}/Clear'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
116
+
117
+ # query parameters
118
+ query_params = opts[:query_params] || {}
119
+
120
+ # header parameters
121
+ header_params = opts[:header_params] || {}
122
+ # HTTP header 'Accept' (if needed)
123
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
124
+
125
+ # form parameters
126
+ form_params = opts[:form_params] || {}
127
+
128
+ # http body (model)
129
+ post_body = opts[:debug_body]
130
+
131
+ # return_type
132
+ return_type = opts[:debug_return_type] || 'BooleanApiResponse'
133
+
134
+ # auth_names
135
+ auth_names = opts[:debug_auth_names] || ['Bearer']
136
+
137
+ new_options = opts.merge(
138
+ :operation => :"UserApi.user_clear",
139
+ :header_params => header_params,
140
+ :query_params => query_params,
141
+ :form_params => form_params,
142
+ :body => post_body,
143
+ :auth_names => auth_names,
144
+ :return_type => return_type
145
+ )
146
+
147
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
148
+ if @api_client.config.debugging
149
+ @api_client.config.logger.debug "API called: UserApi#user_clear\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
150
+ end
151
+ return data, status_code, headers
152
+ end
153
+
154
+ # 有共同爱好的用户推荐
155
+ # 推荐有共同爱好的用户
156
+ # @param app_key [String]
157
+ # @param [Hash] opts the optional parameters
158
+ # @option opts [String] :tag 兴趣标签
159
+ # @option opts [Integer] :skip 跳过的记录数 (default to 0)
160
+ # @option opts [Integer] :take 获取的记录数 (default to 10)
161
+ # @return [UserCommonInterestsResultApiResponse]
162
+ def user_common_interests(app_key, opts = {})
163
+ data, _status_code, _headers = user_common_interests_with_http_info(app_key, opts)
164
+ data
165
+ end
166
+
167
+ # 有共同爱好的用户推荐
168
+ # 推荐有共同爱好的用户
169
+ # @param app_key [String]
170
+ # @param [Hash] opts the optional parameters
171
+ # @option opts [String] :tag 兴趣标签
172
+ # @option opts [Integer] :skip 跳过的记录数 (default to 0)
173
+ # @option opts [Integer] :take 获取的记录数 (default to 10)
174
+ # @return [Array<(UserCommonInterestsResultApiResponse, Integer, Hash)>] UserCommonInterestsResultApiResponse data, response status code and response headers
175
+ def user_common_interests_with_http_info(app_key, opts = {})
176
+ if @api_client.config.debugging
177
+ @api_client.config.logger.debug 'Calling API: UserApi.user_common_interests ...'
178
+ end
179
+ # verify the required parameter 'app_key' is set
180
+ if @api_client.config.client_side_validation && app_key.nil?
181
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_common_interests"
182
+ end
183
+ # resource path
184
+ local_var_path = '/User/{appKey}/Friends/CommonInterests'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
185
+
186
+ # query parameters
187
+ query_params = opts[:query_params] || {}
188
+ query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
189
+ query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
190
+ query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
191
+
192
+ # header parameters
193
+ header_params = opts[:header_params] || {}
194
+ # HTTP header 'Accept' (if needed)
195
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
196
+
197
+ # form parameters
198
+ form_params = opts[:form_params] || {}
199
+
200
+ # http body (model)
201
+ post_body = opts[:debug_body]
202
+
203
+ # return_type
204
+ return_type = opts[:debug_return_type] || 'UserCommonInterestsResultApiResponse'
205
+
206
+ # auth_names
207
+ auth_names = opts[:debug_auth_names] || ['Bearer']
208
+
209
+ new_options = opts.merge(
210
+ :operation => :"UserApi.user_common_interests",
211
+ :header_params => header_params,
212
+ :query_params => query_params,
213
+ :form_params => form_params,
214
+ :body => post_body,
215
+ :auth_names => auth_names,
216
+ :return_type => return_type
217
+ )
218
+
219
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
220
+ if @api_client.config.debugging
221
+ @api_client.config.logger.debug "API called: UserApi#user_common_interests\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
222
+ end
223
+ return data, status_code, headers
224
+ end
225
+
226
+ # 删除用户
227
+ # 根据用户ID删除用户
228
+ # @param id [Integer] 用户ID
229
+ # @param app_key [String]
230
+ # @param [Hash] opts the optional parameters
231
+ # @return [BooleanApiResponse]
232
+ def user_delete(id, app_key, opts = {})
233
+ data, _status_code, _headers = user_delete_with_http_info(id, app_key, opts)
234
+ data
235
+ end
236
+
237
+ # 删除用户
238
+ # 根据用户ID删除用户
239
+ # @param id [Integer] 用户ID
240
+ # @param app_key [String]
241
+ # @param [Hash] opts the optional parameters
242
+ # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
243
+ def user_delete_with_http_info(id, app_key, opts = {})
244
+ if @api_client.config.debugging
245
+ @api_client.config.logger.debug 'Calling API: UserApi.user_delete ...'
246
+ end
247
+ # verify the required parameter 'id' is set
248
+ if @api_client.config.client_side_validation && id.nil?
249
+ fail ArgumentError, "Missing the required parameter 'id' when calling UserApi.user_delete"
250
+ end
251
+ # verify the required parameter 'app_key' is set
252
+ if @api_client.config.client_side_validation && app_key.nil?
253
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_delete"
254
+ end
255
+ # resource path
256
+ local_var_path = '/User/{appKey}/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
257
+
258
+ # query parameters
259
+ query_params = opts[:query_params] || {}
260
+
261
+ # header parameters
262
+ header_params = opts[:header_params] || {}
263
+ # HTTP header 'Accept' (if needed)
264
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
265
+
266
+ # form parameters
267
+ form_params = opts[:form_params] || {}
268
+
269
+ # http body (model)
270
+ post_body = opts[:debug_body]
271
+
272
+ # return_type
273
+ return_type = opts[:debug_return_type] || 'BooleanApiResponse'
274
+
275
+ # auth_names
276
+ auth_names = opts[:debug_auth_names] || ['Bearer']
277
+
278
+ new_options = opts.merge(
279
+ :operation => :"UserApi.user_delete",
280
+ :header_params => header_params,
281
+ :query_params => query_params,
282
+ :form_params => form_params,
283
+ :body => post_body,
284
+ :auth_names => auth_names,
285
+ :return_type => return_type
286
+ )
287
+
288
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
289
+ if @api_client.config.debugging
290
+ @api_client.config.logger.debug "API called: UserApi#user_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
291
+ end
292
+ return data, status_code, headers
293
+ end
294
+
295
+ # 邮箱登录
296
+ # 使用邮箱进行登录
297
+ # @param app_key [String]
298
+ # @param [Hash] opts the optional parameters
299
+ # @option opts [EmailSignInRequest] :email_sign_in_request 登录请求参数
300
+ # @return [TokenModelApiResponse]
301
+ def user_email_sign_in(app_key, opts = {})
302
+ data, _status_code, _headers = user_email_sign_in_with_http_info(app_key, opts)
303
+ data
304
+ end
305
+
306
+ # 邮箱登录
307
+ # 使用邮箱进行登录
308
+ # @param app_key [String]
309
+ # @param [Hash] opts the optional parameters
310
+ # @option opts [EmailSignInRequest] :email_sign_in_request 登录请求参数
311
+ # @return [Array<(TokenModelApiResponse, Integer, Hash)>] TokenModelApiResponse data, response status code and response headers
312
+ def user_email_sign_in_with_http_info(app_key, opts = {})
313
+ if @api_client.config.debugging
314
+ @api_client.config.logger.debug 'Calling API: UserApi.user_email_sign_in ...'
315
+ end
316
+ # verify the required parameter 'app_key' is set
317
+ if @api_client.config.client_side_validation && app_key.nil?
318
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_email_sign_in"
319
+ end
320
+ # resource path
321
+ local_var_path = '/User/{appKey}/EmailSignIn'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
322
+
323
+ # query parameters
324
+ query_params = opts[:query_params] || {}
325
+
326
+ # header parameters
327
+ header_params = opts[:header_params] || {}
328
+ # HTTP header 'Accept' (if needed)
329
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
330
+ # HTTP header 'Content-Type'
331
+ content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
332
+ if !content_type.nil?
333
+ header_params['Content-Type'] = content_type
334
+ end
335
+
336
+ # form parameters
337
+ form_params = opts[:form_params] || {}
338
+
339
+ # http body (model)
340
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'email_sign_in_request'])
341
+
342
+ # return_type
343
+ return_type = opts[:debug_return_type] || 'TokenModelApiResponse'
344
+
345
+ # auth_names
346
+ auth_names = opts[:debug_auth_names] || ['Bearer']
347
+
348
+ new_options = opts.merge(
349
+ :operation => :"UserApi.user_email_sign_in",
350
+ :header_params => header_params,
351
+ :query_params => query_params,
352
+ :form_params => form_params,
353
+ :body => post_body,
354
+ :auth_names => auth_names,
355
+ :return_type => return_type
356
+ )
357
+
358
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
359
+ if @api_client.config.debugging
360
+ @api_client.config.logger.debug "API called: UserApi#user_email_sign_in\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
361
+ end
362
+ return data, status_code, headers
363
+ end
364
+
365
+ # 邮箱注册
366
+ # 使用邮箱进行注册
367
+ # @param app_key [String]
368
+ # @param [Hash] opts the optional parameters
369
+ # @option opts [EmailSignUpRequest] :email_sign_up_request 注册请求参数
370
+ # @return [TokenModelApiResponse]
371
+ def user_email_sign_up(app_key, opts = {})
372
+ data, _status_code, _headers = user_email_sign_up_with_http_info(app_key, opts)
373
+ data
374
+ end
375
+
376
+ # 邮箱注册
377
+ # 使用邮箱进行注册
378
+ # @param app_key [String]
379
+ # @param [Hash] opts the optional parameters
380
+ # @option opts [EmailSignUpRequest] :email_sign_up_request 注册请求参数
381
+ # @return [Array<(TokenModelApiResponse, Integer, Hash)>] TokenModelApiResponse data, response status code and response headers
382
+ def user_email_sign_up_with_http_info(app_key, opts = {})
383
+ if @api_client.config.debugging
384
+ @api_client.config.logger.debug 'Calling API: UserApi.user_email_sign_up ...'
385
+ end
386
+ # verify the required parameter 'app_key' is set
387
+ if @api_client.config.client_side_validation && app_key.nil?
388
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_email_sign_up"
389
+ end
390
+ # resource path
391
+ local_var_path = '/User/{appKey}/EmailSignUp'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
392
+
393
+ # query parameters
394
+ query_params = opts[:query_params] || {}
395
+
396
+ # header parameters
397
+ header_params = opts[:header_params] || {}
398
+ # HTTP header 'Accept' (if needed)
399
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
400
+ # HTTP header 'Content-Type'
401
+ content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
402
+ if !content_type.nil?
403
+ header_params['Content-Type'] = content_type
404
+ end
405
+
406
+ # form parameters
407
+ form_params = opts[:form_params] || {}
408
+
409
+ # http body (model)
410
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'email_sign_up_request'])
411
+
412
+ # return_type
413
+ return_type = opts[:debug_return_type] || 'TokenModelApiResponse'
414
+
415
+ # auth_names
416
+ auth_names = opts[:debug_auth_names] || ['Bearer']
417
+
418
+ new_options = opts.merge(
419
+ :operation => :"UserApi.user_email_sign_up",
420
+ :header_params => header_params,
421
+ :query_params => query_params,
422
+ :form_params => form_params,
423
+ :body => post_body,
424
+ :auth_names => auth_names,
425
+ :return_type => return_type
426
+ )
427
+
428
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
429
+ if @api_client.config.debugging
430
+ @api_client.config.logger.debug "API called: UserApi#user_email_sign_up\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
431
+ end
432
+ return data, status_code, headers
433
+ end
434
+
435
+ # 导出用户数据
436
+ # 导出所有用户数据为Excel文件
437
+ # @param app_key [String]
438
+ # @param [Hash] opts the optional parameters
439
+ # @return [File]
440
+ def user_export(app_key, opts = {})
441
+ data, _status_code, _headers = user_export_with_http_info(app_key, opts)
442
+ data
443
+ end
444
+
445
+ # 导出用户数据
446
+ # 导出所有用户数据为Excel文件
447
+ # @param app_key [String]
448
+ # @param [Hash] opts the optional parameters
449
+ # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
450
+ def user_export_with_http_info(app_key, opts = {})
451
+ if @api_client.config.debugging
452
+ @api_client.config.logger.debug 'Calling API: UserApi.user_export ...'
453
+ end
454
+ # verify the required parameter 'app_key' is set
455
+ if @api_client.config.client_side_validation && app_key.nil?
456
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_export"
457
+ end
458
+ # resource path
459
+ local_var_path = '/User/{appKey}/Export'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
460
+
461
+ # query parameters
462
+ query_params = opts[:query_params] || {}
463
+
464
+ # header parameters
465
+ header_params = opts[:header_params] || {}
466
+ # HTTP header 'Accept' (if needed)
467
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.openxmlformats-officedocument.spreadsheetml.sheet']) unless header_params['Accept']
468
+
469
+ # form parameters
470
+ form_params = opts[:form_params] || {}
471
+
472
+ # http body (model)
473
+ post_body = opts[:debug_body]
474
+
475
+ # return_type
476
+ return_type = opts[:debug_return_type] || 'File'
477
+
478
+ # auth_names
479
+ auth_names = opts[:debug_auth_names] || ['Bearer']
480
+
481
+ new_options = opts.merge(
482
+ :operation => :"UserApi.user_export",
483
+ :header_params => header_params,
484
+ :query_params => query_params,
485
+ :form_params => form_params,
486
+ :body => post_body,
487
+ :auth_names => auth_names,
488
+ :return_type => return_type
489
+ )
490
+
491
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
492
+ if @api_client.config.debugging
493
+ @api_client.config.logger.debug "API called: UserApi#user_export\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
494
+ end
495
+ return data, status_code, headers
496
+ end
497
+
498
+ # 关注用户
499
+ # 关注指定用户
500
+ # @param user_id [Integer] 要关注的用户ID
501
+ # @param app_key [String]
502
+ # @param [Hash] opts the optional parameters
503
+ # @return [BooleanApiResponse]
504
+ def user_follow_user(user_id, app_key, opts = {})
505
+ data, _status_code, _headers = user_follow_user_with_http_info(user_id, app_key, opts)
506
+ data
507
+ end
508
+
509
+ # 关注用户
510
+ # 关注指定用户
511
+ # @param user_id [Integer] 要关注的用户ID
512
+ # @param app_key [String]
513
+ # @param [Hash] opts the optional parameters
514
+ # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
515
+ def user_follow_user_with_http_info(user_id, app_key, opts = {})
516
+ if @api_client.config.debugging
517
+ @api_client.config.logger.debug 'Calling API: UserApi.user_follow_user ...'
518
+ end
519
+ # verify the required parameter 'user_id' is set
520
+ if @api_client.config.client_side_validation && user_id.nil?
521
+ fail ArgumentError, "Missing the required parameter 'user_id' when calling UserApi.user_follow_user"
522
+ end
523
+ # verify the required parameter 'app_key' is set
524
+ if @api_client.config.client_side_validation && app_key.nil?
525
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_follow_user"
526
+ end
527
+ # resource path
528
+ local_var_path = '/User/{appKey}/Follower/{userId}'.sub('{' + 'userId' + '}', CGI.escape(user_id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
529
+
530
+ # query parameters
531
+ query_params = opts[:query_params] || {}
532
+
533
+ # header parameters
534
+ header_params = opts[:header_params] || {}
535
+ # HTTP header 'Accept' (if needed)
536
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
537
+
538
+ # form parameters
539
+ form_params = opts[:form_params] || {}
540
+
541
+ # http body (model)
542
+ post_body = opts[:debug_body]
543
+
544
+ # return_type
545
+ return_type = opts[:debug_return_type] || 'BooleanApiResponse'
546
+
547
+ # auth_names
548
+ auth_names = opts[:debug_auth_names] || ['Bearer']
549
+
550
+ new_options = opts.merge(
551
+ :operation => :"UserApi.user_follow_user",
552
+ :header_params => header_params,
553
+ :query_params => query_params,
554
+ :form_params => form_params,
555
+ :body => post_body,
556
+ :auth_names => auth_names,
557
+ :return_type => return_type
558
+ )
559
+
560
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
561
+ if @api_client.config.debugging
562
+ @api_client.config.logger.debug "API called: UserApi#user_follow_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
563
+ end
564
+ return data, status_code, headers
565
+ end
566
+
567
+ # 更新粉丝
568
+ # 根据粉丝ID更新粉丝信息
569
+ # @param id [Integer] 粉丝ID
570
+ # @param app_key [String]
571
+ # @param [Hash] opts the optional parameters
572
+ # @option opts [FollowerPutModel] :follower_put_model 更新粉丝的请求参数
573
+ # @return [BooleanApiResponse]
574
+ def user_follower_put(id, app_key, opts = {})
575
+ data, _status_code, _headers = user_follower_put_with_http_info(id, app_key, opts)
576
+ data
577
+ end
578
+
579
+ # 更新粉丝
580
+ # 根据粉丝ID更新粉丝信息
581
+ # @param id [Integer] 粉丝ID
582
+ # @param app_key [String]
583
+ # @param [Hash] opts the optional parameters
584
+ # @option opts [FollowerPutModel] :follower_put_model 更新粉丝的请求参数
585
+ # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
586
+ def user_follower_put_with_http_info(id, app_key, opts = {})
587
+ if @api_client.config.debugging
588
+ @api_client.config.logger.debug 'Calling API: UserApi.user_follower_put ...'
589
+ end
590
+ # verify the required parameter 'id' is set
591
+ if @api_client.config.client_side_validation && id.nil?
592
+ fail ArgumentError, "Missing the required parameter 'id' when calling UserApi.user_follower_put"
593
+ end
594
+ # verify the required parameter 'app_key' is set
595
+ if @api_client.config.client_side_validation && app_key.nil?
596
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_follower_put"
597
+ end
598
+ # resource path
599
+ local_var_path = '/User/{appKey}/Follower/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
600
+
601
+ # query parameters
602
+ query_params = opts[:query_params] || {}
603
+
604
+ # header parameters
605
+ header_params = opts[:header_params] || {}
606
+ # HTTP header 'Accept' (if needed)
607
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
608
+ # HTTP header 'Content-Type'
609
+ content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
610
+ if !content_type.nil?
611
+ header_params['Content-Type'] = content_type
612
+ end
613
+
614
+ # form parameters
615
+ form_params = opts[:form_params] || {}
616
+
617
+ # http body (model)
618
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'follower_put_model'])
619
+
620
+ # return_type
621
+ return_type = opts[:debug_return_type] || 'BooleanApiResponse'
622
+
623
+ # auth_names
624
+ auth_names = opts[:debug_auth_names] || ['Bearer']
625
+
626
+ new_options = opts.merge(
627
+ :operation => :"UserApi.user_follower_put",
628
+ :header_params => header_params,
629
+ :query_params => query_params,
630
+ :form_params => form_params,
631
+ :body => post_body,
632
+ :auth_names => auth_names,
633
+ :return_type => return_type
634
+ )
635
+
636
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
637
+ if @api_client.config.debugging
638
+ @api_client.config.logger.debug "API called: UserApi#user_follower_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
639
+ end
640
+ return data, status_code, headers
641
+ end
642
+
643
+ # 获取我的粉丝列表
644
+ # 根据条件获取我的粉丝列表
645
+ # @param app_key [String]
646
+ # @param [Hash] opts the optional parameters
647
+ # @option opts [String] :tag 标签
648
+ # @option opts [String] :status 状态
649
+ # @option opts [Integer] :skip 跳过的记录数 (default to 0)
650
+ # @option opts [Integer] :take 获取的记录数 (default to 10)
651
+ # @return [UserFollowersResultApiResponse]
652
+ def user_followers(app_key, opts = {})
653
+ data, _status_code, _headers = user_followers_with_http_info(app_key, opts)
654
+ data
655
+ end
656
+
657
+ # 获取我的粉丝列表
658
+ # 根据条件获取我的粉丝列表
659
+ # @param app_key [String]
660
+ # @param [Hash] opts the optional parameters
661
+ # @option opts [String] :tag 标签
662
+ # @option opts [String] :status 状态
663
+ # @option opts [Integer] :skip 跳过的记录数 (default to 0)
664
+ # @option opts [Integer] :take 获取的记录数 (default to 10)
665
+ # @return [Array<(UserFollowersResultApiResponse, Integer, Hash)>] UserFollowersResultApiResponse data, response status code and response headers
666
+ def user_followers_with_http_info(app_key, opts = {})
667
+ if @api_client.config.debugging
668
+ @api_client.config.logger.debug 'Calling API: UserApi.user_followers ...'
669
+ end
670
+ # verify the required parameter 'app_key' is set
671
+ if @api_client.config.client_side_validation && app_key.nil?
672
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_followers"
673
+ end
674
+ # resource path
675
+ local_var_path = '/User/{appKey}/Followers'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
676
+
677
+ # query parameters
678
+ query_params = opts[:query_params] || {}
679
+ query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
680
+ query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
681
+ query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
682
+ query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
683
+
684
+ # header parameters
685
+ header_params = opts[:header_params] || {}
686
+ # HTTP header 'Accept' (if needed)
687
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
688
+
689
+ # form parameters
690
+ form_params = opts[:form_params] || {}
691
+
692
+ # http body (model)
693
+ post_body = opts[:debug_body]
694
+
695
+ # return_type
696
+ return_type = opts[:debug_return_type] || 'UserFollowersResultApiResponse'
697
+
698
+ # auth_names
699
+ auth_names = opts[:debug_auth_names] || ['Bearer']
700
+
701
+ new_options = opts.merge(
702
+ :operation => :"UserApi.user_followers",
703
+ :header_params => header_params,
704
+ :query_params => query_params,
705
+ :form_params => form_params,
706
+ :body => post_body,
707
+ :auth_names => auth_names,
708
+ :return_type => return_type
709
+ )
710
+
711
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
712
+ if @api_client.config.debugging
713
+ @api_client.config.logger.debug "API called: UserApi#user_followers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
714
+ end
715
+ return data, status_code, headers
716
+ end
717
+
718
+ # 获取我的关注列表
719
+ # 根据条件获取我的关注列表
720
+ # @param app_key [String]
721
+ # @param [Hash] opts the optional parameters
722
+ # @option opts [String] :tag 标签
723
+ # @option opts [String] :status 状态
724
+ # @option opts [Integer] :skip 跳过的记录数 (default to 0)
725
+ # @option opts [Integer] :take 获取的记录数 (default to 10)
726
+ # @return [UserFollowingResultApiResponse]
727
+ def user_following(app_key, opts = {})
728
+ data, _status_code, _headers = user_following_with_http_info(app_key, opts)
729
+ data
730
+ end
731
+
732
+ # 获取我的关注列表
733
+ # 根据条件获取我的关注列表
734
+ # @param app_key [String]
735
+ # @param [Hash] opts the optional parameters
736
+ # @option opts [String] :tag 标签
737
+ # @option opts [String] :status 状态
738
+ # @option opts [Integer] :skip 跳过的记录数 (default to 0)
739
+ # @option opts [Integer] :take 获取的记录数 (default to 10)
740
+ # @return [Array<(UserFollowingResultApiResponse, Integer, Hash)>] UserFollowingResultApiResponse data, response status code and response headers
741
+ def user_following_with_http_info(app_key, opts = {})
742
+ if @api_client.config.debugging
743
+ @api_client.config.logger.debug 'Calling API: UserApi.user_following ...'
744
+ end
745
+ # verify the required parameter 'app_key' is set
746
+ if @api_client.config.client_side_validation && app_key.nil?
747
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_following"
748
+ end
749
+ # resource path
750
+ local_var_path = '/User/{appKey}/Following'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
751
+
752
+ # query parameters
753
+ query_params = opts[:query_params] || {}
754
+ query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
755
+ query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
756
+ query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
757
+ query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
758
+
759
+ # header parameters
760
+ header_params = opts[:header_params] || {}
761
+ # HTTP header 'Accept' (if needed)
762
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
763
+
764
+ # form parameters
765
+ form_params = opts[:form_params] || {}
766
+
767
+ # http body (model)
768
+ post_body = opts[:debug_body]
769
+
770
+ # return_type
771
+ return_type = opts[:debug_return_type] || 'UserFollowingResultApiResponse'
772
+
773
+ # auth_names
774
+ auth_names = opts[:debug_auth_names] || ['Bearer']
775
+
776
+ new_options = opts.merge(
777
+ :operation => :"UserApi.user_following",
778
+ :header_params => header_params,
779
+ :query_params => query_params,
780
+ :form_params => form_params,
781
+ :body => post_body,
782
+ :auth_names => auth_names,
783
+ :return_type => return_type
784
+ )
785
+
786
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
787
+ if @api_client.config.debugging
788
+ @api_client.config.logger.debug "API called: UserApi#user_following\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
789
+ end
790
+ return data, status_code, headers
791
+ end
792
+
793
+ # 附近的用户推荐
794
+ # 推荐附近的用户
795
+ # @param x [Float] 纬度
796
+ # @param y [Float] 经度
797
+ # @param distance [Integer] 附近距离,单位:米
798
+ # @param app_key [String]
799
+ # @param [Hash] opts the optional parameters
800
+ # @option opts [String] :gender 性别
801
+ # @option opts [Integer] :age_s 年龄段起始
802
+ # @option opts [Integer] :age_e 年龄段结束
803
+ # @option opts [String] :tag 兴趣标签
804
+ # @option opts [String] :type 分类
805
+ # @option opts [Integer] :skip 跳过的记录数 (default to 0)
806
+ # @option opts [Integer] :take 获取的记录数 (default to 10)
807
+ # @return [UserFriendsNearByResultApiResponse]
808
+ def user_friends_near_by(x, y, distance, app_key, opts = {})
809
+ data, _status_code, _headers = user_friends_near_by_with_http_info(x, y, distance, app_key, opts)
810
+ data
811
+ end
812
+
813
+ # 附近的用户推荐
814
+ # 推荐附近的用户
815
+ # @param x [Float] 纬度
816
+ # @param y [Float] 经度
817
+ # @param distance [Integer] 附近距离,单位:米
818
+ # @param app_key [String]
819
+ # @param [Hash] opts the optional parameters
820
+ # @option opts [String] :gender 性别
821
+ # @option opts [Integer] :age_s 年龄段起始
822
+ # @option opts [Integer] :age_e 年龄段结束
823
+ # @option opts [String] :tag 兴趣标签
824
+ # @option opts [String] :type 分类
825
+ # @option opts [Integer] :skip 跳过的记录数 (default to 0)
826
+ # @option opts [Integer] :take 获取的记录数 (default to 10)
827
+ # @return [Array<(UserFriendsNearByResultApiResponse, Integer, Hash)>] UserFriendsNearByResultApiResponse data, response status code and response headers
828
+ def user_friends_near_by_with_http_info(x, y, distance, app_key, opts = {})
829
+ if @api_client.config.debugging
830
+ @api_client.config.logger.debug 'Calling API: UserApi.user_friends_near_by ...'
831
+ end
832
+ # verify the required parameter 'x' is set
833
+ if @api_client.config.client_side_validation && x.nil?
834
+ fail ArgumentError, "Missing the required parameter 'x' when calling UserApi.user_friends_near_by"
835
+ end
836
+ # verify the required parameter 'y' is set
837
+ if @api_client.config.client_side_validation && y.nil?
838
+ fail ArgumentError, "Missing the required parameter 'y' when calling UserApi.user_friends_near_by"
839
+ end
840
+ # verify the required parameter 'distance' is set
841
+ if @api_client.config.client_side_validation && distance.nil?
842
+ fail ArgumentError, "Missing the required parameter 'distance' when calling UserApi.user_friends_near_by"
843
+ end
844
+ # verify the required parameter 'app_key' is set
845
+ if @api_client.config.client_side_validation && app_key.nil?
846
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_friends_near_by"
847
+ end
848
+ # resource path
849
+ local_var_path = '/User/{appKey}/Friends/NearBy'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
850
+
851
+ # query parameters
852
+ query_params = opts[:query_params] || {}
853
+ query_params[:'x'] = x
854
+ query_params[:'y'] = y
855
+ query_params[:'distance'] = distance
856
+ query_params[:'gender'] = opts[:'gender'] if !opts[:'gender'].nil?
857
+ query_params[:'ageS'] = opts[:'age_s'] if !opts[:'age_s'].nil?
858
+ query_params[:'ageE'] = opts[:'age_e'] if !opts[:'age_e'].nil?
859
+ query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
860
+ query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
861
+ query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
862
+ query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
863
+
864
+ # header parameters
865
+ header_params = opts[:header_params] || {}
866
+ # HTTP header 'Accept' (if needed)
867
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
868
+
869
+ # form parameters
870
+ form_params = opts[:form_params] || {}
871
+
872
+ # http body (model)
873
+ post_body = opts[:debug_body]
874
+
875
+ # return_type
876
+ return_type = opts[:debug_return_type] || 'UserFriendsNearByResultApiResponse'
877
+
878
+ # auth_names
879
+ auth_names = opts[:debug_auth_names] || ['Bearer']
880
+
881
+ new_options = opts.merge(
882
+ :operation => :"UserApi.user_friends_near_by",
883
+ :header_params => header_params,
884
+ :query_params => query_params,
885
+ :form_params => form_params,
886
+ :body => post_body,
887
+ :auth_names => auth_names,
888
+ :return_type => return_type
889
+ )
890
+
891
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
892
+ if @api_client.config.debugging
893
+ @api_client.config.logger.debug "API called: UserApi#user_friends_near_by\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
894
+ end
895
+ return data, status_code, headers
896
+ end
897
+
898
+ # 导入用户数据
899
+ # 导入用户数据
900
+ # @param app_key [String]
901
+ # @param [Hash] opts the optional parameters
902
+ # @option opts [Boolean] :check 是否进行检查
903
+ # @option opts [File] :file 导入的文件
904
+ # @return [BooleanApiResponse]
905
+ def user_import(app_key, opts = {})
906
+ data, _status_code, _headers = user_import_with_http_info(app_key, opts)
907
+ data
908
+ end
909
+
910
+ # 导入用户数据
911
+ # 导入用户数据
912
+ # @param app_key [String]
913
+ # @param [Hash] opts the optional parameters
914
+ # @option opts [Boolean] :check 是否进行检查
915
+ # @option opts [File] :file 导入的文件
916
+ # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
917
+ def user_import_with_http_info(app_key, opts = {})
918
+ if @api_client.config.debugging
919
+ @api_client.config.logger.debug 'Calling API: UserApi.user_import ...'
920
+ end
921
+ # verify the required parameter 'app_key' is set
922
+ if @api_client.config.client_side_validation && app_key.nil?
923
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_import"
924
+ end
925
+ # resource path
926
+ local_var_path = '/User/{appKey}/Import'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
927
+
928
+ # query parameters
929
+ query_params = opts[:query_params] || {}
930
+ query_params[:'check'] = opts[:'check'] if !opts[:'check'].nil?
931
+
932
+ # header parameters
933
+ header_params = opts[:header_params] || {}
934
+ # HTTP header 'Accept' (if needed)
935
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
936
+ # HTTP header 'Content-Type'
937
+ content_type = @api_client.select_header_content_type(['multipart/form-data'])
938
+ if !content_type.nil?
939
+ header_params['Content-Type'] = content_type
940
+ end
941
+
942
+ # form parameters
943
+ form_params = opts[:form_params] || {}
944
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
945
+
946
+ # http body (model)
947
+ post_body = opts[:debug_body]
948
+
949
+ # return_type
950
+ return_type = opts[:debug_return_type] || 'BooleanApiResponse'
951
+
952
+ # auth_names
953
+ auth_names = opts[:debug_auth_names] || ['Bearer']
954
+
955
+ new_options = opts.merge(
956
+ :operation => :"UserApi.user_import",
957
+ :header_params => header_params,
958
+ :query_params => query_params,
959
+ :form_params => form_params,
960
+ :body => post_body,
961
+ :auth_names => auth_names,
962
+ :return_type => return_type
963
+ )
964
+
965
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
966
+ if @api_client.config.debugging
967
+ @api_client.config.logger.debug "API called: UserApi#user_import\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
968
+ end
969
+ return data, status_code, headers
970
+ end
971
+
972
+ # 获取位置详情
973
+ # 根据位置ID获取位置详情
974
+ # @param id [Integer] 位置ID
975
+ # @param app_key [String]
976
+ # @param [Hash] opts the optional parameters
977
+ # @return [GeoLocationModelApiResponse]
978
+ def user_location(id, app_key, opts = {})
979
+ data, _status_code, _headers = user_location_with_http_info(id, app_key, opts)
980
+ data
981
+ end
982
+
983
+ # 获取位置详情
984
+ # 根据位置ID获取位置详情
985
+ # @param id [Integer] 位置ID
986
+ # @param app_key [String]
987
+ # @param [Hash] opts the optional parameters
988
+ # @return [Array<(GeoLocationModelApiResponse, Integer, Hash)>] GeoLocationModelApiResponse data, response status code and response headers
989
+ def user_location_with_http_info(id, app_key, opts = {})
990
+ if @api_client.config.debugging
991
+ @api_client.config.logger.debug 'Calling API: UserApi.user_location ...'
992
+ end
993
+ # verify the required parameter 'id' is set
994
+ if @api_client.config.client_side_validation && id.nil?
995
+ fail ArgumentError, "Missing the required parameter 'id' when calling UserApi.user_location"
996
+ end
997
+ # verify the required parameter 'app_key' is set
998
+ if @api_client.config.client_side_validation && app_key.nil?
999
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_location"
1000
+ end
1001
+ # resource path
1002
+ local_var_path = '/User/{appKey}/Location/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
1003
+
1004
+ # query parameters
1005
+ query_params = opts[:query_params] || {}
1006
+
1007
+ # header parameters
1008
+ header_params = opts[:header_params] || {}
1009
+ # HTTP header 'Accept' (if needed)
1010
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1011
+
1012
+ # form parameters
1013
+ form_params = opts[:form_params] || {}
1014
+
1015
+ # http body (model)
1016
+ post_body = opts[:debug_body]
1017
+
1018
+ # return_type
1019
+ return_type = opts[:debug_return_type] || 'GeoLocationModelApiResponse'
1020
+
1021
+ # auth_names
1022
+ auth_names = opts[:debug_auth_names] || ['Bearer']
1023
+
1024
+ new_options = opts.merge(
1025
+ :operation => :"UserApi.user_location",
1026
+ :header_params => header_params,
1027
+ :query_params => query_params,
1028
+ :form_params => form_params,
1029
+ :body => post_body,
1030
+ :auth_names => auth_names,
1031
+ :return_type => return_type
1032
+ )
1033
+
1034
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1035
+ if @api_client.config.debugging
1036
+ @api_client.config.logger.debug "API called: UserApi#user_location\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1037
+ end
1038
+ return data, status_code, headers
1039
+ end
1040
+
1041
+ # 删除位置
1042
+ # 根据位置ID删除位置信息
1043
+ # @param id [Integer] 位置ID
1044
+ # @param app_key [String]
1045
+ # @param [Hash] opts the optional parameters
1046
+ # @return [BooleanApiResponse]
1047
+ def user_location_delete(id, app_key, opts = {})
1048
+ data, _status_code, _headers = user_location_delete_with_http_info(id, app_key, opts)
1049
+ data
1050
+ end
1051
+
1052
+ # 删除位置
1053
+ # 根据位置ID删除位置信息
1054
+ # @param id [Integer] 位置ID
1055
+ # @param app_key [String]
1056
+ # @param [Hash] opts the optional parameters
1057
+ # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
1058
+ def user_location_delete_with_http_info(id, app_key, opts = {})
1059
+ if @api_client.config.debugging
1060
+ @api_client.config.logger.debug 'Calling API: UserApi.user_location_delete ...'
1061
+ end
1062
+ # verify the required parameter 'id' is set
1063
+ if @api_client.config.client_side_validation && id.nil?
1064
+ fail ArgumentError, "Missing the required parameter 'id' when calling UserApi.user_location_delete"
1065
+ end
1066
+ # verify the required parameter 'app_key' is set
1067
+ if @api_client.config.client_side_validation && app_key.nil?
1068
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_location_delete"
1069
+ end
1070
+ # resource path
1071
+ local_var_path = '/User/{appKey}/Location/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
1072
+
1073
+ # query parameters
1074
+ query_params = opts[:query_params] || {}
1075
+
1076
+ # header parameters
1077
+ header_params = opts[:header_params] || {}
1078
+ # HTTP header 'Accept' (if needed)
1079
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1080
+
1081
+ # form parameters
1082
+ form_params = opts[:form_params] || {}
1083
+
1084
+ # http body (model)
1085
+ post_body = opts[:debug_body]
1086
+
1087
+ # return_type
1088
+ return_type = opts[:debug_return_type] || 'BooleanApiResponse'
1089
+
1090
+ # auth_names
1091
+ auth_names = opts[:debug_auth_names] || ['Bearer']
1092
+
1093
+ new_options = opts.merge(
1094
+ :operation => :"UserApi.user_location_delete",
1095
+ :header_params => header_params,
1096
+ :query_params => query_params,
1097
+ :form_params => form_params,
1098
+ :body => post_body,
1099
+ :auth_names => auth_names,
1100
+ :return_type => return_type
1101
+ )
1102
+
1103
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1104
+ if @api_client.config.debugging
1105
+ @api_client.config.logger.debug "API called: UserApi#user_location_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1106
+ end
1107
+ return data, status_code, headers
1108
+ end
1109
+
1110
+ # 添加位置
1111
+ # 添加新的位置信息
1112
+ # @param app_key [String]
1113
+ # @param [Hash] opts the optional parameters
1114
+ # @option opts [GeoLocationModel] :geo_location_model 位置信息
1115
+ # @return [UserLocationPostResultApiResponse]
1116
+ def user_location_post(app_key, opts = {})
1117
+ data, _status_code, _headers = user_location_post_with_http_info(app_key, opts)
1118
+ data
1119
+ end
1120
+
1121
+ # 添加位置
1122
+ # 添加新的位置信息
1123
+ # @param app_key [String]
1124
+ # @param [Hash] opts the optional parameters
1125
+ # @option opts [GeoLocationModel] :geo_location_model 位置信息
1126
+ # @return [Array<(UserLocationPostResultApiResponse, Integer, Hash)>] UserLocationPostResultApiResponse data, response status code and response headers
1127
+ def user_location_post_with_http_info(app_key, opts = {})
1128
+ if @api_client.config.debugging
1129
+ @api_client.config.logger.debug 'Calling API: UserApi.user_location_post ...'
1130
+ end
1131
+ # verify the required parameter 'app_key' is set
1132
+ if @api_client.config.client_side_validation && app_key.nil?
1133
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_location_post"
1134
+ end
1135
+ # resource path
1136
+ local_var_path = '/User/{appKey}/Location'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
1137
+
1138
+ # query parameters
1139
+ query_params = opts[:query_params] || {}
1140
+
1141
+ # header parameters
1142
+ header_params = opts[:header_params] || {}
1143
+ # HTTP header 'Accept' (if needed)
1144
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1145
+ # HTTP header 'Content-Type'
1146
+ content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
1147
+ if !content_type.nil?
1148
+ header_params['Content-Type'] = content_type
1149
+ end
1150
+
1151
+ # form parameters
1152
+ form_params = opts[:form_params] || {}
1153
+
1154
+ # http body (model)
1155
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'geo_location_model'])
1156
+
1157
+ # return_type
1158
+ return_type = opts[:debug_return_type] || 'UserLocationPostResultApiResponse'
1159
+
1160
+ # auth_names
1161
+ auth_names = opts[:debug_auth_names] || ['Bearer']
1162
+
1163
+ new_options = opts.merge(
1164
+ :operation => :"UserApi.user_location_post",
1165
+ :header_params => header_params,
1166
+ :query_params => query_params,
1167
+ :form_params => form_params,
1168
+ :body => post_body,
1169
+ :auth_names => auth_names,
1170
+ :return_type => return_type
1171
+ )
1172
+
1173
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1174
+ if @api_client.config.debugging
1175
+ @api_client.config.logger.debug "API called: UserApi#user_location_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1176
+ end
1177
+ return data, status_code, headers
1178
+ end
1179
+
1180
+ # 更新位置
1181
+ # 根据位置ID更新位置信息
1182
+ # @param id [Integer] 位置ID
1183
+ # @param app_key [String]
1184
+ # @param [Hash] opts the optional parameters
1185
+ # @option opts [GeoLocationModel] :geo_location_model 位置信息
1186
+ # @return [BooleanApiResponse]
1187
+ def user_location_put(id, app_key, opts = {})
1188
+ data, _status_code, _headers = user_location_put_with_http_info(id, app_key, opts)
1189
+ data
1190
+ end
1191
+
1192
+ # 更新位置
1193
+ # 根据位置ID更新位置信息
1194
+ # @param id [Integer] 位置ID
1195
+ # @param app_key [String]
1196
+ # @param [Hash] opts the optional parameters
1197
+ # @option opts [GeoLocationModel] :geo_location_model 位置信息
1198
+ # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
1199
+ def user_location_put_with_http_info(id, app_key, opts = {})
1200
+ if @api_client.config.debugging
1201
+ @api_client.config.logger.debug 'Calling API: UserApi.user_location_put ...'
1202
+ end
1203
+ # verify the required parameter 'id' is set
1204
+ if @api_client.config.client_side_validation && id.nil?
1205
+ fail ArgumentError, "Missing the required parameter 'id' when calling UserApi.user_location_put"
1206
+ end
1207
+ # verify the required parameter 'app_key' is set
1208
+ if @api_client.config.client_side_validation && app_key.nil?
1209
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_location_put"
1210
+ end
1211
+ # resource path
1212
+ local_var_path = '/User/{appKey}/Location/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
1213
+
1214
+ # query parameters
1215
+ query_params = opts[:query_params] || {}
1216
+
1217
+ # header parameters
1218
+ header_params = opts[:header_params] || {}
1219
+ # HTTP header 'Accept' (if needed)
1220
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1221
+ # HTTP header 'Content-Type'
1222
+ content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
1223
+ if !content_type.nil?
1224
+ header_params['Content-Type'] = content_type
1225
+ end
1226
+
1227
+ # form parameters
1228
+ form_params = opts[:form_params] || {}
1229
+
1230
+ # http body (model)
1231
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'geo_location_model'])
1232
+
1233
+ # return_type
1234
+ return_type = opts[:debug_return_type] || 'BooleanApiResponse'
1235
+
1236
+ # auth_names
1237
+ auth_names = opts[:debug_auth_names] || ['Bearer']
1238
+
1239
+ new_options = opts.merge(
1240
+ :operation => :"UserApi.user_location_put",
1241
+ :header_params => header_params,
1242
+ :query_params => query_params,
1243
+ :form_params => form_params,
1244
+ :body => post_body,
1245
+ :auth_names => auth_names,
1246
+ :return_type => return_type
1247
+ )
1248
+
1249
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1250
+ if @api_client.config.debugging
1251
+ @api_client.config.logger.debug "API called: UserApi#user_location_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1252
+ end
1253
+ return data, status_code, headers
1254
+ end
1255
+
1256
+ # 获取位置列表
1257
+ # 根据条件获取位置列表
1258
+ # @param app_key [String]
1259
+ # @param [Hash] opts the optional parameters
1260
+ # @option opts [String] :tag 标签
1261
+ # @option opts [String] :type 分类
1262
+ # @option opts [Float] :x 纬度
1263
+ # @option opts [Float] :y 经度
1264
+ # @option opts [Integer] :sphere 附近距离,单位:米
1265
+ # @option opts [Integer] :skip 跳过的记录数
1266
+ # @option opts [Integer] :take 获取的记录数 (default to 10)
1267
+ # @return [UserLocationsResultApiResponse]
1268
+ def user_locations(app_key, opts = {})
1269
+ data, _status_code, _headers = user_locations_with_http_info(app_key, opts)
1270
+ data
1271
+ end
1272
+
1273
+ # 获取位置列表
1274
+ # 根据条件获取位置列表
1275
+ # @param app_key [String]
1276
+ # @param [Hash] opts the optional parameters
1277
+ # @option opts [String] :tag 标签
1278
+ # @option opts [String] :type 分类
1279
+ # @option opts [Float] :x 纬度
1280
+ # @option opts [Float] :y 经度
1281
+ # @option opts [Integer] :sphere 附近距离,单位:米
1282
+ # @option opts [Integer] :skip 跳过的记录数
1283
+ # @option opts [Integer] :take 获取的记录数 (default to 10)
1284
+ # @return [Array<(UserLocationsResultApiResponse, Integer, Hash)>] UserLocationsResultApiResponse data, response status code and response headers
1285
+ def user_locations_with_http_info(app_key, opts = {})
1286
+ if @api_client.config.debugging
1287
+ @api_client.config.logger.debug 'Calling API: UserApi.user_locations ...'
1288
+ end
1289
+ # verify the required parameter 'app_key' is set
1290
+ if @api_client.config.client_side_validation && app_key.nil?
1291
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_locations"
1292
+ end
1293
+ # resource path
1294
+ local_var_path = '/User/{appKey}/Locations'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
1295
+
1296
+ # query parameters
1297
+ query_params = opts[:query_params] || {}
1298
+ query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
1299
+ query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
1300
+ query_params[:'x'] = opts[:'x'] if !opts[:'x'].nil?
1301
+ query_params[:'y'] = opts[:'y'] if !opts[:'y'].nil?
1302
+ query_params[:'sphere'] = opts[:'sphere'] if !opts[:'sphere'].nil?
1303
+ query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
1304
+ query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
1305
+
1306
+ # header parameters
1307
+ header_params = opts[:header_params] || {}
1308
+ # HTTP header 'Accept' (if needed)
1309
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1310
+
1311
+ # form parameters
1312
+ form_params = opts[:form_params] || {}
1313
+
1314
+ # http body (model)
1315
+ post_body = opts[:debug_body]
1316
+
1317
+ # return_type
1318
+ return_type = opts[:debug_return_type] || 'UserLocationsResultApiResponse'
1319
+
1320
+ # auth_names
1321
+ auth_names = opts[:debug_auth_names] || ['Bearer']
1322
+
1323
+ new_options = opts.merge(
1324
+ :operation => :"UserApi.user_locations",
1325
+ :header_params => header_params,
1326
+ :query_params => query_params,
1327
+ :form_params => form_params,
1328
+ :body => post_body,
1329
+ :auth_names => auth_names,
1330
+ :return_type => return_type
1331
+ )
1332
+
1333
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1334
+ if @api_client.config.debugging
1335
+ @api_client.config.logger.debug "API called: UserApi#user_locations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1336
+ end
1337
+ return data, status_code, headers
1338
+ end
1339
+
1340
+ # 有共同粉丝的用户推荐
1341
+ # 推荐有共同粉丝的用户
1342
+ # @param app_key [String]
1343
+ # @param [Hash] opts the optional parameters
1344
+ # @option opts [Integer] :skip 跳过的记录数 (default to 0)
1345
+ # @option opts [Integer] :take 获取的记录数 (default to 10)
1346
+ # @return [UserMutualFollowersResultApiResponse]
1347
+ def user_mutual_followers(app_key, opts = {})
1348
+ data, _status_code, _headers = user_mutual_followers_with_http_info(app_key, opts)
1349
+ data
1350
+ end
1351
+
1352
+ # 有共同粉丝的用户推荐
1353
+ # 推荐有共同粉丝的用户
1354
+ # @param app_key [String]
1355
+ # @param [Hash] opts the optional parameters
1356
+ # @option opts [Integer] :skip 跳过的记录数 (default to 0)
1357
+ # @option opts [Integer] :take 获取的记录数 (default to 10)
1358
+ # @return [Array<(UserMutualFollowersResultApiResponse, Integer, Hash)>] UserMutualFollowersResultApiResponse data, response status code and response headers
1359
+ def user_mutual_followers_with_http_info(app_key, opts = {})
1360
+ if @api_client.config.debugging
1361
+ @api_client.config.logger.debug 'Calling API: UserApi.user_mutual_followers ...'
1362
+ end
1363
+ # verify the required parameter 'app_key' is set
1364
+ if @api_client.config.client_side_validation && app_key.nil?
1365
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_mutual_followers"
1366
+ end
1367
+ # resource path
1368
+ local_var_path = '/User/{appKey}/Friends/MutualFollowers'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
1369
+
1370
+ # query parameters
1371
+ query_params = opts[:query_params] || {}
1372
+ query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
1373
+ query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
1374
+
1375
+ # header parameters
1376
+ header_params = opts[:header_params] || {}
1377
+ # HTTP header 'Accept' (if needed)
1378
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1379
+
1380
+ # form parameters
1381
+ form_params = opts[:form_params] || {}
1382
+
1383
+ # http body (model)
1384
+ post_body = opts[:debug_body]
1385
+
1386
+ # return_type
1387
+ return_type = opts[:debug_return_type] || 'UserMutualFollowersResultApiResponse'
1388
+
1389
+ # auth_names
1390
+ auth_names = opts[:debug_auth_names] || ['Bearer']
1391
+
1392
+ new_options = opts.merge(
1393
+ :operation => :"UserApi.user_mutual_followers",
1394
+ :header_params => header_params,
1395
+ :query_params => query_params,
1396
+ :form_params => form_params,
1397
+ :body => post_body,
1398
+ :auth_names => auth_names,
1399
+ :return_type => return_type
1400
+ )
1401
+
1402
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1403
+ if @api_client.config.debugging
1404
+ @api_client.config.logger.debug "API called: UserApi#user_mutual_followers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1405
+ end
1406
+ return data, status_code, headers
1407
+ end
1408
+
1409
+ # 有共同关注的用户推荐
1410
+ # 推荐有共同关注的用户
1411
+ # @param app_key [String]
1412
+ # @param [Hash] opts the optional parameters
1413
+ # @option opts [Integer] :skip 跳过的记录数 (default to 0)
1414
+ # @option opts [Integer] :take 获取的记录数 (default to 10)
1415
+ # @return [UserMutualFollowingsResultApiResponse]
1416
+ def user_mutual_followings(app_key, opts = {})
1417
+ data, _status_code, _headers = user_mutual_followings_with_http_info(app_key, opts)
1418
+ data
1419
+ end
1420
+
1421
+ # 有共同关注的用户推荐
1422
+ # 推荐有共同关注的用户
1423
+ # @param app_key [String]
1424
+ # @param [Hash] opts the optional parameters
1425
+ # @option opts [Integer] :skip 跳过的记录数 (default to 0)
1426
+ # @option opts [Integer] :take 获取的记录数 (default to 10)
1427
+ # @return [Array<(UserMutualFollowingsResultApiResponse, Integer, Hash)>] UserMutualFollowingsResultApiResponse data, response status code and response headers
1428
+ def user_mutual_followings_with_http_info(app_key, opts = {})
1429
+ if @api_client.config.debugging
1430
+ @api_client.config.logger.debug 'Calling API: UserApi.user_mutual_followings ...'
1431
+ end
1432
+ # verify the required parameter 'app_key' is set
1433
+ if @api_client.config.client_side_validation && app_key.nil?
1434
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_mutual_followings"
1435
+ end
1436
+ # resource path
1437
+ local_var_path = '/User/{appKey}/Friends/MutualFollowings'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
1438
+
1439
+ # query parameters
1440
+ query_params = opts[:query_params] || {}
1441
+ query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
1442
+ query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
1443
+
1444
+ # header parameters
1445
+ header_params = opts[:header_params] || {}
1446
+ # HTTP header 'Accept' (if needed)
1447
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1448
+
1449
+ # form parameters
1450
+ form_params = opts[:form_params] || {}
1451
+
1452
+ # http body (model)
1453
+ post_body = opts[:debug_body]
1454
+
1455
+ # return_type
1456
+ return_type = opts[:debug_return_type] || 'UserMutualFollowingsResultApiResponse'
1457
+
1458
+ # auth_names
1459
+ auth_names = opts[:debug_auth_names] || ['Bearer']
1460
+
1461
+ new_options = opts.merge(
1462
+ :operation => :"UserApi.user_mutual_followings",
1463
+ :header_params => header_params,
1464
+ :query_params => query_params,
1465
+ :form_params => form_params,
1466
+ :body => post_body,
1467
+ :auth_names => auth_names,
1468
+ :return_type => return_type
1469
+ )
1470
+
1471
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1472
+ if @api_client.config.debugging
1473
+ @api_client.config.logger.debug "API called: UserApi#user_mutual_followings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1474
+ end
1475
+ return data, status_code, headers
1476
+ end
1477
+
1478
+ # 外部账号 绑定
1479
+ # 绑定外部账号
1480
+ # @param app_key [String]
1481
+ # @param [Hash] opts the optional parameters
1482
+ # @option opts [OAuthAccountBindRequest] :o_auth_account_bind_request 绑定请求参数
1483
+ # @return [BooleanApiResponse]
1484
+ def user_o_auth_account_bind(app_key, opts = {})
1485
+ data, _status_code, _headers = user_o_auth_account_bind_with_http_info(app_key, opts)
1486
+ data
1487
+ end
1488
+
1489
+ # 外部账号 绑定
1490
+ # 绑定外部账号
1491
+ # @param app_key [String]
1492
+ # @param [Hash] opts the optional parameters
1493
+ # @option opts [OAuthAccountBindRequest] :o_auth_account_bind_request 绑定请求参数
1494
+ # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
1495
+ def user_o_auth_account_bind_with_http_info(app_key, opts = {})
1496
+ if @api_client.config.debugging
1497
+ @api_client.config.logger.debug 'Calling API: UserApi.user_o_auth_account_bind ...'
1498
+ end
1499
+ # verify the required parameter 'app_key' is set
1500
+ if @api_client.config.client_side_validation && app_key.nil?
1501
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_o_auth_account_bind"
1502
+ end
1503
+ # resource path
1504
+ local_var_path = '/User/{appKey}/OAuthAccountBind'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
1505
+
1506
+ # query parameters
1507
+ query_params = opts[:query_params] || {}
1508
+
1509
+ # header parameters
1510
+ header_params = opts[:header_params] || {}
1511
+ # HTTP header 'Accept' (if needed)
1512
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1513
+ # HTTP header 'Content-Type'
1514
+ content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
1515
+ if !content_type.nil?
1516
+ header_params['Content-Type'] = content_type
1517
+ end
1518
+
1519
+ # form parameters
1520
+ form_params = opts[:form_params] || {}
1521
+
1522
+ # http body (model)
1523
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'o_auth_account_bind_request'])
1524
+
1525
+ # return_type
1526
+ return_type = opts[:debug_return_type] || 'BooleanApiResponse'
1527
+
1528
+ # auth_names
1529
+ auth_names = opts[:debug_auth_names] || ['Bearer']
1530
+
1531
+ new_options = opts.merge(
1532
+ :operation => :"UserApi.user_o_auth_account_bind",
1533
+ :header_params => header_params,
1534
+ :query_params => query_params,
1535
+ :form_params => form_params,
1536
+ :body => post_body,
1537
+ :auth_names => auth_names,
1538
+ :return_type => return_type
1539
+ )
1540
+
1541
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1542
+ if @api_client.config.debugging
1543
+ @api_client.config.logger.debug "API called: UserApi#user_o_auth_account_bind\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1544
+ end
1545
+ return data, status_code, headers
1546
+ end
1547
+
1548
+ # 外部账号 登录
1549
+ # 使用外部账号进行登录
1550
+ # @param app_key [String]
1551
+ # @param [Hash] opts the optional parameters
1552
+ # @option opts [OAuthAccountSignInRequest] :o_auth_account_sign_in_request 登录请求参数
1553
+ # @return [TokenModelApiResponse]
1554
+ def user_o_auth_account_sign_in(app_key, opts = {})
1555
+ data, _status_code, _headers = user_o_auth_account_sign_in_with_http_info(app_key, opts)
1556
+ data
1557
+ end
1558
+
1559
+ # 外部账号 登录
1560
+ # 使用外部账号进行登录
1561
+ # @param app_key [String]
1562
+ # @param [Hash] opts the optional parameters
1563
+ # @option opts [OAuthAccountSignInRequest] :o_auth_account_sign_in_request 登录请求参数
1564
+ # @return [Array<(TokenModelApiResponse, Integer, Hash)>] TokenModelApiResponse data, response status code and response headers
1565
+ def user_o_auth_account_sign_in_with_http_info(app_key, opts = {})
1566
+ if @api_client.config.debugging
1567
+ @api_client.config.logger.debug 'Calling API: UserApi.user_o_auth_account_sign_in ...'
1568
+ end
1569
+ # verify the required parameter 'app_key' is set
1570
+ if @api_client.config.client_side_validation && app_key.nil?
1571
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_o_auth_account_sign_in"
1572
+ end
1573
+ # resource path
1574
+ local_var_path = '/User/{appKey}/OAuthAccountSignIn'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
1575
+
1576
+ # query parameters
1577
+ query_params = opts[:query_params] || {}
1578
+
1579
+ # header parameters
1580
+ header_params = opts[:header_params] || {}
1581
+ # HTTP header 'Accept' (if needed)
1582
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1583
+ # HTTP header 'Content-Type'
1584
+ content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
1585
+ if !content_type.nil?
1586
+ header_params['Content-Type'] = content_type
1587
+ end
1588
+
1589
+ # form parameters
1590
+ form_params = opts[:form_params] || {}
1591
+
1592
+ # http body (model)
1593
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'o_auth_account_sign_in_request'])
1594
+
1595
+ # return_type
1596
+ return_type = opts[:debug_return_type] || 'TokenModelApiResponse'
1597
+
1598
+ # auth_names
1599
+ auth_names = opts[:debug_auth_names] || ['Bearer']
1600
+
1601
+ new_options = opts.merge(
1602
+ :operation => :"UserApi.user_o_auth_account_sign_in",
1603
+ :header_params => header_params,
1604
+ :query_params => query_params,
1605
+ :form_params => form_params,
1606
+ :body => post_body,
1607
+ :auth_names => auth_names,
1608
+ :return_type => return_type
1609
+ )
1610
+
1611
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1612
+ if @api_client.config.debugging
1613
+ @api_client.config.logger.debug "API called: UserApi#user_o_auth_account_sign_in\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1614
+ end
1615
+ return data, status_code, headers
1616
+ end
1617
+
1618
+ # 外部账号 绑定列表
1619
+ # 获取外部账号绑定列表
1620
+ # @param app_key [String]
1621
+ # @param [Hash] opts the optional parameters
1622
+ # @return [UserLoginsListApiResponse]
1623
+ def user_o_auth_accounts(app_key, opts = {})
1624
+ data, _status_code, _headers = user_o_auth_accounts_with_http_info(app_key, opts)
1625
+ data
1626
+ end
1627
+
1628
+ # 外部账号 绑定列表
1629
+ # 获取外部账号绑定列表
1630
+ # @param app_key [String]
1631
+ # @param [Hash] opts the optional parameters
1632
+ # @return [Array<(UserLoginsListApiResponse, Integer, Hash)>] UserLoginsListApiResponse data, response status code and response headers
1633
+ def user_o_auth_accounts_with_http_info(app_key, opts = {})
1634
+ if @api_client.config.debugging
1635
+ @api_client.config.logger.debug 'Calling API: UserApi.user_o_auth_accounts ...'
1636
+ end
1637
+ # verify the required parameter 'app_key' is set
1638
+ if @api_client.config.client_side_validation && app_key.nil?
1639
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_o_auth_accounts"
1640
+ end
1641
+ # resource path
1642
+ local_var_path = '/User/{appKey}/OAuthAccounts'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
1643
+
1644
+ # query parameters
1645
+ query_params = opts[:query_params] || {}
1646
+
1647
+ # header parameters
1648
+ header_params = opts[:header_params] || {}
1649
+ # HTTP header 'Accept' (if needed)
1650
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1651
+
1652
+ # form parameters
1653
+ form_params = opts[:form_params] || {}
1654
+
1655
+ # http body (model)
1656
+ post_body = opts[:debug_body]
1657
+
1658
+ # return_type
1659
+ return_type = opts[:debug_return_type] || 'UserLoginsListApiResponse'
1660
+
1661
+ # auth_names
1662
+ auth_names = opts[:debug_auth_names] || ['Bearer']
1663
+
1664
+ new_options = opts.merge(
1665
+ :operation => :"UserApi.user_o_auth_accounts",
1666
+ :header_params => header_params,
1667
+ :query_params => query_params,
1668
+ :form_params => form_params,
1669
+ :body => post_body,
1670
+ :auth_names => auth_names,
1671
+ :return_type => return_type
1672
+ )
1673
+
1674
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1675
+ if @api_client.config.debugging
1676
+ @api_client.config.logger.debug "API called: UserApi#user_o_auth_accounts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1677
+ end
1678
+ return data, status_code, headers
1679
+ end
1680
+
1681
+ # 外部账号 更新绑定
1682
+ # 更新外部账号绑定信息
1683
+ # @param id [Integer] 绑定ID
1684
+ # @param app_key [String]
1685
+ # @param [Hash] opts the optional parameters
1686
+ # @option opts [OAuthAccountPutBindRequest] :o_auth_account_put_bind_request 更新请求参数
1687
+ # @return [BooleanApiResponse]
1688
+ def user_o_auth_accounts_put_bind(id, app_key, opts = {})
1689
+ data, _status_code, _headers = user_o_auth_accounts_put_bind_with_http_info(id, app_key, opts)
1690
+ data
1691
+ end
1692
+
1693
+ # 外部账号 更新绑定
1694
+ # 更新外部账号绑定信息
1695
+ # @param id [Integer] 绑定ID
1696
+ # @param app_key [String]
1697
+ # @param [Hash] opts the optional parameters
1698
+ # @option opts [OAuthAccountPutBindRequest] :o_auth_account_put_bind_request 更新请求参数
1699
+ # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
1700
+ def user_o_auth_accounts_put_bind_with_http_info(id, app_key, opts = {})
1701
+ if @api_client.config.debugging
1702
+ @api_client.config.logger.debug 'Calling API: UserApi.user_o_auth_accounts_put_bind ...'
1703
+ end
1704
+ # verify the required parameter 'id' is set
1705
+ if @api_client.config.client_side_validation && id.nil?
1706
+ fail ArgumentError, "Missing the required parameter 'id' when calling UserApi.user_o_auth_accounts_put_bind"
1707
+ end
1708
+ # verify the required parameter 'app_key' is set
1709
+ if @api_client.config.client_side_validation && app_key.nil?
1710
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_o_auth_accounts_put_bind"
1711
+ end
1712
+ # resource path
1713
+ local_var_path = '/User/{appKey}/OAuthAccounts/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
1714
+
1715
+ # query parameters
1716
+ query_params = opts[:query_params] || {}
1717
+
1718
+ # header parameters
1719
+ header_params = opts[:header_params] || {}
1720
+ # HTTP header 'Accept' (if needed)
1721
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1722
+ # HTTP header 'Content-Type'
1723
+ content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
1724
+ if !content_type.nil?
1725
+ header_params['Content-Type'] = content_type
1726
+ end
1727
+
1728
+ # form parameters
1729
+ form_params = opts[:form_params] || {}
1730
+
1731
+ # http body (model)
1732
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'o_auth_account_put_bind_request'])
1733
+
1734
+ # return_type
1735
+ return_type = opts[:debug_return_type] || 'BooleanApiResponse'
1736
+
1737
+ # auth_names
1738
+ auth_names = opts[:debug_auth_names] || ['Bearer']
1739
+
1740
+ new_options = opts.merge(
1741
+ :operation => :"UserApi.user_o_auth_accounts_put_bind",
1742
+ :header_params => header_params,
1743
+ :query_params => query_params,
1744
+ :form_params => form_params,
1745
+ :body => post_body,
1746
+ :auth_names => auth_names,
1747
+ :return_type => return_type
1748
+ )
1749
+
1750
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1751
+ if @api_client.config.debugging
1752
+ @api_client.config.logger.debug "API called: UserApi#user_o_auth_accounts_put_bind\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1753
+ end
1754
+ return data, status_code, headers
1755
+ end
1756
+
1757
+ # 外部账号 删除绑定
1758
+ # 删除外部账号绑定
1759
+ # @param id [Integer] 绑定ID
1760
+ # @param app_key [String]
1761
+ # @param [Hash] opts the optional parameters
1762
+ # @return [BooleanApiResponse]
1763
+ def user_o_auth_accounts_un_bind(id, app_key, opts = {})
1764
+ data, _status_code, _headers = user_o_auth_accounts_un_bind_with_http_info(id, app_key, opts)
1765
+ data
1766
+ end
1767
+
1768
+ # 外部账号 删除绑定
1769
+ # 删除外部账号绑定
1770
+ # @param id [Integer] 绑定ID
1771
+ # @param app_key [String]
1772
+ # @param [Hash] opts the optional parameters
1773
+ # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
1774
+ def user_o_auth_accounts_un_bind_with_http_info(id, app_key, opts = {})
1775
+ if @api_client.config.debugging
1776
+ @api_client.config.logger.debug 'Calling API: UserApi.user_o_auth_accounts_un_bind ...'
1777
+ end
1778
+ # verify the required parameter 'id' is set
1779
+ if @api_client.config.client_side_validation && id.nil?
1780
+ fail ArgumentError, "Missing the required parameter 'id' when calling UserApi.user_o_auth_accounts_un_bind"
1781
+ end
1782
+ # verify the required parameter 'app_key' is set
1783
+ if @api_client.config.client_side_validation && app_key.nil?
1784
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_o_auth_accounts_un_bind"
1785
+ end
1786
+ # resource path
1787
+ local_var_path = '/User/{appKey}/OAuthAccounts/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
1788
+
1789
+ # query parameters
1790
+ query_params = opts[:query_params] || {}
1791
+
1792
+ # header parameters
1793
+ header_params = opts[:header_params] || {}
1794
+ # HTTP header 'Accept' (if needed)
1795
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1796
+
1797
+ # form parameters
1798
+ form_params = opts[:form_params] || {}
1799
+
1800
+ # http body (model)
1801
+ post_body = opts[:debug_body]
1802
+
1803
+ # return_type
1804
+ return_type = opts[:debug_return_type] || 'BooleanApiResponse'
1805
+
1806
+ # auth_names
1807
+ auth_names = opts[:debug_auth_names] || ['Bearer']
1808
+
1809
+ new_options = opts.merge(
1810
+ :operation => :"UserApi.user_o_auth_accounts_un_bind",
1811
+ :header_params => header_params,
1812
+ :query_params => query_params,
1813
+ :form_params => form_params,
1814
+ :body => post_body,
1815
+ :auth_names => auth_names,
1816
+ :return_type => return_type
1817
+ )
1818
+
1819
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
1820
+ if @api_client.config.debugging
1821
+ @api_client.config.logger.debug "API called: UserApi#user_o_auth_accounts_un_bind\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1822
+ end
1823
+ return data, status_code, headers
1824
+ end
1825
+
1826
+ # 手机登录
1827
+ # 使用手机号码进行登录
1828
+ # @param app_key [String]
1829
+ # @param [Hash] opts the optional parameters
1830
+ # @option opts [PhoneSignInRequest] :phone_sign_in_request 登录请求参数
1831
+ # @return [TokenModelApiResponse]
1832
+ def user_phone_sign_in(app_key, opts = {})
1833
+ data, _status_code, _headers = user_phone_sign_in_with_http_info(app_key, opts)
1834
+ data
1835
+ end
1836
+
1837
+ # 手机登录
1838
+ # 使用手机号码进行登录
1839
+ # @param app_key [String]
1840
+ # @param [Hash] opts the optional parameters
1841
+ # @option opts [PhoneSignInRequest] :phone_sign_in_request 登录请求参数
1842
+ # @return [Array<(TokenModelApiResponse, Integer, Hash)>] TokenModelApiResponse data, response status code and response headers
1843
+ def user_phone_sign_in_with_http_info(app_key, opts = {})
1844
+ if @api_client.config.debugging
1845
+ @api_client.config.logger.debug 'Calling API: UserApi.user_phone_sign_in ...'
1846
+ end
1847
+ # verify the required parameter 'app_key' is set
1848
+ if @api_client.config.client_side_validation && app_key.nil?
1849
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_phone_sign_in"
1850
+ end
1851
+ # resource path
1852
+ local_var_path = '/User/{appKey}/PhoneSignIn'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
1853
+
1854
+ # query parameters
1855
+ query_params = opts[:query_params] || {}
1856
+
1857
+ # header parameters
1858
+ header_params = opts[:header_params] || {}
1859
+ # HTTP header 'Accept' (if needed)
1860
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1861
+ # HTTP header 'Content-Type'
1862
+ content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
1863
+ if !content_type.nil?
1864
+ header_params['Content-Type'] = content_type
1865
+ end
1866
+
1867
+ # form parameters
1868
+ form_params = opts[:form_params] || {}
1869
+
1870
+ # http body (model)
1871
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'phone_sign_in_request'])
1872
+
1873
+ # return_type
1874
+ return_type = opts[:debug_return_type] || 'TokenModelApiResponse'
1875
+
1876
+ # auth_names
1877
+ auth_names = opts[:debug_auth_names] || ['Bearer']
1878
+
1879
+ new_options = opts.merge(
1880
+ :operation => :"UserApi.user_phone_sign_in",
1881
+ :header_params => header_params,
1882
+ :query_params => query_params,
1883
+ :form_params => form_params,
1884
+ :body => post_body,
1885
+ :auth_names => auth_names,
1886
+ :return_type => return_type
1887
+ )
1888
+
1889
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1890
+ if @api_client.config.debugging
1891
+ @api_client.config.logger.debug "API called: UserApi#user_phone_sign_in\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1892
+ end
1893
+ return data, status_code, headers
1894
+ end
1895
+
1896
+ # 手机注册
1897
+ # 使用手机号码进行注册
1898
+ # @param app_key [String]
1899
+ # @param [Hash] opts the optional parameters
1900
+ # @option opts [PhoneSignUpRequest] :phone_sign_up_request 注册请求参数
1901
+ # @return [TokenModelApiResponse]
1902
+ def user_phone_sign_up(app_key, opts = {})
1903
+ data, _status_code, _headers = user_phone_sign_up_with_http_info(app_key, opts)
1904
+ data
1905
+ end
1906
+
1907
+ # 手机注册
1908
+ # 使用手机号码进行注册
1909
+ # @param app_key [String]
1910
+ # @param [Hash] opts the optional parameters
1911
+ # @option opts [PhoneSignUpRequest] :phone_sign_up_request 注册请求参数
1912
+ # @return [Array<(TokenModelApiResponse, Integer, Hash)>] TokenModelApiResponse data, response status code and response headers
1913
+ def user_phone_sign_up_with_http_info(app_key, opts = {})
1914
+ if @api_client.config.debugging
1915
+ @api_client.config.logger.debug 'Calling API: UserApi.user_phone_sign_up ...'
1916
+ end
1917
+ # verify the required parameter 'app_key' is set
1918
+ if @api_client.config.client_side_validation && app_key.nil?
1919
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_phone_sign_up"
1920
+ end
1921
+ # resource path
1922
+ local_var_path = '/User/{appKey}/PhoneSignUp'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
1923
+
1924
+ # query parameters
1925
+ query_params = opts[:query_params] || {}
1926
+
1927
+ # header parameters
1928
+ header_params = opts[:header_params] || {}
1929
+ # HTTP header 'Accept' (if needed)
1930
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1931
+ # HTTP header 'Content-Type'
1932
+ content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
1933
+ if !content_type.nil?
1934
+ header_params['Content-Type'] = content_type
1935
+ end
1936
+
1937
+ # form parameters
1938
+ form_params = opts[:form_params] || {}
1939
+
1940
+ # http body (model)
1941
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'phone_sign_up_request'])
1942
+
1943
+ # return_type
1944
+ return_type = opts[:debug_return_type] || 'TokenModelApiResponse'
1945
+
1946
+ # auth_names
1947
+ auth_names = opts[:debug_auth_names] || ['Bearer']
1948
+
1949
+ new_options = opts.merge(
1950
+ :operation => :"UserApi.user_phone_sign_up",
1951
+ :header_params => header_params,
1952
+ :query_params => query_params,
1953
+ :form_params => form_params,
1954
+ :body => post_body,
1955
+ :auth_names => auth_names,
1956
+ :return_type => return_type
1957
+ )
1958
+
1959
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1960
+ if @api_client.config.debugging
1961
+ @api_client.config.logger.debug "API called: UserApi#user_phone_sign_up\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1962
+ end
1963
+ return data, status_code, headers
1964
+ end
1965
+
1966
+ # 获取个人资料
1967
+ # 获取当前用户的个人资料
1968
+ # @param app_key [String]
1969
+ # @param [Hash] opts the optional parameters
1970
+ # @return [UserProfileResultApiResponse]
1971
+ def user_profile(app_key, opts = {})
1972
+ data, _status_code, _headers = user_profile_with_http_info(app_key, opts)
1973
+ data
1974
+ end
1975
+
1976
+ # 获取个人资料
1977
+ # 获取当前用户的个人资料
1978
+ # @param app_key [String]
1979
+ # @param [Hash] opts the optional parameters
1980
+ # @return [Array<(UserProfileResultApiResponse, Integer, Hash)>] UserProfileResultApiResponse data, response status code and response headers
1981
+ def user_profile_with_http_info(app_key, opts = {})
1982
+ if @api_client.config.debugging
1983
+ @api_client.config.logger.debug 'Calling API: UserApi.user_profile ...'
1984
+ end
1985
+ # verify the required parameter 'app_key' is set
1986
+ if @api_client.config.client_side_validation && app_key.nil?
1987
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_profile"
1988
+ end
1989
+ # resource path
1990
+ local_var_path = '/User/{appKey}/Profile'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
1991
+
1992
+ # query parameters
1993
+ query_params = opts[:query_params] || {}
1994
+
1995
+ # header parameters
1996
+ header_params = opts[:header_params] || {}
1997
+ # HTTP header 'Accept' (if needed)
1998
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1999
+
2000
+ # form parameters
2001
+ form_params = opts[:form_params] || {}
2002
+
2003
+ # http body (model)
2004
+ post_body = opts[:debug_body]
2005
+
2006
+ # return_type
2007
+ return_type = opts[:debug_return_type] || 'UserProfileResultApiResponse'
2008
+
2009
+ # auth_names
2010
+ auth_names = opts[:debug_auth_names] || ['Bearer']
2011
+
2012
+ new_options = opts.merge(
2013
+ :operation => :"UserApi.user_profile",
2014
+ :header_params => header_params,
2015
+ :query_params => query_params,
2016
+ :form_params => form_params,
2017
+ :body => post_body,
2018
+ :auth_names => auth_names,
2019
+ :return_type => return_type
2020
+ )
2021
+
2022
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2023
+ if @api_client.config.debugging
2024
+ @api_client.config.logger.debug "API called: UserApi#user_profile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2025
+ end
2026
+ return data, status_code, headers
2027
+ end
2028
+
2029
+ # 更新用户信息
2030
+ # 根据用户ID更新用户信息
2031
+ # @param id [Integer] 用户ID
2032
+ # @param app_key [String]
2033
+ # @param [Hash] opts the optional parameters
2034
+ # @option opts [User] :user 用户信息
2035
+ # @return [BooleanApiResponse]
2036
+ def user_put(id, app_key, opts = {})
2037
+ data, _status_code, _headers = user_put_with_http_info(id, app_key, opts)
2038
+ data
2039
+ end
2040
+
2041
+ # 更新用户信息
2042
+ # 根据用户ID更新用户信息
2043
+ # @param id [Integer] 用户ID
2044
+ # @param app_key [String]
2045
+ # @param [Hash] opts the optional parameters
2046
+ # @option opts [User] :user 用户信息
2047
+ # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
2048
+ def user_put_with_http_info(id, app_key, opts = {})
2049
+ if @api_client.config.debugging
2050
+ @api_client.config.logger.debug 'Calling API: UserApi.user_put ...'
2051
+ end
2052
+ # verify the required parameter 'id' is set
2053
+ if @api_client.config.client_side_validation && id.nil?
2054
+ fail ArgumentError, "Missing the required parameter 'id' when calling UserApi.user_put"
2055
+ end
2056
+ # verify the required parameter 'app_key' is set
2057
+ if @api_client.config.client_side_validation && app_key.nil?
2058
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_put"
2059
+ end
2060
+ # resource path
2061
+ local_var_path = '/User/{appKey}/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
2062
+
2063
+ # query parameters
2064
+ query_params = opts[:query_params] || {}
2065
+
2066
+ # header parameters
2067
+ header_params = opts[:header_params] || {}
2068
+ # HTTP header 'Accept' (if needed)
2069
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2070
+ # HTTP header 'Content-Type'
2071
+ content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
2072
+ if !content_type.nil?
2073
+ header_params['Content-Type'] = content_type
2074
+ end
2075
+
2076
+ # form parameters
2077
+ form_params = opts[:form_params] || {}
2078
+
2079
+ # http body (model)
2080
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'user'])
2081
+
2082
+ # return_type
2083
+ return_type = opts[:debug_return_type] || 'BooleanApiResponse'
2084
+
2085
+ # auth_names
2086
+ auth_names = opts[:debug_auth_names] || ['Bearer']
2087
+
2088
+ new_options = opts.merge(
2089
+ :operation => :"UserApi.user_put",
2090
+ :header_params => header_params,
2091
+ :query_params => query_params,
2092
+ :form_params => form_params,
2093
+ :body => post_body,
2094
+ :auth_names => auth_names,
2095
+ :return_type => return_type
2096
+ )
2097
+
2098
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2099
+ if @api_client.config.debugging
2100
+ @api_client.config.logger.debug "API called: UserApi#user_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2101
+ end
2102
+ return data, status_code, headers
2103
+ end
2104
+
2105
+ # 微信小程序 - 预登陆
2106
+ # 使用微信小程序二维码进行预登陆
2107
+ # @param app_key [String]
2108
+ # @param [Hash] opts the optional parameters
2109
+ # @option opts [QRCodePreSignInRequest] :qr_code_pre_sign_in_request 预登陆请求参数
2110
+ # @return [Int64ApiResponse]
2111
+ def user_qr_code_pre_sign_in(app_key, opts = {})
2112
+ data, _status_code, _headers = user_qr_code_pre_sign_in_with_http_info(app_key, opts)
2113
+ data
2114
+ end
2115
+
2116
+ # 微信小程序 - 预登陆
2117
+ # 使用微信小程序二维码进行预登陆
2118
+ # @param app_key [String]
2119
+ # @param [Hash] opts the optional parameters
2120
+ # @option opts [QRCodePreSignInRequest] :qr_code_pre_sign_in_request 预登陆请求参数
2121
+ # @return [Array<(Int64ApiResponse, Integer, Hash)>] Int64ApiResponse data, response status code and response headers
2122
+ def user_qr_code_pre_sign_in_with_http_info(app_key, opts = {})
2123
+ if @api_client.config.debugging
2124
+ @api_client.config.logger.debug 'Calling API: UserApi.user_qr_code_pre_sign_in ...'
2125
+ end
2126
+ # verify the required parameter 'app_key' is set
2127
+ if @api_client.config.client_side_validation && app_key.nil?
2128
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_qr_code_pre_sign_in"
2129
+ end
2130
+ # resource path
2131
+ local_var_path = '/User/{appKey}/QRCodePreSignIn'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
2132
+
2133
+ # query parameters
2134
+ query_params = opts[:query_params] || {}
2135
+
2136
+ # header parameters
2137
+ header_params = opts[:header_params] || {}
2138
+ # HTTP header 'Accept' (if needed)
2139
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2140
+ # HTTP header 'Content-Type'
2141
+ content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
2142
+ if !content_type.nil?
2143
+ header_params['Content-Type'] = content_type
2144
+ end
2145
+
2146
+ # form parameters
2147
+ form_params = opts[:form_params] || {}
2148
+
2149
+ # http body (model)
2150
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'qr_code_pre_sign_in_request'])
2151
+
2152
+ # return_type
2153
+ return_type = opts[:debug_return_type] || 'Int64ApiResponse'
2154
+
2155
+ # auth_names
2156
+ auth_names = opts[:debug_auth_names] || ['Bearer']
2157
+
2158
+ new_options = opts.merge(
2159
+ :operation => :"UserApi.user_qr_code_pre_sign_in",
2160
+ :header_params => header_params,
2161
+ :query_params => query_params,
2162
+ :form_params => form_params,
2163
+ :body => post_body,
2164
+ :auth_names => auth_names,
2165
+ :return_type => return_type
2166
+ )
2167
+
2168
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2169
+ if @api_client.config.debugging
2170
+ @api_client.config.logger.debug "API called: UserApi#user_qr_code_pre_sign_in\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2171
+ end
2172
+ return data, status_code, headers
2173
+ end
2174
+
2175
+ # 微信小程序 - 扫码
2176
+ # 使用微信小程序二维码进行扫码
2177
+ # @param app_key [String]
2178
+ # @param [Hash] opts the optional parameters
2179
+ # @option opts [QRCodeScanRequest] :qr_code_scan_request 扫码请求参数
2180
+ # @return [UserQRCodeScanResultApiResponse]
2181
+ def user_qr_code_scan(app_key, opts = {})
2182
+ data, _status_code, _headers = user_qr_code_scan_with_http_info(app_key, opts)
2183
+ data
2184
+ end
2185
+
2186
+ # 微信小程序 - 扫码
2187
+ # 使用微信小程序二维码进行扫码
2188
+ # @param app_key [String]
2189
+ # @param [Hash] opts the optional parameters
2190
+ # @option opts [QRCodeScanRequest] :qr_code_scan_request 扫码请求参数
2191
+ # @return [Array<(UserQRCodeScanResultApiResponse, Integer, Hash)>] UserQRCodeScanResultApiResponse data, response status code and response headers
2192
+ def user_qr_code_scan_with_http_info(app_key, opts = {})
2193
+ if @api_client.config.debugging
2194
+ @api_client.config.logger.debug 'Calling API: UserApi.user_qr_code_scan ...'
2195
+ end
2196
+ # verify the required parameter 'app_key' is set
2197
+ if @api_client.config.client_side_validation && app_key.nil?
2198
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_qr_code_scan"
2199
+ end
2200
+ # resource path
2201
+ local_var_path = '/User/{appKey}/QRCodeScan'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
2202
+
2203
+ # query parameters
2204
+ query_params = opts[:query_params] || {}
2205
+
2206
+ # header parameters
2207
+ header_params = opts[:header_params] || {}
2208
+ # HTTP header 'Accept' (if needed)
2209
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2210
+ # HTTP header 'Content-Type'
2211
+ content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
2212
+ if !content_type.nil?
2213
+ header_params['Content-Type'] = content_type
2214
+ end
2215
+
2216
+ # form parameters
2217
+ form_params = opts[:form_params] || {}
2218
+
2219
+ # http body (model)
2220
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'qr_code_scan_request'])
2221
+
2222
+ # return_type
2223
+ return_type = opts[:debug_return_type] || 'UserQRCodeScanResultApiResponse'
2224
+
2225
+ # auth_names
2226
+ auth_names = opts[:debug_auth_names] || ['Bearer']
2227
+
2228
+ new_options = opts.merge(
2229
+ :operation => :"UserApi.user_qr_code_scan",
2230
+ :header_params => header_params,
2231
+ :query_params => query_params,
2232
+ :form_params => form_params,
2233
+ :body => post_body,
2234
+ :auth_names => auth_names,
2235
+ :return_type => return_type
2236
+ )
2237
+
2238
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2239
+ if @api_client.config.debugging
2240
+ @api_client.config.logger.debug "API called: UserApi#user_qr_code_scan\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2241
+ end
2242
+ return data, status_code, headers
2243
+ end
2244
+
2245
+ # 微信小程序 - 网页登录
2246
+ # 使用微信小程序二维码进行网页登录
2247
+ # @param app_key [String]
2248
+ # @param [Hash] opts the optional parameters
2249
+ # @option opts [QRCodeSignInRequest] :qr_code_sign_in_request 登录请求参数
2250
+ # @return [TokenModelApiResponse]
2251
+ def user_qr_code_sign_in(app_key, opts = {})
2252
+ data, _status_code, _headers = user_qr_code_sign_in_with_http_info(app_key, opts)
2253
+ data
2254
+ end
2255
+
2256
+ # 微信小程序 - 网页登录
2257
+ # 使用微信小程序二维码进行网页登录
2258
+ # @param app_key [String]
2259
+ # @param [Hash] opts the optional parameters
2260
+ # @option opts [QRCodeSignInRequest] :qr_code_sign_in_request 登录请求参数
2261
+ # @return [Array<(TokenModelApiResponse, Integer, Hash)>] TokenModelApiResponse data, response status code and response headers
2262
+ def user_qr_code_sign_in_with_http_info(app_key, opts = {})
2263
+ if @api_client.config.debugging
2264
+ @api_client.config.logger.debug 'Calling API: UserApi.user_qr_code_sign_in ...'
2265
+ end
2266
+ # verify the required parameter 'app_key' is set
2267
+ if @api_client.config.client_side_validation && app_key.nil?
2268
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_qr_code_sign_in"
2269
+ end
2270
+ # resource path
2271
+ local_var_path = '/User/{appKey}/QRCodeSignIn'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
2272
+
2273
+ # query parameters
2274
+ query_params = opts[:query_params] || {}
2275
+
2276
+ # header parameters
2277
+ header_params = opts[:header_params] || {}
2278
+ # HTTP header 'Accept' (if needed)
2279
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2280
+ # HTTP header 'Content-Type'
2281
+ content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
2282
+ if !content_type.nil?
2283
+ header_params['Content-Type'] = content_type
2284
+ end
2285
+
2286
+ # form parameters
2287
+ form_params = opts[:form_params] || {}
2288
+
2289
+ # http body (model)
2290
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'qr_code_sign_in_request'])
2291
+
2292
+ # return_type
2293
+ return_type = opts[:debug_return_type] || 'TokenModelApiResponse'
2294
+
2295
+ # auth_names
2296
+ auth_names = opts[:debug_auth_names] || ['Bearer']
2297
+
2298
+ new_options = opts.merge(
2299
+ :operation => :"UserApi.user_qr_code_sign_in",
2300
+ :header_params => header_params,
2301
+ :query_params => query_params,
2302
+ :form_params => form_params,
2303
+ :body => post_body,
2304
+ :auth_names => auth_names,
2305
+ :return_type => return_type
2306
+ )
2307
+
2308
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2309
+ if @api_client.config.debugging
2310
+ @api_client.config.logger.debug "API called: UserApi#user_qr_code_sign_in\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2311
+ end
2312
+ return data, status_code, headers
2313
+ end
2314
+
2315
+ # 微信小程序 - 注册
2316
+ # 使用微信小程序二维码进行注册
2317
+ # @param app_key [String]
2318
+ # @param [Hash] opts the optional parameters
2319
+ # @option opts [QRCodeSignUpRequest] :qr_code_sign_up_request 注册请求参数
2320
+ # @return [TokenModelApiResponse]
2321
+ def user_qr_code_sign_up(app_key, opts = {})
2322
+ data, _status_code, _headers = user_qr_code_sign_up_with_http_info(app_key, opts)
2323
+ data
2324
+ end
2325
+
2326
+ # 微信小程序 - 注册
2327
+ # 使用微信小程序二维码进行注册
2328
+ # @param app_key [String]
2329
+ # @param [Hash] opts the optional parameters
2330
+ # @option opts [QRCodeSignUpRequest] :qr_code_sign_up_request 注册请求参数
2331
+ # @return [Array<(TokenModelApiResponse, Integer, Hash)>] TokenModelApiResponse data, response status code and response headers
2332
+ def user_qr_code_sign_up_with_http_info(app_key, opts = {})
2333
+ if @api_client.config.debugging
2334
+ @api_client.config.logger.debug 'Calling API: UserApi.user_qr_code_sign_up ...'
2335
+ end
2336
+ # verify the required parameter 'app_key' is set
2337
+ if @api_client.config.client_side_validation && app_key.nil?
2338
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_qr_code_sign_up"
2339
+ end
2340
+ # resource path
2341
+ local_var_path = '/User/{appKey}/QRCodeSignUp'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
2342
+
2343
+ # query parameters
2344
+ query_params = opts[:query_params] || {}
2345
+
2346
+ # header parameters
2347
+ header_params = opts[:header_params] || {}
2348
+ # HTTP header 'Accept' (if needed)
2349
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2350
+ # HTTP header 'Content-Type'
2351
+ content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
2352
+ if !content_type.nil?
2353
+ header_params['Content-Type'] = content_type
2354
+ end
2355
+
2356
+ # form parameters
2357
+ form_params = opts[:form_params] || {}
2358
+
2359
+ # http body (model)
2360
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'qr_code_sign_up_request'])
2361
+
2362
+ # return_type
2363
+ return_type = opts[:debug_return_type] || 'TokenModelApiResponse'
2364
+
2365
+ # auth_names
2366
+ auth_names = opts[:debug_auth_names] || ['Bearer']
2367
+
2368
+ new_options = opts.merge(
2369
+ :operation => :"UserApi.user_qr_code_sign_up",
2370
+ :header_params => header_params,
2371
+ :query_params => query_params,
2372
+ :form_params => form_params,
2373
+ :body => post_body,
2374
+ :auth_names => auth_names,
2375
+ :return_type => return_type
2376
+ )
2377
+
2378
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2379
+ if @api_client.config.debugging
2380
+ @api_client.config.logger.debug "API called: UserApi#user_qr_code_sign_up\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2381
+ end
2382
+ return data, status_code, headers
2383
+ end
2384
+
2385
+ # 重置密码
2386
+ # 通过手机号或邮箱重置密码
2387
+ # @param app_key [String]
2388
+ # @param [Hash] opts the optional parameters
2389
+ # @option opts [AppUserResetPwdRequest] :app_user_reset_pwd_request 重置密码的请求参数
2390
+ # @return [BooleanApiResponse]
2391
+ def user_reset_pwd(app_key, opts = {})
2392
+ data, _status_code, _headers = user_reset_pwd_with_http_info(app_key, opts)
2393
+ data
2394
+ end
2395
+
2396
+ # 重置密码
2397
+ # 通过手机号或邮箱重置密码
2398
+ # @param app_key [String]
2399
+ # @param [Hash] opts the optional parameters
2400
+ # @option opts [AppUserResetPwdRequest] :app_user_reset_pwd_request 重置密码的请求参数
2401
+ # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
2402
+ def user_reset_pwd_with_http_info(app_key, opts = {})
2403
+ if @api_client.config.debugging
2404
+ @api_client.config.logger.debug 'Calling API: UserApi.user_reset_pwd ...'
2405
+ end
2406
+ # verify the required parameter 'app_key' is set
2407
+ if @api_client.config.client_side_validation && app_key.nil?
2408
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_reset_pwd"
2409
+ end
2410
+ # resource path
2411
+ local_var_path = '/User/{appKey}/ResetPwd'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
2412
+
2413
+ # query parameters
2414
+ query_params = opts[:query_params] || {}
2415
+
2416
+ # header parameters
2417
+ header_params = opts[:header_params] || {}
2418
+ # HTTP header 'Accept' (if needed)
2419
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2420
+ # HTTP header 'Content-Type'
2421
+ content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
2422
+ if !content_type.nil?
2423
+ header_params['Content-Type'] = content_type
2424
+ end
2425
+
2426
+ # form parameters
2427
+ form_params = opts[:form_params] || {}
2428
+
2429
+ # http body (model)
2430
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'app_user_reset_pwd_request'])
2431
+
2432
+ # return_type
2433
+ return_type = opts[:debug_return_type] || 'BooleanApiResponse'
2434
+
2435
+ # auth_names
2436
+ auth_names = opts[:debug_auth_names] || ['Bearer']
2437
+
2438
+ new_options = opts.merge(
2439
+ :operation => :"UserApi.user_reset_pwd",
2440
+ :header_params => header_params,
2441
+ :query_params => query_params,
2442
+ :form_params => form_params,
2443
+ :body => post_body,
2444
+ :auth_names => auth_names,
2445
+ :return_type => return_type
2446
+ )
2447
+
2448
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2449
+ if @api_client.config.debugging
2450
+ @api_client.config.logger.debug "API called: UserApi#user_reset_pwd\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2451
+ end
2452
+ return data, status_code, headers
2453
+ end
2454
+
2455
+ # 发送邮箱验证码
2456
+ # 发送邮箱验证码用于注册或找回密码
2457
+ # @param app_key [String]
2458
+ # @param [Hash] opts the optional parameters
2459
+ # @option opts [SendEmailCodeRequest] :send_email_code_request 发送邮箱验证码的请求参数
2460
+ # @return [BooleanApiResponse]
2461
+ def user_send_email_code(app_key, opts = {})
2462
+ data, _status_code, _headers = user_send_email_code_with_http_info(app_key, opts)
2463
+ data
2464
+ end
2465
+
2466
+ # 发送邮箱验证码
2467
+ # 发送邮箱验证码用于注册或找回密码
2468
+ # @param app_key [String]
2469
+ # @param [Hash] opts the optional parameters
2470
+ # @option opts [SendEmailCodeRequest] :send_email_code_request 发送邮箱验证码的请求参数
2471
+ # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
2472
+ def user_send_email_code_with_http_info(app_key, opts = {})
2473
+ if @api_client.config.debugging
2474
+ @api_client.config.logger.debug 'Calling API: UserApi.user_send_email_code ...'
2475
+ end
2476
+ # verify the required parameter 'app_key' is set
2477
+ if @api_client.config.client_side_validation && app_key.nil?
2478
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_send_email_code"
2479
+ end
2480
+ # resource path
2481
+ local_var_path = '/User/{appKey}/SendEmailCode'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
2482
+
2483
+ # query parameters
2484
+ query_params = opts[:query_params] || {}
2485
+
2486
+ # header parameters
2487
+ header_params = opts[:header_params] || {}
2488
+ # HTTP header 'Accept' (if needed)
2489
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2490
+ # HTTP header 'Content-Type'
2491
+ content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
2492
+ if !content_type.nil?
2493
+ header_params['Content-Type'] = content_type
2494
+ end
2495
+
2496
+ # form parameters
2497
+ form_params = opts[:form_params] || {}
2498
+
2499
+ # http body (model)
2500
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'send_email_code_request'])
2501
+
2502
+ # return_type
2503
+ return_type = opts[:debug_return_type] || 'BooleanApiResponse'
2504
+
2505
+ # auth_names
2506
+ auth_names = opts[:debug_auth_names] || ['Bearer']
2507
+
2508
+ new_options = opts.merge(
2509
+ :operation => :"UserApi.user_send_email_code",
2510
+ :header_params => header_params,
2511
+ :query_params => query_params,
2512
+ :form_params => form_params,
2513
+ :body => post_body,
2514
+ :auth_names => auth_names,
2515
+ :return_type => return_type
2516
+ )
2517
+
2518
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2519
+ if @api_client.config.debugging
2520
+ @api_client.config.logger.debug "API called: UserApi#user_send_email_code\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2521
+ end
2522
+ return data, status_code, headers
2523
+ end
2524
+
2525
+ # 发送手机验证码
2526
+ # 发送手机验证码用于注册或找回密码
2527
+ # @param app_key [String]
2528
+ # @param [Hash] opts the optional parameters
2529
+ # @option opts [SendSMSCodeRequest] :send_sms_code_request 发送手机验证码的请求参数
2530
+ # @return [BooleanApiResponse]
2531
+ def user_send_sms_code(app_key, opts = {})
2532
+ data, _status_code, _headers = user_send_sms_code_with_http_info(app_key, opts)
2533
+ data
2534
+ end
2535
+
2536
+ # 发送手机验证码
2537
+ # 发送手机验证码用于注册或找回密码
2538
+ # @param app_key [String]
2539
+ # @param [Hash] opts the optional parameters
2540
+ # @option opts [SendSMSCodeRequest] :send_sms_code_request 发送手机验证码的请求参数
2541
+ # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
2542
+ def user_send_sms_code_with_http_info(app_key, opts = {})
2543
+ if @api_client.config.debugging
2544
+ @api_client.config.logger.debug 'Calling API: UserApi.user_send_sms_code ...'
2545
+ end
2546
+ # verify the required parameter 'app_key' is set
2547
+ if @api_client.config.client_side_validation && app_key.nil?
2548
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_send_sms_code"
2549
+ end
2550
+ # resource path
2551
+ local_var_path = '/User/{appKey}/SendSMSCode'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
2552
+
2553
+ # query parameters
2554
+ query_params = opts[:query_params] || {}
2555
+
2556
+ # header parameters
2557
+ header_params = opts[:header_params] || {}
2558
+ # HTTP header 'Accept' (if needed)
2559
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2560
+ # HTTP header 'Content-Type'
2561
+ content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
2562
+ if !content_type.nil?
2563
+ header_params['Content-Type'] = content_type
2564
+ end
2565
+
2566
+ # form parameters
2567
+ form_params = opts[:form_params] || {}
2568
+
2569
+ # http body (model)
2570
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'send_sms_code_request'])
2571
+
2572
+ # return_type
2573
+ return_type = opts[:debug_return_type] || 'BooleanApiResponse'
2574
+
2575
+ # auth_names
2576
+ auth_names = opts[:debug_auth_names] || ['Bearer']
2577
+
2578
+ new_options = opts.merge(
2579
+ :operation => :"UserApi.user_send_sms_code",
2580
+ :header_params => header_params,
2581
+ :query_params => query_params,
2582
+ :form_params => form_params,
2583
+ :body => post_body,
2584
+ :auth_names => auth_names,
2585
+ :return_type => return_type
2586
+ )
2587
+
2588
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2589
+ if @api_client.config.debugging
2590
+ @api_client.config.logger.debug "API called: UserApi#user_send_sms_code\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2591
+ end
2592
+ return data, status_code, headers
2593
+ end
2594
+
2595
+ # 账号密码 登录
2596
+ # 使用账号密码进行登录
2597
+ # @param app_key [String]
2598
+ # @param [Hash] opts the optional parameters
2599
+ # @option opts [SignInRequest] :sign_in_request 登录请求参数
2600
+ # @return [TokenModelApiResponse]
2601
+ def user_sign_in(app_key, opts = {})
2602
+ data, _status_code, _headers = user_sign_in_with_http_info(app_key, opts)
2603
+ data
2604
+ end
2605
+
2606
+ # 账号密码 登录
2607
+ # 使用账号密码进行登录
2608
+ # @param app_key [String]
2609
+ # @param [Hash] opts the optional parameters
2610
+ # @option opts [SignInRequest] :sign_in_request 登录请求参数
2611
+ # @return [Array<(TokenModelApiResponse, Integer, Hash)>] TokenModelApiResponse data, response status code and response headers
2612
+ def user_sign_in_with_http_info(app_key, opts = {})
2613
+ if @api_client.config.debugging
2614
+ @api_client.config.logger.debug 'Calling API: UserApi.user_sign_in ...'
2615
+ end
2616
+ # verify the required parameter 'app_key' is set
2617
+ if @api_client.config.client_side_validation && app_key.nil?
2618
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_sign_in"
2619
+ end
2620
+ # resource path
2621
+ local_var_path = '/User/{appKey}/SignIn'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
2622
+
2623
+ # query parameters
2624
+ query_params = opts[:query_params] || {}
2625
+
2626
+ # header parameters
2627
+ header_params = opts[:header_params] || {}
2628
+ # HTTP header 'Accept' (if needed)
2629
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2630
+ # HTTP header 'Content-Type'
2631
+ content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
2632
+ if !content_type.nil?
2633
+ header_params['Content-Type'] = content_type
2634
+ end
2635
+
2636
+ # form parameters
2637
+ form_params = opts[:form_params] || {}
2638
+
2639
+ # http body (model)
2640
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'sign_in_request'])
2641
+
2642
+ # return_type
2643
+ return_type = opts[:debug_return_type] || 'TokenModelApiResponse'
2644
+
2645
+ # auth_names
2646
+ auth_names = opts[:debug_auth_names] || ['Bearer']
2647
+
2648
+ new_options = opts.merge(
2649
+ :operation => :"UserApi.user_sign_in",
2650
+ :header_params => header_params,
2651
+ :query_params => query_params,
2652
+ :form_params => form_params,
2653
+ :body => post_body,
2654
+ :auth_names => auth_names,
2655
+ :return_type => return_type
2656
+ )
2657
+
2658
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2659
+ if @api_client.config.debugging
2660
+ @api_client.config.logger.debug "API called: UserApi#user_sign_in\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2661
+ end
2662
+ return data, status_code, headers
2663
+ end
2664
+
2665
+ # 账号密码 注册
2666
+ # 使用账号密码进行注册
2667
+ # @param app_key [String]
2668
+ # @param [Hash] opts the optional parameters
2669
+ # @option opts [SignUpRequest] :sign_up_request 注册请求参数
2670
+ # @return [TokenModelApiResponse]
2671
+ def user_sign_up(app_key, opts = {})
2672
+ data, _status_code, _headers = user_sign_up_with_http_info(app_key, opts)
2673
+ data
2674
+ end
2675
+
2676
+ # 账号密码 注册
2677
+ # 使用账号密码进行注册
2678
+ # @param app_key [String]
2679
+ # @param [Hash] opts the optional parameters
2680
+ # @option opts [SignUpRequest] :sign_up_request 注册请求参数
2681
+ # @return [Array<(TokenModelApiResponse, Integer, Hash)>] TokenModelApiResponse data, response status code and response headers
2682
+ def user_sign_up_with_http_info(app_key, opts = {})
2683
+ if @api_client.config.debugging
2684
+ @api_client.config.logger.debug 'Calling API: UserApi.user_sign_up ...'
2685
+ end
2686
+ # verify the required parameter 'app_key' is set
2687
+ if @api_client.config.client_side_validation && app_key.nil?
2688
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_sign_up"
2689
+ end
2690
+ # resource path
2691
+ local_var_path = '/User/{appKey}/SignUp'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
2692
+
2693
+ # query parameters
2694
+ query_params = opts[:query_params] || {}
2695
+
2696
+ # header parameters
2697
+ header_params = opts[:header_params] || {}
2698
+ # HTTP header 'Accept' (if needed)
2699
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2700
+ # HTTP header 'Content-Type'
2701
+ content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
2702
+ if !content_type.nil?
2703
+ header_params['Content-Type'] = content_type
2704
+ end
2705
+
2706
+ # form parameters
2707
+ form_params = opts[:form_params] || {}
2708
+
2709
+ # http body (model)
2710
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'sign_up_request'])
2711
+
2712
+ # return_type
2713
+ return_type = opts[:debug_return_type] || 'TokenModelApiResponse'
2714
+
2715
+ # auth_names
2716
+ auth_names = opts[:debug_auth_names] || ['Bearer']
2717
+
2718
+ new_options = opts.merge(
2719
+ :operation => :"UserApi.user_sign_up",
2720
+ :header_params => header_params,
2721
+ :query_params => query_params,
2722
+ :form_params => form_params,
2723
+ :body => post_body,
2724
+ :auth_names => auth_names,
2725
+ :return_type => return_type
2726
+ )
2727
+
2728
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2729
+ if @api_client.config.debugging
2730
+ @api_client.config.logger.debug "API called: UserApi#user_sign_up\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2731
+ end
2732
+ return data, status_code, headers
2733
+ end
2734
+
2735
+ # 双因素验证
2736
+ # 获取双因素验证的设置信息
2737
+ # @param app_key [String]
2738
+ # @param [Hash] opts the optional parameters
2739
+ # @return [SetupCodeApiResponse]
2740
+ def user_two_factor_auth(app_key, opts = {})
2741
+ data, _status_code, _headers = user_two_factor_auth_with_http_info(app_key, opts)
2742
+ data
2743
+ end
2744
+
2745
+ # 双因素验证
2746
+ # 获取双因素验证的设置信息
2747
+ # @param app_key [String]
2748
+ # @param [Hash] opts the optional parameters
2749
+ # @return [Array<(SetupCodeApiResponse, Integer, Hash)>] SetupCodeApiResponse data, response status code and response headers
2750
+ def user_two_factor_auth_with_http_info(app_key, opts = {})
2751
+ if @api_client.config.debugging
2752
+ @api_client.config.logger.debug 'Calling API: UserApi.user_two_factor_auth ...'
2753
+ end
2754
+ # verify the required parameter 'app_key' is set
2755
+ if @api_client.config.client_side_validation && app_key.nil?
2756
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_two_factor_auth"
2757
+ end
2758
+ # resource path
2759
+ local_var_path = '/User/{appKey}/TwoFactorAuth'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
2760
+
2761
+ # query parameters
2762
+ query_params = opts[:query_params] || {}
2763
+
2764
+ # header parameters
2765
+ header_params = opts[:header_params] || {}
2766
+ # HTTP header 'Accept' (if needed)
2767
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2768
+
2769
+ # form parameters
2770
+ form_params = opts[:form_params] || {}
2771
+
2772
+ # http body (model)
2773
+ post_body = opts[:debug_body]
2774
+
2775
+ # return_type
2776
+ return_type = opts[:debug_return_type] || 'SetupCodeApiResponse'
2777
+
2778
+ # auth_names
2779
+ auth_names = opts[:debug_auth_names] || ['Bearer']
2780
+
2781
+ new_options = opts.merge(
2782
+ :operation => :"UserApi.user_two_factor_auth",
2783
+ :header_params => header_params,
2784
+ :query_params => query_params,
2785
+ :form_params => form_params,
2786
+ :body => post_body,
2787
+ :auth_names => auth_names,
2788
+ :return_type => return_type
2789
+ )
2790
+
2791
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2792
+ if @api_client.config.debugging
2793
+ @api_client.config.logger.debug "API called: UserApi#user_two_factor_auth\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2794
+ end
2795
+ return data, status_code, headers
2796
+ end
2797
+
2798
+ # 取消关注
2799
+ # 取消关注指定用户
2800
+ # @param user_id [Integer] 要取消关注的用户ID
2801
+ # @param app_key [String]
2802
+ # @param [Hash] opts the optional parameters
2803
+ # @return [BooleanApiResponse]
2804
+ def user_unfollow_user(user_id, app_key, opts = {})
2805
+ data, _status_code, _headers = user_unfollow_user_with_http_info(user_id, app_key, opts)
2806
+ data
2807
+ end
2808
+
2809
+ # 取消关注
2810
+ # 取消关注指定用户
2811
+ # @param user_id [Integer] 要取消关注的用户ID
2812
+ # @param app_key [String]
2813
+ # @param [Hash] opts the optional parameters
2814
+ # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
2815
+ def user_unfollow_user_with_http_info(user_id, app_key, opts = {})
2816
+ if @api_client.config.debugging
2817
+ @api_client.config.logger.debug 'Calling API: UserApi.user_unfollow_user ...'
2818
+ end
2819
+ # verify the required parameter 'user_id' is set
2820
+ if @api_client.config.client_side_validation && user_id.nil?
2821
+ fail ArgumentError, "Missing the required parameter 'user_id' when calling UserApi.user_unfollow_user"
2822
+ end
2823
+ # verify the required parameter 'app_key' is set
2824
+ if @api_client.config.client_side_validation && app_key.nil?
2825
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_unfollow_user"
2826
+ end
2827
+ # resource path
2828
+ local_var_path = '/User/{appKey}/Follower/{userId}'.sub('{' + 'userId' + '}', CGI.escape(user_id.to_s)).sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
2829
+
2830
+ # query parameters
2831
+ query_params = opts[:query_params] || {}
2832
+
2833
+ # header parameters
2834
+ header_params = opts[:header_params] || {}
2835
+ # HTTP header 'Accept' (if needed)
2836
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2837
+
2838
+ # form parameters
2839
+ form_params = opts[:form_params] || {}
2840
+
2841
+ # http body (model)
2842
+ post_body = opts[:debug_body]
2843
+
2844
+ # return_type
2845
+ return_type = opts[:debug_return_type] || 'BooleanApiResponse'
2846
+
2847
+ # auth_names
2848
+ auth_names = opts[:debug_auth_names] || ['Bearer']
2849
+
2850
+ new_options = opts.merge(
2851
+ :operation => :"UserApi.user_unfollow_user",
2852
+ :header_params => header_params,
2853
+ :query_params => query_params,
2854
+ :form_params => form_params,
2855
+ :body => post_body,
2856
+ :auth_names => auth_names,
2857
+ :return_type => return_type
2858
+ )
2859
+
2860
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
2861
+ if @api_client.config.debugging
2862
+ @api_client.config.logger.debug "API called: UserApi#user_unfollow_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2863
+ end
2864
+ return data, status_code, headers
2865
+ end
2866
+
2867
+ # UnionID登录
2868
+ # 使用UnionID进行登录
2869
+ # @param app_key [String]
2870
+ # @param [Hash] opts the optional parameters
2871
+ # @option opts [UnionIDSignInRequest] :union_id_sign_in_request 登录请求参数
2872
+ # @return [TokenModelApiResponse]
2873
+ def user_union_id_sign_in(app_key, opts = {})
2874
+ data, _status_code, _headers = user_union_id_sign_in_with_http_info(app_key, opts)
2875
+ data
2876
+ end
2877
+
2878
+ # UnionID登录
2879
+ # 使用UnionID进行登录
2880
+ # @param app_key [String]
2881
+ # @param [Hash] opts the optional parameters
2882
+ # @option opts [UnionIDSignInRequest] :union_id_sign_in_request 登录请求参数
2883
+ # @return [Array<(TokenModelApiResponse, Integer, Hash)>] TokenModelApiResponse data, response status code and response headers
2884
+ def user_union_id_sign_in_with_http_info(app_key, opts = {})
2885
+ if @api_client.config.debugging
2886
+ @api_client.config.logger.debug 'Calling API: UserApi.user_union_id_sign_in ...'
2887
+ end
2888
+ # verify the required parameter 'app_key' is set
2889
+ if @api_client.config.client_side_validation && app_key.nil?
2890
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_union_id_sign_in"
2891
+ end
2892
+ # resource path
2893
+ local_var_path = '/User/{appKey}/UnionIDSignIn'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
2894
+
2895
+ # query parameters
2896
+ query_params = opts[:query_params] || {}
2897
+
2898
+ # header parameters
2899
+ header_params = opts[:header_params] || {}
2900
+ # HTTP header 'Accept' (if needed)
2901
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2902
+ # HTTP header 'Content-Type'
2903
+ content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
2904
+ if !content_type.nil?
2905
+ header_params['Content-Type'] = content_type
2906
+ end
2907
+
2908
+ # form parameters
2909
+ form_params = opts[:form_params] || {}
2910
+
2911
+ # http body (model)
2912
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'union_id_sign_in_request'])
2913
+
2914
+ # return_type
2915
+ return_type = opts[:debug_return_type] || 'TokenModelApiResponse'
2916
+
2917
+ # auth_names
2918
+ auth_names = opts[:debug_auth_names] || ['Bearer']
2919
+
2920
+ new_options = opts.merge(
2921
+ :operation => :"UserApi.user_union_id_sign_in",
2922
+ :header_params => header_params,
2923
+ :query_params => query_params,
2924
+ :form_params => form_params,
2925
+ :body => post_body,
2926
+ :auth_names => auth_names,
2927
+ :return_type => return_type
2928
+ )
2929
+
2930
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2931
+ if @api_client.config.debugging
2932
+ @api_client.config.logger.debug "API called: UserApi#user_union_id_sign_in\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2933
+ end
2934
+ return data, status_code, headers
2935
+ end
2936
+
2937
+ # UnionID注册
2938
+ # 使用UnionID进行注册
2939
+ # @param app_key [String]
2940
+ # @param [Hash] opts the optional parameters
2941
+ # @option opts [UnionIDSignUpRequest] :union_id_sign_up_request 注册请求参数
2942
+ # @return [TokenModelApiResponse]
2943
+ def user_union_id_sign_up(app_key, opts = {})
2944
+ data, _status_code, _headers = user_union_id_sign_up_with_http_info(app_key, opts)
2945
+ data
2946
+ end
2947
+
2948
+ # UnionID注册
2949
+ # 使用UnionID进行注册
2950
+ # @param app_key [String]
2951
+ # @param [Hash] opts the optional parameters
2952
+ # @option opts [UnionIDSignUpRequest] :union_id_sign_up_request 注册请求参数
2953
+ # @return [Array<(TokenModelApiResponse, Integer, Hash)>] TokenModelApiResponse data, response status code and response headers
2954
+ def user_union_id_sign_up_with_http_info(app_key, opts = {})
2955
+ if @api_client.config.debugging
2956
+ @api_client.config.logger.debug 'Calling API: UserApi.user_union_id_sign_up ...'
2957
+ end
2958
+ # verify the required parameter 'app_key' is set
2959
+ if @api_client.config.client_side_validation && app_key.nil?
2960
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_union_id_sign_up"
2961
+ end
2962
+ # resource path
2963
+ local_var_path = '/User/{appKey}/UnionIDSignUp'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
2964
+
2965
+ # query parameters
2966
+ query_params = opts[:query_params] || {}
2967
+
2968
+ # header parameters
2969
+ header_params = opts[:header_params] || {}
2970
+ # HTTP header 'Accept' (if needed)
2971
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2972
+ # HTTP header 'Content-Type'
2973
+ content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
2974
+ if !content_type.nil?
2975
+ header_params['Content-Type'] = content_type
2976
+ end
2977
+
2978
+ # form parameters
2979
+ form_params = opts[:form_params] || {}
2980
+
2981
+ # http body (model)
2982
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'union_id_sign_up_request'])
2983
+
2984
+ # return_type
2985
+ return_type = opts[:debug_return_type] || 'TokenModelApiResponse'
2986
+
2987
+ # auth_names
2988
+ auth_names = opts[:debug_auth_names] || ['Bearer']
2989
+
2990
+ new_options = opts.merge(
2991
+ :operation => :"UserApi.user_union_id_sign_up",
2992
+ :header_params => header_params,
2993
+ :query_params => query_params,
2994
+ :form_params => form_params,
2995
+ :body => post_body,
2996
+ :auth_names => auth_names,
2997
+ :return_type => return_type
2998
+ )
2999
+
3000
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3001
+ if @api_client.config.debugging
3002
+ @api_client.config.logger.debug "API called: UserApi#user_union_id_sign_up\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3003
+ end
3004
+ return data, status_code, headers
3005
+ end
3006
+
3007
+ # 更新个人资料
3008
+ # 更新当前用户的个人资料
3009
+ # @param app_key [String]
3010
+ # @param [Hash] opts the optional parameters
3011
+ # @option opts [UpdateProfileRequest] :update_profile_request 更新个人资料的请求参数
3012
+ # @return [BooleanApiResponse]
3013
+ def user_update_profile(app_key, opts = {})
3014
+ data, _status_code, _headers = user_update_profile_with_http_info(app_key, opts)
3015
+ data
3016
+ end
3017
+
3018
+ # 更新个人资料
3019
+ # 更新当前用户的个人资料
3020
+ # @param app_key [String]
3021
+ # @param [Hash] opts the optional parameters
3022
+ # @option opts [UpdateProfileRequest] :update_profile_request 更新个人资料的请求参数
3023
+ # @return [Array<(BooleanApiResponse, Integer, Hash)>] BooleanApiResponse data, response status code and response headers
3024
+ def user_update_profile_with_http_info(app_key, opts = {})
3025
+ if @api_client.config.debugging
3026
+ @api_client.config.logger.debug 'Calling API: UserApi.user_update_profile ...'
3027
+ end
3028
+ # verify the required parameter 'app_key' is set
3029
+ if @api_client.config.client_side_validation && app_key.nil?
3030
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.user_update_profile"
3031
+ end
3032
+ # resource path
3033
+ local_var_path = '/User/{appKey}/Profile'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
3034
+
3035
+ # query parameters
3036
+ query_params = opts[:query_params] || {}
3037
+
3038
+ # header parameters
3039
+ header_params = opts[:header_params] || {}
3040
+ # HTTP header 'Accept' (if needed)
3041
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3042
+ # HTTP header 'Content-Type'
3043
+ content_type = @api_client.select_header_content_type(['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])
3044
+ if !content_type.nil?
3045
+ header_params['Content-Type'] = content_type
3046
+ end
3047
+
3048
+ # form parameters
3049
+ form_params = opts[:form_params] || {}
3050
+
3051
+ # http body (model)
3052
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_profile_request'])
3053
+
3054
+ # return_type
3055
+ return_type = opts[:debug_return_type] || 'BooleanApiResponse'
3056
+
3057
+ # auth_names
3058
+ auth_names = opts[:debug_auth_names] || ['Bearer']
3059
+
3060
+ new_options = opts.merge(
3061
+ :operation => :"UserApi.user_update_profile",
3062
+ :header_params => header_params,
3063
+ :query_params => query_params,
3064
+ :form_params => form_params,
3065
+ :body => post_body,
3066
+ :auth_names => auth_names,
3067
+ :return_type => return_type
3068
+ )
3069
+
3070
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3071
+ if @api_client.config.debugging
3072
+ @api_client.config.logger.debug "API called: UserApi#user_update_profile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3073
+ end
3074
+ return data, status_code, headers
3075
+ end
3076
+
3077
+ # 获取用户列表
3078
+ # 根据条件获取用户列表
3079
+ # @param app_key [String]
3080
+ # @param [Hash] opts the optional parameters
3081
+ # @option opts [String] :user_name 用户名
3082
+ # @option opts [String] :email 邮箱
3083
+ # @option opts [String] :phone 电话
3084
+ # @option opts [String] :platform 平台
3085
+ # @option opts [String] :union_id 联合ID
3086
+ # @option opts [String] :role 角色
3087
+ # @option opts [Integer] :skip 跳过的记录数
3088
+ # @option opts [Integer] :take 获取的记录数
3089
+ # @return [UserListResultApiResponse]
3090
+ def users(app_key, opts = {})
3091
+ data, _status_code, _headers = users_with_http_info(app_key, opts)
3092
+ data
3093
+ end
3094
+
3095
+ # 获取用户列表
3096
+ # 根据条件获取用户列表
3097
+ # @param app_key [String]
3098
+ # @param [Hash] opts the optional parameters
3099
+ # @option opts [String] :user_name 用户名
3100
+ # @option opts [String] :email 邮箱
3101
+ # @option opts [String] :phone 电话
3102
+ # @option opts [String] :platform 平台
3103
+ # @option opts [String] :union_id 联合ID
3104
+ # @option opts [String] :role 角色
3105
+ # @option opts [Integer] :skip 跳过的记录数
3106
+ # @option opts [Integer] :take 获取的记录数
3107
+ # @return [Array<(UserListResultApiResponse, Integer, Hash)>] UserListResultApiResponse data, response status code and response headers
3108
+ def users_with_http_info(app_key, opts = {})
3109
+ if @api_client.config.debugging
3110
+ @api_client.config.logger.debug 'Calling API: UserApi.users ...'
3111
+ end
3112
+ # verify the required parameter 'app_key' is set
3113
+ if @api_client.config.client_side_validation && app_key.nil?
3114
+ fail ArgumentError, "Missing the required parameter 'app_key' when calling UserApi.users"
3115
+ end
3116
+ # resource path
3117
+ local_var_path = '/User/{appKey}'.sub('{' + 'appKey' + '}', CGI.escape(app_key.to_s))
3118
+
3119
+ # query parameters
3120
+ query_params = opts[:query_params] || {}
3121
+ query_params[:'userName'] = opts[:'user_name'] if !opts[:'user_name'].nil?
3122
+ query_params[:'email'] = opts[:'email'] if !opts[:'email'].nil?
3123
+ query_params[:'phone'] = opts[:'phone'] if !opts[:'phone'].nil?
3124
+ query_params[:'platform'] = opts[:'platform'] if !opts[:'platform'].nil?
3125
+ query_params[:'unionId'] = opts[:'union_id'] if !opts[:'union_id'].nil?
3126
+ query_params[:'role'] = opts[:'role'] if !opts[:'role'].nil?
3127
+ query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
3128
+ query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
3129
+
3130
+ # header parameters
3131
+ header_params = opts[:header_params] || {}
3132
+ # HTTP header 'Accept' (if needed)
3133
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3134
+
3135
+ # form parameters
3136
+ form_params = opts[:form_params] || {}
3137
+
3138
+ # http body (model)
3139
+ post_body = opts[:debug_body]
3140
+
3141
+ # return_type
3142
+ return_type = opts[:debug_return_type] || 'UserListResultApiResponse'
3143
+
3144
+ # auth_names
3145
+ auth_names = opts[:debug_auth_names] || ['Bearer']
3146
+
3147
+ new_options = opts.merge(
3148
+ :operation => :"UserApi.users",
3149
+ :header_params => header_params,
3150
+ :query_params => query_params,
3151
+ :form_params => form_params,
3152
+ :body => post_body,
3153
+ :auth_names => auth_names,
3154
+ :return_type => return_type
3155
+ )
3156
+
3157
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3158
+ if @api_client.config.debugging
3159
+ @api_client.config.logger.debug "API called: UserApi#users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3160
+ end
3161
+ return data, status_code, headers
3162
+ end
3163
+ end
3164
+ end