zsgf_client 1.0.24 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/docs/AccessTokenApi.md +15 -15
- data/docs/AccessTokenPutRequest.md +2 -2
- data/docs/AlipayApi.md +25 -25
- data/docs/AppApi.md +1 -655
- data/docs/AppUserResetEmailRequest.md +20 -0
- data/docs/AppUserResetPhoneRequest.md +20 -0
- data/docs/AppUserResetPwdRequest.md +4 -8
- data/docs/CommonFriendModel.md +3 -3
- data/docs/DingTalkApi.md +1 -1
- data/docs/EmailSignInRequest.md +3 -3
- data/docs/EmailSignUpRequest.md +5 -5
- data/docs/ExternalAccountApi.md +373 -0
- data/docs/{OAuthAccountBindRequest.md → ExternalAccountBindRequest.md} +2 -2
- data/docs/{OAuthAccountPutBindRequest.md → ExternalAccountPutRequest.md} +2 -2
- data/docs/ExternalAccountSignInRequest.md +22 -0
- data/docs/FileApi.md +19 -19
- data/docs/FollowerModel.md +12 -12
- data/docs/FollowerPutModel.md +6 -6
- data/docs/GeoLocation.md +62 -0
- data/docs/GeoLocationModel.md +4 -4
- data/docs/GeoLocationResponseModel.md +4 -4
- data/docs/GetUserProfileResult.md +24 -0
- data/docs/{CurrencyExchangeRateApiResponse.md → GetUserProfileResultApiResponse.md} +3 -3
- data/docs/MySqlGeometry.md +26 -0
- data/docs/OAuthApi.md +17 -17
- data/docs/OrderApi.md +1 -1
- data/docs/PhoneSignInRequest.md +3 -3
- data/docs/PhoneSignUpRequest.md +7 -7
- data/docs/QRCodePreSignInRequest.md +3 -3
- data/docs/QRCodeScanRequest.md +1 -1
- data/docs/QRCodeSignInRequest.md +1 -1
- data/docs/QRCodeSignUpRequest.md +8 -8
- data/docs/RecommendFriend.md +21 -11
- data/docs/SendEmailCodeRequest.md +2 -2
- data/docs/SendSMSCodeRequest.md +2 -2
- data/docs/SignInRequest.md +3 -3
- data/docs/SignUpRequest.md +8 -8
- data/docs/StorageApi.md +69 -819
- data/docs/TapPayInfo.md +5 -1
- data/docs/UnionIDSignInRequest.md +3 -3
- data/docs/UnionIDSignUpRequest.md +10 -10
- data/docs/UpdateProfileRequest.md +27 -15
- data/docs/UserApi.md +145 -2195
- data/docs/UserCurrencyApi.md +1 -1
- data/docs/UserFriendsApi.md +795 -0
- data/docs/UserFriendsNearByResult.md +3 -3
- data/docs/UserLocationApi.md +387 -0
- data/docs/UserProfileResult.md +2 -28
- data/docs/WechatApi.md +425 -55
- data/lib/zsgf_client/api/access_token_api.rb +15 -15
- data/lib/zsgf_client/api/alipay_api.rb +13 -13
- data/lib/zsgf_client/api/app_api.rb +1 -588
- data/lib/zsgf_client/api/ding_talk_api.rb +1 -1
- data/lib/zsgf_client/api/{authorize_policy_api.rb → external_account_api.rb} +108 -113
- data/lib/zsgf_client/api/file_api.rb +14 -14
- data/lib/zsgf_client/api/o_auth_api.rb +9 -9
- data/lib/zsgf_client/api/order_api.rb +1 -1
- data/lib/zsgf_client/api/storage_api.rb +113 -885
- data/lib/zsgf_client/api/user_api.rb +153 -2126
- data/lib/zsgf_client/api/user_currency_api.rb +1 -1
- data/lib/zsgf_client/api/user_friends_api.rb +787 -0
- data/lib/zsgf_client/api/{user_setting_api.rb → user_location_api.rb} +106 -94
- data/lib/zsgf_client/api/wechat_api.rb +391 -41
- data/lib/zsgf_client/api_client.rb +1 -1
- data/lib/zsgf_client/api_error.rb +1 -1
- data/lib/zsgf_client/configuration.rb +4 -4
- data/lib/zsgf_client/models/access_token_list_result.rb +1 -1
- data/lib/zsgf_client/models/access_token_list_result_api_response.rb +1 -1
- data/lib/zsgf_client/models/access_token_post_request.rb +1 -1
- data/lib/zsgf_client/models/access_token_put_request.rb +4 -28
- data/lib/zsgf_client/models/alipay_create_order_page_pay_request.rb +1 -1
- data/lib/zsgf_client/models/alipay_create_order_request.rb +1 -1
- data/lib/zsgf_client/models/alipay_create_order_wap_pay_request.rb +1 -1
- data/lib/zsgf_client/models/alipay_trade_query_response.rb +1 -1
- data/lib/zsgf_client/models/alipay_trade_query_response_api_response.rb +1 -1
- data/lib/zsgf_client/models/alipay_trade_refund_response.rb +1 -1
- data/lib/zsgf_client/models/alipay_trade_refund_response_api_response.rb +1 -1
- data/lib/zsgf_client/models/app_info_item.rb +1 -1
- data/lib/zsgf_client/models/app_info_result.rb +1 -1
- data/lib/zsgf_client/models/app_info_result_api_response.rb +1 -1
- data/lib/zsgf_client/models/app_property.rb +1 -1
- data/lib/zsgf_client/models/app_user_consent_model.rb +1 -1
- data/lib/zsgf_client/models/app_user_consent_model_list_api_response.rb +1 -1
- data/lib/zsgf_client/models/{app_list_result_api_response.rb → app_user_reset_email_request.rb} +56 -32
- data/lib/zsgf_client/models/{app_post_result_api_response.rb → app_user_reset_phone_request.rb} +56 -32
- data/lib/zsgf_client/models/app_user_reset_pwd_request.rb +53 -71
- data/lib/zsgf_client/models/authorize_result.rb +1 -1
- data/lib/zsgf_client/models/authorize_result_api_response.rb +1 -1
- data/lib/zsgf_client/models/bk_agent_resp_info.rb +1 -1
- data/lib/zsgf_client/models/boolean_api_response.rb +1 -1
- data/lib/zsgf_client/models/charge_info.rb +1 -1
- data/lib/zsgf_client/models/common_friend_model.rb +4 -1
- data/lib/zsgf_client/models/contribute_detail.rb +1 -1
- data/lib/zsgf_client/models/create_order_request.rb +1 -1
- data/lib/zsgf_client/models/create_order_result.rb +1 -1
- data/lib/zsgf_client/models/create_order_result_api_response.rb +1 -1
- data/lib/zsgf_client/models/currency_consume_request.rb +1 -1
- data/lib/zsgf_client/models/currency_transaction.rb +1 -1
- data/lib/zsgf_client/models/directory_item.rb +1 -1
- data/lib/zsgf_client/models/email_sign_in_request.rb +39 -2
- data/lib/zsgf_client/models/email_sign_up_request.rb +31 -9
- data/lib/zsgf_client/models/enterprise_pay_info.rb +1 -1
- data/lib/zsgf_client/models/exchange_currency_request.rb +1 -1
- data/lib/zsgf_client/models/{o_auth_account_bind_request.rb → external_account_bind_request.rb} +4 -4
- data/lib/zsgf_client/models/{o_auth_account_put_bind_request.rb → external_account_put_request.rb} +4 -4
- data/lib/zsgf_client/models/{o_auth_account_sign_in_request.rb → external_account_sign_in_request.rb} +82 -5
- data/lib/zsgf_client/models/file_item.rb +1 -1
- data/lib/zsgf_client/models/file_list_result.rb +1 -1
- data/lib/zsgf_client/models/file_list_result_api_response.rb +1 -1
- data/lib/zsgf_client/models/follower_model.rb +13 -1
- data/lib/zsgf_client/models/follower_put_model.rb +7 -1
- data/lib/zsgf_client/models/fulfillment_detail.rb +1 -1
- data/lib/zsgf_client/models/geo_location.rb +750 -0
- data/lib/zsgf_client/models/geo_location_model.rb +263 -13
- data/lib/zsgf_client/models/geo_location_model_api_response.rb +1 -1
- data/lib/zsgf_client/models/geo_location_response_model.rb +263 -13
- data/lib/zsgf_client/models/{system_file_list_result.rb → get_user_profile_result.rb} +35 -28
- data/lib/zsgf_client/models/{currency_exchange_rate_api_response.rb → get_user_profile_result_api_response.rb} +5 -5
- data/lib/zsgf_client/models/goods_detail.rb +1 -1
- data/lib/zsgf_client/models/grant_request.rb +1 -1
- data/lib/zsgf_client/models/grant_result.rb +1 -1
- data/lib/zsgf_client/models/grant_result_api_response.rb +1 -1
- data/lib/zsgf_client/models/hb_fq_pay_info.rb +1 -1
- data/lib/zsgf_client/models/int64_api_response.rb +1 -1
- data/lib/zsgf_client/models/intact_charge_info.rb +1 -1
- data/lib/zsgf_client/models/{app_post_result.rb → my_sql_geometry.rb} +48 -18
- data/lib/zsgf_client/models/object_api_response.rb +1 -1
- data/lib/zsgf_client/models/object_list_api_response.rb +1 -1
- data/lib/zsgf_client/models/order.rb +1 -1
- data/lib/zsgf_client/models/order_api_response.rb +1 -1
- data/lib/zsgf_client/models/order_list_result.rb +1 -1
- data/lib/zsgf_client/models/order_list_result_api_response.rb +1 -1
- data/lib/zsgf_client/models/payment_info_with_id.rb +1 -1
- data/lib/zsgf_client/models/phone_sign_in_request.rb +50 -2
- data/lib/zsgf_client/models/phone_sign_up_request.rb +30 -25
- data/lib/zsgf_client/models/preset_pay_tool_info.rb +1 -1
- data/lib/zsgf_client/models/profile_result.rb +1 -1
- data/lib/zsgf_client/models/profile_result_api_response.rb +1 -1
- data/lib/zsgf_client/models/qr_code_pre_sign_in_request.rb +98 -1
- data/lib/zsgf_client/models/qr_code_scan_request.rb +2 -1
- data/lib/zsgf_client/models/qr_code_sign_in_request.rb +2 -1
- data/lib/zsgf_client/models/qr_code_sign_up_request.rb +39 -34
- data/lib/zsgf_client/models/recharge_point_request.rb +1 -1
- data/lib/zsgf_client/models/recommend_friend.rb +70 -5
- data/lib/zsgf_client/models/refund_charge_info.rb +1 -1
- data/lib/zsgf_client/models/refund_sub_fee.rb +1 -1
- data/lib/zsgf_client/models/return_page_notify_request.rb +1 -1
- data/lib/zsgf_client/models/send_email_code_request.rb +3 -2
- data/lib/zsgf_client/models/send_sms_code_request.rb +3 -3
- data/lib/zsgf_client/models/setup_code.rb +1 -1
- data/lib/zsgf_client/models/setup_code_api_response.rb +1 -1
- data/lib/zsgf_client/models/sign_in_request.rb +78 -12
- data/lib/zsgf_client/models/sign_up_request.rb +48 -36
- data/lib/zsgf_client/models/storage_list_result.rb +1 -1
- data/lib/zsgf_client/models/storage_list_result_api_response.rb +1 -1
- data/lib/zsgf_client/models/string_api_response.rb +1 -1
- data/lib/zsgf_client/models/sub_fee.rb +1 -1
- data/lib/zsgf_client/models/tap_pay_info.rb +26 -6
- data/lib/zsgf_client/models/token_model.rb +1 -1
- data/lib/zsgf_client/models/token_model_api_response.rb +1 -1
- data/lib/zsgf_client/models/trade_fund_bill.rb +1 -1
- data/lib/zsgf_client/models/trade_settle_detail.rb +1 -1
- data/lib/zsgf_client/models/trade_settle_info.rb +1 -1
- data/lib/zsgf_client/models/union_id_sign_in_request.rb +79 -2
- data/lib/zsgf_client/models/union_id_sign_up_request.rb +93 -46
- data/lib/zsgf_client/models/update_profile_request.rb +100 -25
- data/lib/zsgf_client/models/user.rb +1 -1
- data/lib/zsgf_client/models/user_access_token.rb +1 -1
- data/lib/zsgf_client/models/user_common_interests_result.rb +1 -1
- data/lib/zsgf_client/models/user_common_interests_result_api_response.rb +1 -1
- data/lib/zsgf_client/models/user_currency.rb +1 -1
- data/lib/zsgf_client/models/user_currency_currency_trans_result.rb +1 -1
- data/lib/zsgf_client/models/user_currency_currency_trans_result_api_response.rb +1 -1
- data/lib/zsgf_client/models/user_currency_list_api_response.rb +1 -1
- data/lib/zsgf_client/models/user_followers_result.rb +1 -1
- data/lib/zsgf_client/models/user_followers_result_api_response.rb +1 -1
- data/lib/zsgf_client/models/user_friends_near_by_result.rb +11 -8
- data/lib/zsgf_client/models/user_friends_near_by_result_api_response.rb +1 -1
- data/lib/zsgf_client/models/user_location_post_result.rb +1 -1
- data/lib/zsgf_client/models/user_location_post_result_api_response.rb +1 -1
- data/lib/zsgf_client/models/user_locations_result.rb +1 -1
- data/lib/zsgf_client/models/user_locations_result_api_response.rb +1 -1
- data/lib/zsgf_client/models/user_logins.rb +1 -1
- data/lib/zsgf_client/models/user_logins_list_api_response.rb +1 -1
- data/lib/zsgf_client/models/user_mutual_followers_result.rb +1 -1
- data/lib/zsgf_client/models/user_mutual_followers_result_api_response.rb +1 -1
- data/lib/zsgf_client/models/user_mutual_followings_result.rb +1 -1
- data/lib/zsgf_client/models/user_mutual_followings_result_api_response.rb +1 -1
- data/lib/zsgf_client/models/user_profile_result.rb +8 -134
- data/lib/zsgf_client/models/user_profile_result_api_response.rb +1 -1
- data/lib/zsgf_client/models/user_qr_code_scan_result.rb +1 -1
- data/lib/zsgf_client/models/user_qr_code_scan_result_api_response.rb +1 -1
- data/lib/zsgf_client/models/voucher_detail.rb +1 -1
- data/lib/zsgf_client/models/wechat_js_config_result.rb +1 -1
- data/lib/zsgf_client/models/wechat_js_config_result_api_response.rb +1 -1
- data/lib/zsgf_client/version.rb +2 -2
- data/lib/zsgf_client.rb +13 -90
- data/spec/api/access_token_api_spec.rb +8 -8
- data/spec/api/alipay_api_spec.rb +7 -7
- data/spec/api/app_api_spec.rb +1 -115
- data/spec/api/ding_talk_api_spec.rb +1 -1
- data/spec/api/{user_setting_api_spec.rb → external_account_api_spec.rb} +35 -38
- data/spec/api/file_api_spec.rb +7 -7
- data/spec/api/o_auth_api_spec.rb +5 -5
- data/spec/api/order_api_spec.rb +1 -1
- data/spec/api/storage_api_spec.rb +2 -141
- data/spec/api/user_api_spec.rb +20 -406
- data/spec/api/user_currency_api_spec.rb +1 -1
- data/spec/api/user_friends_api_spec.rb +192 -0
- data/spec/api/user_location_api_spec.rb +107 -0
- data/spec/api/wechat_api_spec.rb +82 -17
- data/spec/models/access_token_list_result_api_response_spec.rb +1 -1
- data/spec/models/access_token_list_result_spec.rb +1 -1
- data/spec/models/access_token_post_request_spec.rb +1 -1
- data/spec/models/access_token_put_request_spec.rb +1 -1
- data/spec/models/alipay_create_order_page_pay_request_spec.rb +1 -1
- data/spec/models/alipay_create_order_request_spec.rb +1 -1
- data/spec/models/alipay_create_order_wap_pay_request_spec.rb +1 -1
- data/spec/models/alipay_trade_query_response_api_response_spec.rb +1 -1
- data/spec/models/alipay_trade_query_response_spec.rb +1 -1
- data/spec/models/alipay_trade_refund_response_api_response_spec.rb +1 -1
- data/spec/models/alipay_trade_refund_response_spec.rb +1 -1
- data/spec/models/app_info_item_spec.rb +1 -1
- data/spec/models/app_info_result_api_response_spec.rb +1 -1
- data/spec/models/app_info_result_spec.rb +1 -1
- data/spec/models/app_property_spec.rb +1 -1
- data/spec/models/app_user_consent_model_list_api_response_spec.rb +1 -1
- data/spec/models/app_user_consent_model_spec.rb +1 -1
- data/spec/models/{app_post_result_spec.rb → app_user_reset_email_request_spec.rb} +9 -9
- data/spec/models/{post_index_request_spec.rb → app_user_reset_phone_request_spec.rb} +9 -9
- data/spec/models/app_user_reset_pwd_request_spec.rb +3 -15
- data/spec/models/authorize_result_api_response_spec.rb +1 -1
- data/spec/models/authorize_result_spec.rb +1 -1
- data/spec/models/bk_agent_resp_info_spec.rb +1 -1
- data/spec/models/boolean_api_response_spec.rb +1 -1
- data/spec/models/charge_info_spec.rb +1 -1
- data/spec/models/common_friend_model_spec.rb +1 -1
- data/spec/models/contribute_detail_spec.rb +1 -1
- data/spec/models/create_order_request_spec.rb +1 -1
- data/spec/models/create_order_result_api_response_spec.rb +1 -1
- data/spec/models/create_order_result_spec.rb +1 -1
- data/spec/models/currency_consume_request_spec.rb +1 -1
- data/spec/models/currency_transaction_spec.rb +1 -1
- data/spec/models/directory_item_spec.rb +1 -1
- data/spec/models/email_sign_in_request_spec.rb +1 -1
- data/spec/models/email_sign_up_request_spec.rb +1 -1
- data/spec/models/enterprise_pay_info_spec.rb +1 -1
- data/spec/models/exchange_currency_request_spec.rb +1 -1
- data/spec/models/{o_auth_account_bind_request_spec.rb → external_account_bind_request_spec.rb} +7 -7
- data/spec/models/{o_auth_account_put_bind_request_spec.rb → external_account_put_request_spec.rb} +7 -7
- data/spec/models/{o_auth_account_sign_in_request_spec.rb → external_account_sign_in_request_spec.rb} +7 -7
- data/spec/models/file_item_spec.rb +1 -1
- data/spec/models/file_list_result_api_response_spec.rb +1 -1
- data/spec/models/file_list_result_spec.rb +1 -1
- data/spec/models/follower_model_spec.rb +1 -1
- data/spec/models/follower_put_model_spec.rb +1 -1
- data/spec/models/fulfillment_detail_spec.rb +1 -1
- data/spec/models/geo_location_model_api_response_spec.rb +1 -1
- data/spec/models/geo_location_model_spec.rb +4 -4
- data/spec/models/geo_location_response_model_spec.rb +4 -4
- data/spec/models/{app_spec.rb → geo_location_spec.rb} +58 -22
- data/spec/models/{system_file_list_result_api_response_spec.rb → get_user_profile_result_api_response_spec.rb} +7 -7
- data/spec/models/{system_directory_item_spec.rb → get_user_profile_result_spec.rb} +11 -11
- data/spec/models/goods_detail_spec.rb +1 -1
- data/spec/models/grant_request_spec.rb +1 -1
- data/spec/models/grant_result_api_response_spec.rb +1 -1
- data/spec/models/grant_result_spec.rb +1 -1
- data/spec/models/hb_fq_pay_info_spec.rb +1 -1
- data/spec/models/int64_api_response_spec.rb +1 -1
- data/spec/models/intact_charge_info_spec.rb +1 -1
- data/spec/models/{authorize_policy_spec.rb → my_sql_geometry_spec.rb} +12 -18
- data/spec/models/object_api_response_spec.rb +1 -1
- data/spec/models/object_list_api_response_spec.rb +1 -1
- data/spec/models/order_api_response_spec.rb +1 -1
- data/spec/models/order_list_result_api_response_spec.rb +1 -1
- data/spec/models/order_list_result_spec.rb +1 -1
- data/spec/models/order_spec.rb +1 -1
- data/spec/models/payment_info_with_id_spec.rb +1 -1
- data/spec/models/phone_sign_in_request_spec.rb +1 -1
- data/spec/models/phone_sign_up_request_spec.rb +1 -1
- data/spec/models/preset_pay_tool_info_spec.rb +1 -1
- data/spec/models/profile_result_api_response_spec.rb +1 -1
- data/spec/models/profile_result_spec.rb +1 -1
- data/spec/models/qr_code_pre_sign_in_request_spec.rb +1 -1
- data/spec/models/qr_code_scan_request_spec.rb +1 -1
- data/spec/models/qr_code_sign_in_request_spec.rb +1 -1
- data/spec/models/qr_code_sign_up_request_spec.rb +1 -1
- data/spec/models/recharge_point_request_spec.rb +1 -1
- data/spec/models/recommend_friend_spec.rb +31 -1
- data/spec/models/refund_charge_info_spec.rb +1 -1
- data/spec/models/refund_sub_fee_spec.rb +1 -1
- data/spec/models/return_page_notify_request_spec.rb +1 -1
- data/spec/models/send_email_code_request_spec.rb +1 -1
- data/spec/models/send_sms_code_request_spec.rb +1 -1
- data/spec/models/setup_code_api_response_spec.rb +1 -1
- data/spec/models/setup_code_spec.rb +1 -1
- data/spec/models/sign_in_request_spec.rb +1 -1
- data/spec/models/sign_up_request_spec.rb +1 -1
- data/spec/models/storage_list_result_api_response_spec.rb +1 -1
- data/spec/models/storage_list_result_spec.rb +1 -1
- data/spec/models/string_api_response_spec.rb +1 -1
- data/spec/models/sub_fee_spec.rb +1 -1
- data/spec/models/tap_pay_info_spec.rb +13 -1
- data/spec/models/token_model_api_response_spec.rb +1 -1
- data/spec/models/token_model_spec.rb +1 -1
- data/spec/models/trade_fund_bill_spec.rb +1 -1
- data/spec/models/trade_settle_detail_spec.rb +1 -1
- data/spec/models/trade_settle_info_spec.rb +1 -1
- data/spec/models/union_id_sign_in_request_spec.rb +1 -1
- data/spec/models/union_id_sign_up_request_spec.rb +1 -1
- data/spec/models/update_profile_request_spec.rb +37 -1
- data/spec/models/user_access_token_spec.rb +1 -1
- data/spec/models/user_common_interests_result_api_response_spec.rb +1 -1
- data/spec/models/user_common_interests_result_spec.rb +1 -1
- data/spec/models/user_currency_currency_trans_result_api_response_spec.rb +1 -1
- data/spec/models/user_currency_currency_trans_result_spec.rb +1 -1
- data/spec/models/user_currency_list_api_response_spec.rb +1 -1
- data/spec/models/user_currency_spec.rb +1 -1
- data/spec/models/user_followers_result_api_response_spec.rb +1 -1
- data/spec/models/user_followers_result_spec.rb +1 -1
- data/spec/models/user_friends_near_by_result_api_response_spec.rb +1 -1
- data/spec/models/user_friends_near_by_result_spec.rb +2 -2
- data/spec/models/user_location_post_result_api_response_spec.rb +1 -1
- data/spec/models/user_location_post_result_spec.rb +1 -1
- data/spec/models/user_locations_result_api_response_spec.rb +1 -1
- data/spec/models/user_locations_result_spec.rb +1 -1
- data/spec/models/user_logins_list_api_response_spec.rb +1 -1
- data/spec/models/user_logins_spec.rb +1 -1
- data/spec/models/user_mutual_followers_result_api_response_spec.rb +1 -1
- data/spec/models/user_mutual_followers_result_spec.rb +1 -1
- data/spec/models/user_mutual_followings_result_api_response_spec.rb +1 -1
- data/spec/models/user_mutual_followings_result_spec.rb +1 -1
- data/spec/models/user_profile_result_api_response_spec.rb +1 -1
- data/spec/models/user_profile_result_spec.rb +2 -80
- data/spec/models/user_qr_code_scan_result_api_response_spec.rb +1 -1
- data/spec/models/user_qr_code_scan_result_spec.rb +1 -1
- data/spec/models/user_spec.rb +1 -1
- data/spec/models/voucher_detail_spec.rb +1 -1
- data/spec/models/wechat_js_config_result_api_response_spec.rb +1 -1
- data/spec/models/wechat_js_config_result_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/zsgf_client.gemspec +1 -1
- metadata +159 -467
- data/docs/App.md +0 -50
- data/docs/AppApiResponse.md +0 -22
- data/docs/AppCheckVersionResult.md +0 -20
- data/docs/AppCheckVersionResultApiResponse.md +0 -22
- data/docs/AppListResult.md +0 -20
- data/docs/AppListResultApiResponse.md +0 -22
- data/docs/AppPostResult.md +0 -20
- data/docs/AppPostResultApiResponse.md +0 -22
- data/docs/AppSetting.md +0 -36
- data/docs/AppSettingApi.md +0 -1495
- data/docs/AppSettingApiResponse.md +0 -22
- data/docs/AppSettingGroupPostResult.md +0 -18
- data/docs/AppSettingGroupPostResultApiResponse.md +0 -22
- data/docs/AppSettingItemPostResult.md +0 -18
- data/docs/AppSettingItemPostResultApiResponse.md +0 -22
- data/docs/AppSettingListApiResponse.md +0 -22
- data/docs/AppSettingProviderPostResult.md +0 -18
- data/docs/AppSettingProviderPostResultApiResponse.md +0 -22
- data/docs/AppSettingSettingPostResult.md +0 -18
- data/docs/AppSettingSettingPostResultApiResponse.md +0 -22
- data/docs/AppUserListResponse.md +0 -40
- data/docs/AuthorizePolicy.md +0 -28
- data/docs/AuthorizePolicyApi.md +0 -377
- data/docs/AuthorizePolicyApiResponse.md +0 -22
- data/docs/AuthorizePolicyListApiResponse.md +0 -22
- data/docs/CreatePostResult.md +0 -18
- data/docs/CreatePostResultApiResponse.md +0 -22
- data/docs/Currency.md +0 -48
- data/docs/CurrencyApi.md +0 -677
- data/docs/CurrencyApiResponse.md +0 -22
- data/docs/CurrencyExchangeRate.md +0 -30
- data/docs/CurrencyListApiResponse.md +0 -22
- data/docs/CurrencyTransactionListApiResponse.md +0 -22
- data/docs/ExchangeRatePutRequest.md +0 -22
- data/docs/ExecuteFunctionRequest.md +0 -18
- data/docs/ListResponseItem.md +0 -36
- data/docs/ListResponseItemListApiResponse.md +0 -22
- data/docs/OAuthAccountSignInRequest.md +0 -22
- data/docs/PostIndexRequest.md +0 -20
- data/docs/PostResult.md +0 -18
- data/docs/PostResultApiResponse.md +0 -22
- data/docs/Project.md +0 -34
- data/docs/ProjectApi.md +0 -367
- data/docs/ProjectApiResponse.md +0 -22
- data/docs/ProjectListResult.md +0 -20
- data/docs/ProjectListResultApiResponse.md +0 -22
- data/docs/ServiceGroup.md +0 -36
- data/docs/ServiceGroupApiResponse.md +0 -22
- data/docs/ServiceGroupListApiResponse.md +0 -22
- data/docs/ServiceItem.md +0 -48
- data/docs/ServiceItemApiResponse.md +0 -22
- data/docs/ServiceItemListApiResponse.md +0 -22
- data/docs/ServiceProvider.md +0 -38
- data/docs/ServiceProviderApiResponse.md +0 -22
- data/docs/ServiceProviderListApiResponse.md +0 -22
- data/docs/ServiceSettingApi.md +0 -1459
- data/docs/ServiceSettingGroupPostResult.md +0 -18
- data/docs/ServiceSettingGroupPostResultApiResponse.md +0 -22
- data/docs/ServiceSettingItemPostResult.md +0 -18
- data/docs/ServiceSettingItemPostResultApiResponse.md +0 -22
- data/docs/ServiceSettingProviderPostResult.md +0 -18
- data/docs/ServiceSettingProviderPostResultApiResponse.md +0 -22
- data/docs/ServiceSettingSettingPostResult.md +0 -18
- data/docs/ServiceSettingSettingPostResultApiResponse.md +0 -22
- data/docs/Settings.md +0 -40
- data/docs/SettingsApiResponse.md +0 -22
- data/docs/SettingsListApiResponse.md +0 -22
- data/docs/StringListApiResponse.md +0 -22
- data/docs/SystemDirectoryItem.md +0 -24
- data/docs/SystemFileApi.md +0 -371
- data/docs/SystemFileItem.md +0 -24
- data/docs/SystemFileListResult.md +0 -22
- data/docs/SystemFileListResultApiResponse.md +0 -22
- data/docs/Team.md +0 -36
- data/docs/TeamApi.md +0 -297
- data/docs/UserApiResponse.md +0 -22
- data/docs/UserFollowingResult.md +0 -20
- data/docs/UserFollowingResultApiResponse.md +0 -22
- data/docs/UserListResult.md +0 -20
- data/docs/UserListResultApiResponse.md +0 -22
- data/docs/UserSetting.md +0 -38
- data/docs/UserSettingApi.md +0 -379
- data/docs/UserSettingApiResponse.md +0 -22
- data/docs/UserSettingListApiResponse.md +0 -22
- data/docs/UserSettingPostResult.md +0 -18
- data/docs/UserSettingPostResultApiResponse.md +0 -22
- data/lib/zsgf_client/api/app_setting_api.rb +0 -1446
- data/lib/zsgf_client/api/currency_api.rb +0 -667
- data/lib/zsgf_client/api/project_api.rb +0 -345
- data/lib/zsgf_client/api/service_setting_api.rb +0 -1340
- data/lib/zsgf_client/api/system_file_api.rb +0 -333
- data/lib/zsgf_client/api/team_api.rb +0 -282
- data/lib/zsgf_client/models/app.rb +0 -583
- data/lib/zsgf_client/models/app_api_response.rb +0 -245
- data/lib/zsgf_client/models/app_check_version_result.rb +0 -235
- data/lib/zsgf_client/models/app_check_version_result_api_response.rb +0 -245
- data/lib/zsgf_client/models/app_list_result.rb +0 -232
- data/lib/zsgf_client/models/app_setting.rb +0 -437
- data/lib/zsgf_client/models/app_setting_api_response.rb +0 -245
- data/lib/zsgf_client/models/app_setting_group_post_result.rb +0 -220
- data/lib/zsgf_client/models/app_setting_group_post_result_api_response.rb +0 -245
- data/lib/zsgf_client/models/app_setting_item_post_result.rb +0 -220
- data/lib/zsgf_client/models/app_setting_item_post_result_api_response.rb +0 -245
- data/lib/zsgf_client/models/app_setting_list_api_response.rb +0 -249
- data/lib/zsgf_client/models/app_setting_provider_post_result.rb +0 -220
- data/lib/zsgf_client/models/app_setting_provider_post_result_api_response.rb +0 -245
- data/lib/zsgf_client/models/app_setting_setting_post_result.rb +0 -220
- data/lib/zsgf_client/models/app_setting_setting_post_result_api_response.rb +0 -245
- data/lib/zsgf_client/models/app_user_list_response.rb +0 -327
- data/lib/zsgf_client/models/authorize_policy.rb +0 -290
- data/lib/zsgf_client/models/authorize_policy_api_response.rb +0 -245
- data/lib/zsgf_client/models/authorize_policy_list_api_response.rb +0 -249
- data/lib/zsgf_client/models/create_post_result.rb +0 -220
- data/lib/zsgf_client/models/create_post_result_api_response.rb +0 -245
- data/lib/zsgf_client/models/currency.rb +0 -484
- data/lib/zsgf_client/models/currency_api_response.rb +0 -245
- data/lib/zsgf_client/models/currency_exchange_rate.rb +0 -330
- data/lib/zsgf_client/models/currency_list_api_response.rb +0 -249
- data/lib/zsgf_client/models/currency_transaction_list_api_response.rb +0 -249
- data/lib/zsgf_client/models/exchange_rate_put_request.rb +0 -240
- data/lib/zsgf_client/models/execute_function_request.rb +0 -222
- data/lib/zsgf_client/models/list_response_item.rb +0 -308
- data/lib/zsgf_client/models/list_response_item_list_api_response.rb +0 -249
- data/lib/zsgf_client/models/post_index_request.rb +0 -251
- data/lib/zsgf_client/models/post_result.rb +0 -220
- data/lib/zsgf_client/models/post_result_api_response.rb +0 -245
- data/lib/zsgf_client/models/project.rb +0 -353
- data/lib/zsgf_client/models/project_api_response.rb +0 -245
- data/lib/zsgf_client/models/project_list_result.rb +0 -232
- data/lib/zsgf_client/models/project_list_result_api_response.rb +0 -245
- data/lib/zsgf_client/models/service_group.rb +0 -361
- data/lib/zsgf_client/models/service_group_api_response.rb +0 -245
- data/lib/zsgf_client/models/service_group_list_api_response.rb +0 -249
- data/lib/zsgf_client/models/service_item.rb +0 -502
- data/lib/zsgf_client/models/service_item_api_response.rb +0 -245
- data/lib/zsgf_client/models/service_item_list_api_response.rb +0 -249
- data/lib/zsgf_client/models/service_provider.rb +0 -403
- data/lib/zsgf_client/models/service_provider_api_response.rb +0 -245
- data/lib/zsgf_client/models/service_provider_list_api_response.rb +0 -249
- data/lib/zsgf_client/models/service_setting_group_post_result.rb +0 -220
- data/lib/zsgf_client/models/service_setting_group_post_result_api_response.rb +0 -245
- data/lib/zsgf_client/models/service_setting_item_post_result.rb +0 -220
- data/lib/zsgf_client/models/service_setting_item_post_result_api_response.rb +0 -245
- data/lib/zsgf_client/models/service_setting_provider_post_result.rb +0 -220
- data/lib/zsgf_client/models/service_setting_provider_post_result_api_response.rb +0 -245
- data/lib/zsgf_client/models/service_setting_setting_post_result.rb +0 -220
- data/lib/zsgf_client/models/service_setting_setting_post_result_api_response.rb +0 -245
- data/lib/zsgf_client/models/settings.rb +0 -445
- data/lib/zsgf_client/models/settings_api_response.rb +0 -245
- data/lib/zsgf_client/models/settings_list_api_response.rb +0 -249
- data/lib/zsgf_client/models/string_list_api_response.rb +0 -249
- data/lib/zsgf_client/models/system_directory_item.rb +0 -249
- data/lib/zsgf_client/models/system_file_item.rb +0 -249
- data/lib/zsgf_client/models/system_file_list_result_api_response.rb +0 -245
- data/lib/zsgf_client/models/team.rb +0 -376
- data/lib/zsgf_client/models/user_api_response.rb +0 -245
- data/lib/zsgf_client/models/user_following_result.rb +0 -232
- data/lib/zsgf_client/models/user_following_result_api_response.rb +0 -245
- data/lib/zsgf_client/models/user_list_result.rb +0 -232
- data/lib/zsgf_client/models/user_list_result_api_response.rb +0 -245
- data/lib/zsgf_client/models/user_setting.rb +0 -464
- data/lib/zsgf_client/models/user_setting_api_response.rb +0 -245
- data/lib/zsgf_client/models/user_setting_list_api_response.rb +0 -249
- data/lib/zsgf_client/models/user_setting_post_result.rb +0 -220
- data/lib/zsgf_client/models/user_setting_post_result_api_response.rb +0 -245
- data/spec/api/app_setting_api_spec.rb +0 -307
- data/spec/api/authorize_policy_api_spec.rb +0 -102
- data/spec/api/currency_api_spec.rb +0 -159
- data/spec/api/project_api_spec.rb +0 -97
- data/spec/api/service_setting_api_spec.rb +0 -289
- data/spec/api/system_file_api_spec.rb +0 -97
- data/spec/api/team_api_spec.rb +0 -85
- data/spec/models/app_api_response_spec.rb +0 -48
- data/spec/models/app_check_version_result_api_response_spec.rb +0 -48
- data/spec/models/app_check_version_result_spec.rb +0 -42
- data/spec/models/app_list_result_api_response_spec.rb +0 -48
- data/spec/models/app_list_result_spec.rb +0 -42
- data/spec/models/app_post_result_api_response_spec.rb +0 -48
- data/spec/models/app_setting_api_response_spec.rb +0 -48
- data/spec/models/app_setting_group_post_result_api_response_spec.rb +0 -48
- data/spec/models/app_setting_group_post_result_spec.rb +0 -36
- data/spec/models/app_setting_item_post_result_api_response_spec.rb +0 -48
- data/spec/models/app_setting_item_post_result_spec.rb +0 -36
- data/spec/models/app_setting_list_api_response_spec.rb +0 -48
- data/spec/models/app_setting_provider_post_result_api_response_spec.rb +0 -48
- data/spec/models/app_setting_provider_post_result_spec.rb +0 -36
- data/spec/models/app_setting_setting_post_result_api_response_spec.rb +0 -48
- data/spec/models/app_setting_setting_post_result_spec.rb +0 -36
- data/spec/models/app_setting_spec.rb +0 -90
- data/spec/models/app_user_list_response_spec.rb +0 -102
- data/spec/models/authorize_policy_api_response_spec.rb +0 -48
- data/spec/models/authorize_policy_list_api_response_spec.rb +0 -48
- data/spec/models/create_post_result_api_response_spec.rb +0 -48
- data/spec/models/create_post_result_spec.rb +0 -36
- data/spec/models/currency_api_response_spec.rb +0 -48
- data/spec/models/currency_exchange_rate_api_response_spec.rb +0 -48
- data/spec/models/currency_exchange_rate_spec.rb +0 -72
- data/spec/models/currency_list_api_response_spec.rb +0 -48
- data/spec/models/currency_spec.rb +0 -126
- data/spec/models/currency_transaction_list_api_response_spec.rb +0 -48
- data/spec/models/exchange_rate_put_request_spec.rb +0 -48
- data/spec/models/execute_function_request_spec.rb +0 -36
- data/spec/models/list_response_item_list_api_response_spec.rb +0 -48
- data/spec/models/list_response_item_spec.rb +0 -90
- data/spec/models/post_result_api_response_spec.rb +0 -48
- data/spec/models/post_result_spec.rb +0 -36
- data/spec/models/project_api_response_spec.rb +0 -48
- data/spec/models/project_list_result_api_response_spec.rb +0 -48
- data/spec/models/project_list_result_spec.rb +0 -42
- data/spec/models/project_spec.rb +0 -84
- data/spec/models/service_group_api_response_spec.rb +0 -48
- data/spec/models/service_group_list_api_response_spec.rb +0 -48
- data/spec/models/service_group_spec.rb +0 -90
- data/spec/models/service_item_api_response_spec.rb +0 -48
- data/spec/models/service_item_list_api_response_spec.rb +0 -48
- data/spec/models/service_item_spec.rb +0 -126
- data/spec/models/service_provider_api_response_spec.rb +0 -48
- data/spec/models/service_provider_list_api_response_spec.rb +0 -48
- data/spec/models/service_provider_spec.rb +0 -96
- data/spec/models/service_setting_group_post_result_api_response_spec.rb +0 -48
- data/spec/models/service_setting_group_post_result_spec.rb +0 -36
- data/spec/models/service_setting_item_post_result_api_response_spec.rb +0 -48
- data/spec/models/service_setting_item_post_result_spec.rb +0 -36
- data/spec/models/service_setting_provider_post_result_api_response_spec.rb +0 -48
- data/spec/models/service_setting_provider_post_result_spec.rb +0 -36
- data/spec/models/service_setting_setting_post_result_api_response_spec.rb +0 -48
- data/spec/models/service_setting_setting_post_result_spec.rb +0 -36
- data/spec/models/settings_api_response_spec.rb +0 -48
- data/spec/models/settings_list_api_response_spec.rb +0 -48
- data/spec/models/settings_spec.rb +0 -102
- data/spec/models/string_list_api_response_spec.rb +0 -48
- data/spec/models/system_file_item_spec.rb +0 -54
- data/spec/models/system_file_list_result_spec.rb +0 -48
- data/spec/models/team_spec.rb +0 -90
- data/spec/models/user_api_response_spec.rb +0 -48
- data/spec/models/user_following_result_api_response_spec.rb +0 -48
- data/spec/models/user_following_result_spec.rb +0 -42
- data/spec/models/user_list_result_api_response_spec.rb +0 -48
- data/spec/models/user_list_result_spec.rb +0 -42
- data/spec/models/user_setting_api_response_spec.rb +0 -48
- data/spec/models/user_setting_list_api_response_spec.rb +0 -48
- data/spec/models/user_setting_post_result_api_response_spec.rb +0 -48
- data/spec/models/user_setting_post_result_spec.rb +0 -36
- data/spec/models/user_setting_spec.rb +0 -96
data/docs/UserApi.md
CHANGED
|
@@ -1,62 +1,35 @@
|
|
|
1
1
|
# ZSGFClient::UserApi
|
|
2
2
|
|
|
3
|
-
All URIs are relative to *https://api.zashigaofa.cn*
|
|
3
|
+
All URIs are relative to *https://api-dev.zashigaofa.cn*
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
| ------ | ------------ | ----------- |
|
|
7
|
-
| [**
|
|
8
|
-
| [**user_clear**](UserApi.md#user_clear) | **DELETE** /User/{appKey}/Clear | 清空用户数据 |
|
|
9
|
-
| [**user_common_interests**](UserApi.md#user_common_interests) | **GET** /User/{appKey}/Friends/CommonInterests | 有共同爱好的用户推荐 |
|
|
10
|
-
| [**user_delete**](UserApi.md#user_delete) | **DELETE** /User/{appKey}/{id} | 删除用户 |
|
|
7
|
+
| [**user_deactivate_hard**](UserApi.md#user_deactivate_hard) | **DELETE** /User/{appKey}/DeactivateHard | 注销账号 |
|
|
11
8
|
| [**user_email_sign_in**](UserApi.md#user_email_sign_in) | **POST** /User/{appKey}/EmailSignIn | 邮箱登录 |
|
|
12
9
|
| [**user_email_sign_up**](UserApi.md#user_email_sign_up) | **POST** /User/{appKey}/EmailSignUp | 邮箱注册 |
|
|
13
|
-
| [**user_export**](UserApi.md#user_export) | **GET** /User/{appKey}/Export | 导出用户数据 |
|
|
14
|
-
| [**user_follow_user**](UserApi.md#user_follow_user) | **POST** /User/{appKey}/Follower/{userId} | 关注用户 |
|
|
15
|
-
| [**user_follower_put**](UserApi.md#user_follower_put) | **PUT** /User/{appKey}/Follower/{id} | 更新粉丝 |
|
|
16
|
-
| [**user_followers**](UserApi.md#user_followers) | **GET** /User/{appKey}/Followers | 获取我的粉丝列表 |
|
|
17
|
-
| [**user_following**](UserApi.md#user_following) | **GET** /User/{appKey}/Following | 获取我的关注列表 |
|
|
18
|
-
| [**user_friends_near_by**](UserApi.md#user_friends_near_by) | **GET** /User/{appKey}/Friends/NearBy | 附近的用户推荐 |
|
|
19
|
-
| [**user_import**](UserApi.md#user_import) | **POST** /User/{appKey}/Import | 导入用户数据 |
|
|
20
|
-
| [**user_location**](UserApi.md#user_location) | **GET** /User/{appKey}/Location/{id} | 获取位置详情 |
|
|
21
|
-
| [**user_location_delete**](UserApi.md#user_location_delete) | **DELETE** /User/{appKey}/Location/{id} | 删除位置 |
|
|
22
|
-
| [**user_location_post**](UserApi.md#user_location_post) | **POST** /User/{appKey}/Location | 添加位置 |
|
|
23
|
-
| [**user_location_put**](UserApi.md#user_location_put) | **PUT** /User/{appKey}/Location/{id} | 更新位置 |
|
|
24
|
-
| [**user_locations**](UserApi.md#user_locations) | **GET** /User/{appKey}/Locations | 获取位置列表 |
|
|
25
|
-
| [**user_mutual_followers**](UserApi.md#user_mutual_followers) | **GET** /User/{appKey}/Friends/MutualFollowers | 有共同粉丝的用户推荐 |
|
|
26
|
-
| [**user_mutual_followings**](UserApi.md#user_mutual_followings) | **GET** /User/{appKey}/Friends/MutualFollowings | 有共同关注的用户推荐 |
|
|
27
|
-
| [**user_o_auth_account_bind**](UserApi.md#user_o_auth_account_bind) | **POST** /User/{appKey}/OAuthAccountBind | 外部账号 绑定 |
|
|
28
|
-
| [**user_o_auth_account_sign_in**](UserApi.md#user_o_auth_account_sign_in) | **POST** /User/{appKey}/OAuthAccountSignIn | 外部账号 登录 |
|
|
29
|
-
| [**user_o_auth_accounts**](UserApi.md#user_o_auth_accounts) | **GET** /User/{appKey}/OAuthAccounts | 外部账号 绑定列表 |
|
|
30
|
-
| [**user_o_auth_accounts_put_bind**](UserApi.md#user_o_auth_accounts_put_bind) | **PUT** /User/{appKey}/OAuthAccounts/{id} | 外部账号 更新绑定 |
|
|
31
|
-
| [**user_o_auth_accounts_un_bind**](UserApi.md#user_o_auth_accounts_un_bind) | **DELETE** /User/{appKey}/OAuthAccounts/{id} | 外部账号 删除绑定 |
|
|
32
10
|
| [**user_phone_sign_in**](UserApi.md#user_phone_sign_in) | **POST** /User/{appKey}/PhoneSignIn | 手机登录 |
|
|
33
11
|
| [**user_phone_sign_up**](UserApi.md#user_phone_sign_up) | **POST** /User/{appKey}/PhoneSignUp | 手机注册 |
|
|
34
12
|
| [**user_profile**](UserApi.md#user_profile) | **GET** /User/{appKey}/Profile | 获取个人资料 |
|
|
35
|
-
| [**
|
|
36
|
-
| [**
|
|
37
|
-
| [**user_qr_code_scan**](UserApi.md#user_qr_code_scan) | **POST** /User/{appKey}/QRCodeScan | 微信小程序 - 扫码 |
|
|
38
|
-
| [**user_qr_code_sign_in**](UserApi.md#user_qr_code_sign_in) | **POST** /User/{appKey}/QRCodeSignIn | 微信小程序 - 网页登录 |
|
|
39
|
-
| [**user_qr_code_sign_up**](UserApi.md#user_qr_code_sign_up) | **POST** /User/{appKey}/QRCodeSignUp | 微信小程序 - 注册 |
|
|
13
|
+
| [**user_reset_email**](UserApi.md#user_reset_email) | **PUT** /User/{appKey}/ResetEmail | 重置邮箱 |
|
|
14
|
+
| [**user_reset_phone**](UserApi.md#user_reset_phone) | **PUT** /User/{appKey}/ResetPhone | 重置手机号 |
|
|
40
15
|
| [**user_reset_pwd**](UserApi.md#user_reset_pwd) | **POST** /User/{appKey}/ResetPwd | 重置密码 |
|
|
41
16
|
| [**user_send_email_code**](UserApi.md#user_send_email_code) | **POST** /User/{appKey}/SendEmailCode | 发送邮箱验证码 |
|
|
42
17
|
| [**user_send_sms_code**](UserApi.md#user_send_sms_code) | **POST** /User/{appKey}/SendSMSCode | 发送手机验证码 |
|
|
43
|
-
| [**user_sign_in**](UserApi.md#user_sign_in) | **POST** /User/{appKey}/SignIn |
|
|
44
|
-
| [**user_sign_up**](UserApi.md#user_sign_up) | **POST** /User/{appKey}/SignUp |
|
|
45
|
-
| [**user_two_factor_auth**](UserApi.md#user_two_factor_auth) | **GET** /User/{appKey}/TwoFactorAuth |
|
|
46
|
-
| [**user_unfollow_user**](UserApi.md#user_unfollow_user) | **DELETE** /User/{appKey}/Follower/{userId} | 取消关注 |
|
|
18
|
+
| [**user_sign_in**](UserApi.md#user_sign_in) | **POST** /User/{appKey}/SignIn | 密码登录 |
|
|
19
|
+
| [**user_sign_up**](UserApi.md#user_sign_up) | **POST** /User/{appKey}/SignUp | 账号注册 |
|
|
20
|
+
| [**user_two_factor_auth**](UserApi.md#user_two_factor_auth) | **GET** /User/{appKey}/TwoFactorAuth | 二次验证 |
|
|
47
21
|
| [**user_union_id_sign_in**](UserApi.md#user_union_id_sign_in) | **POST** /User/{appKey}/UnionIDSignIn | UnionID登录 |
|
|
48
22
|
| [**user_union_id_sign_up**](UserApi.md#user_union_id_sign_up) | **POST** /User/{appKey}/UnionIDSignUp | UnionID注册 |
|
|
49
23
|
| [**user_update_profile**](UserApi.md#user_update_profile) | **PUT** /User/{appKey}/Profile | 更新个人资料 |
|
|
50
|
-
| [**users**](UserApi.md#users) | **GET** /User/{appKey} | 获取用户列表 |
|
|
51
24
|
|
|
52
25
|
|
|
53
|
-
##
|
|
26
|
+
## user_deactivate_hard
|
|
54
27
|
|
|
55
|
-
> <
|
|
28
|
+
> <BooleanApiResponse> user_deactivate_hard(app_key)
|
|
56
29
|
|
|
57
|
-
|
|
30
|
+
注销账号
|
|
58
31
|
|
|
59
|
-
|
|
32
|
+
清除用户所有附属数据,并注销账号
|
|
60
33
|
|
|
61
34
|
### Examples
|
|
62
35
|
|
|
@@ -70,1894 +43,32 @@ ZSGFClient.configure do |config|
|
|
|
70
43
|
end
|
|
71
44
|
|
|
72
45
|
api_instance = ZSGFClient::UserApi.new
|
|
73
|
-
id = 789 # Integer | 用户ID
|
|
74
46
|
app_key = 'app_key_example' # String |
|
|
75
47
|
|
|
76
48
|
begin
|
|
77
|
-
#
|
|
78
|
-
result = api_instance.
|
|
49
|
+
# 注销账号
|
|
50
|
+
result = api_instance.user_deactivate_hard(app_key)
|
|
79
51
|
p result
|
|
80
52
|
rescue ZSGFClient::ApiError => e
|
|
81
|
-
puts "Error when calling UserApi->
|
|
53
|
+
puts "Error when calling UserApi->user_deactivate_hard: #{e}"
|
|
82
54
|
end
|
|
83
55
|
```
|
|
84
56
|
|
|
85
|
-
#### Using the
|
|
57
|
+
#### Using the user_deactivate_hard_with_http_info variant
|
|
86
58
|
|
|
87
59
|
This returns an Array which contains the response data, status code and headers.
|
|
88
60
|
|
|
89
|
-
> <Array(<
|
|
61
|
+
> <Array(<BooleanApiResponse>, Integer, Hash)> user_deactivate_hard_with_http_info(app_key)
|
|
90
62
|
|
|
91
63
|
```ruby
|
|
92
64
|
begin
|
|
93
|
-
#
|
|
94
|
-
data, status_code, headers = api_instance.
|
|
65
|
+
# 注销账号
|
|
66
|
+
data, status_code, headers = api_instance.user_deactivate_hard_with_http_info(app_key)
|
|
95
67
|
p status_code # => 2xx
|
|
96
68
|
p headers # => { ... }
|
|
97
|
-
p data # => <
|
|
98
|
-
rescue ZSGFClient::ApiError => e
|
|
99
|
-
puts "Error when calling UserApi->user_with_http_info: #{e}"
|
|
100
|
-
end
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
### Parameters
|
|
104
|
-
|
|
105
|
-
| Name | Type | Description | Notes |
|
|
106
|
-
| ---- | ---- | ----------- | ----- |
|
|
107
|
-
| **id** | **Integer** | 用户ID | |
|
|
108
|
-
| **app_key** | **String** | | |
|
|
109
|
-
|
|
110
|
-
### Return type
|
|
111
|
-
|
|
112
|
-
[**UserApiResponse**](UserApiResponse.md)
|
|
113
|
-
|
|
114
|
-
### Authorization
|
|
115
|
-
|
|
116
|
-
[Bearer](../README.md#Bearer)
|
|
117
|
-
|
|
118
|
-
### HTTP request headers
|
|
119
|
-
|
|
120
|
-
- **Content-Type**: Not defined
|
|
121
|
-
- **Accept**: application/json
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
## user_clear
|
|
125
|
-
|
|
126
|
-
> <BooleanApiResponse> user_clear(app_key)
|
|
127
|
-
|
|
128
|
-
清空用户数据
|
|
129
|
-
|
|
130
|
-
清空用户数据
|
|
131
|
-
|
|
132
|
-
### Examples
|
|
133
|
-
|
|
134
|
-
```ruby
|
|
135
|
-
require 'time'
|
|
136
|
-
require 'zsgf_client'
|
|
137
|
-
# setup authorization
|
|
138
|
-
ZSGFClient.configure do |config|
|
|
139
|
-
# Configure Bearer authorization: Bearer
|
|
140
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
141
|
-
end
|
|
142
|
-
|
|
143
|
-
api_instance = ZSGFClient::UserApi.new
|
|
144
|
-
app_key = 'app_key_example' # String |
|
|
145
|
-
|
|
146
|
-
begin
|
|
147
|
-
# 清空用户数据
|
|
148
|
-
result = api_instance.user_clear(app_key)
|
|
149
|
-
p result
|
|
150
|
-
rescue ZSGFClient::ApiError => e
|
|
151
|
-
puts "Error when calling UserApi->user_clear: #{e}"
|
|
152
|
-
end
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
#### Using the user_clear_with_http_info variant
|
|
156
|
-
|
|
157
|
-
This returns an Array which contains the response data, status code and headers.
|
|
158
|
-
|
|
159
|
-
> <Array(<BooleanApiResponse>, Integer, Hash)> user_clear_with_http_info(app_key)
|
|
160
|
-
|
|
161
|
-
```ruby
|
|
162
|
-
begin
|
|
163
|
-
# 清空用户数据
|
|
164
|
-
data, status_code, headers = api_instance.user_clear_with_http_info(app_key)
|
|
165
|
-
p status_code # => 2xx
|
|
166
|
-
p headers # => { ... }
|
|
167
|
-
p data # => <BooleanApiResponse>
|
|
168
|
-
rescue ZSGFClient::ApiError => e
|
|
169
|
-
puts "Error when calling UserApi->user_clear_with_http_info: #{e}"
|
|
170
|
-
end
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
### Parameters
|
|
174
|
-
|
|
175
|
-
| Name | Type | Description | Notes |
|
|
176
|
-
| ---- | ---- | ----------- | ----- |
|
|
177
|
-
| **app_key** | **String** | | |
|
|
178
|
-
|
|
179
|
-
### Return type
|
|
180
|
-
|
|
181
|
-
[**BooleanApiResponse**](BooleanApiResponse.md)
|
|
182
|
-
|
|
183
|
-
### Authorization
|
|
184
|
-
|
|
185
|
-
[Bearer](../README.md#Bearer)
|
|
186
|
-
|
|
187
|
-
### HTTP request headers
|
|
188
|
-
|
|
189
|
-
- **Content-Type**: Not defined
|
|
190
|
-
- **Accept**: application/json
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
## user_common_interests
|
|
194
|
-
|
|
195
|
-
> <UserCommonInterestsResultApiResponse> user_common_interests(app_key, opts)
|
|
196
|
-
|
|
197
|
-
有共同爱好的用户推荐
|
|
198
|
-
|
|
199
|
-
推荐有共同爱好的用户
|
|
200
|
-
|
|
201
|
-
### Examples
|
|
202
|
-
|
|
203
|
-
```ruby
|
|
204
|
-
require 'time'
|
|
205
|
-
require 'zsgf_client'
|
|
206
|
-
# setup authorization
|
|
207
|
-
ZSGFClient.configure do |config|
|
|
208
|
-
# Configure Bearer authorization: Bearer
|
|
209
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
210
|
-
end
|
|
211
|
-
|
|
212
|
-
api_instance = ZSGFClient::UserApi.new
|
|
213
|
-
app_key = 'app_key_example' # String |
|
|
214
|
-
opts = {
|
|
215
|
-
tag: 'tag_example', # String | 兴趣标签
|
|
216
|
-
skip: 56, # Integer | 跳过的记录数
|
|
217
|
-
take: 56 # Integer | 获取的记录数
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
begin
|
|
221
|
-
# 有共同爱好的用户推荐
|
|
222
|
-
result = api_instance.user_common_interests(app_key, opts)
|
|
223
|
-
p result
|
|
224
|
-
rescue ZSGFClient::ApiError => e
|
|
225
|
-
puts "Error when calling UserApi->user_common_interests: #{e}"
|
|
226
|
-
end
|
|
227
|
-
```
|
|
228
|
-
|
|
229
|
-
#### Using the user_common_interests_with_http_info variant
|
|
230
|
-
|
|
231
|
-
This returns an Array which contains the response data, status code and headers.
|
|
232
|
-
|
|
233
|
-
> <Array(<UserCommonInterestsResultApiResponse>, Integer, Hash)> user_common_interests_with_http_info(app_key, opts)
|
|
234
|
-
|
|
235
|
-
```ruby
|
|
236
|
-
begin
|
|
237
|
-
# 有共同爱好的用户推荐
|
|
238
|
-
data, status_code, headers = api_instance.user_common_interests_with_http_info(app_key, opts)
|
|
239
|
-
p status_code # => 2xx
|
|
240
|
-
p headers # => { ... }
|
|
241
|
-
p data # => <UserCommonInterestsResultApiResponse>
|
|
242
|
-
rescue ZSGFClient::ApiError => e
|
|
243
|
-
puts "Error when calling UserApi->user_common_interests_with_http_info: #{e}"
|
|
244
|
-
end
|
|
245
|
-
```
|
|
246
|
-
|
|
247
|
-
### Parameters
|
|
248
|
-
|
|
249
|
-
| Name | Type | Description | Notes |
|
|
250
|
-
| ---- | ---- | ----------- | ----- |
|
|
251
|
-
| **app_key** | **String** | | |
|
|
252
|
-
| **tag** | **String** | 兴趣标签 | [optional] |
|
|
253
|
-
| **skip** | **Integer** | 跳过的记录数 | [optional][default to 0] |
|
|
254
|
-
| **take** | **Integer** | 获取的记录数 | [optional][default to 10] |
|
|
255
|
-
|
|
256
|
-
### Return type
|
|
257
|
-
|
|
258
|
-
[**UserCommonInterestsResultApiResponse**](UserCommonInterestsResultApiResponse.md)
|
|
259
|
-
|
|
260
|
-
### Authorization
|
|
261
|
-
|
|
262
|
-
[Bearer](../README.md#Bearer)
|
|
263
|
-
|
|
264
|
-
### HTTP request headers
|
|
265
|
-
|
|
266
|
-
- **Content-Type**: Not defined
|
|
267
|
-
- **Accept**: application/json
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
## user_delete
|
|
271
|
-
|
|
272
|
-
> <BooleanApiResponse> user_delete(id, app_key)
|
|
273
|
-
|
|
274
|
-
删除用户
|
|
275
|
-
|
|
276
|
-
根据用户ID删除用户
|
|
277
|
-
|
|
278
|
-
### Examples
|
|
279
|
-
|
|
280
|
-
```ruby
|
|
281
|
-
require 'time'
|
|
282
|
-
require 'zsgf_client'
|
|
283
|
-
# setup authorization
|
|
284
|
-
ZSGFClient.configure do |config|
|
|
285
|
-
# Configure Bearer authorization: Bearer
|
|
286
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
287
|
-
end
|
|
288
|
-
|
|
289
|
-
api_instance = ZSGFClient::UserApi.new
|
|
290
|
-
id = 789 # Integer | 用户ID
|
|
291
|
-
app_key = 'app_key_example' # String |
|
|
292
|
-
|
|
293
|
-
begin
|
|
294
|
-
# 删除用户
|
|
295
|
-
result = api_instance.user_delete(id, app_key)
|
|
296
|
-
p result
|
|
297
|
-
rescue ZSGFClient::ApiError => e
|
|
298
|
-
puts "Error when calling UserApi->user_delete: #{e}"
|
|
299
|
-
end
|
|
300
|
-
```
|
|
301
|
-
|
|
302
|
-
#### Using the user_delete_with_http_info variant
|
|
303
|
-
|
|
304
|
-
This returns an Array which contains the response data, status code and headers.
|
|
305
|
-
|
|
306
|
-
> <Array(<BooleanApiResponse>, Integer, Hash)> user_delete_with_http_info(id, app_key)
|
|
307
|
-
|
|
308
|
-
```ruby
|
|
309
|
-
begin
|
|
310
|
-
# 删除用户
|
|
311
|
-
data, status_code, headers = api_instance.user_delete_with_http_info(id, app_key)
|
|
312
|
-
p status_code # => 2xx
|
|
313
|
-
p headers # => { ... }
|
|
314
|
-
p data # => <BooleanApiResponse>
|
|
315
|
-
rescue ZSGFClient::ApiError => e
|
|
316
|
-
puts "Error when calling UserApi->user_delete_with_http_info: #{e}"
|
|
317
|
-
end
|
|
318
|
-
```
|
|
319
|
-
|
|
320
|
-
### Parameters
|
|
321
|
-
|
|
322
|
-
| Name | Type | Description | Notes |
|
|
323
|
-
| ---- | ---- | ----------- | ----- |
|
|
324
|
-
| **id** | **Integer** | 用户ID | |
|
|
325
|
-
| **app_key** | **String** | | |
|
|
326
|
-
|
|
327
|
-
### Return type
|
|
328
|
-
|
|
329
|
-
[**BooleanApiResponse**](BooleanApiResponse.md)
|
|
330
|
-
|
|
331
|
-
### Authorization
|
|
332
|
-
|
|
333
|
-
[Bearer](../README.md#Bearer)
|
|
334
|
-
|
|
335
|
-
### HTTP request headers
|
|
336
|
-
|
|
337
|
-
- **Content-Type**: Not defined
|
|
338
|
-
- **Accept**: application/json
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
## user_email_sign_in
|
|
342
|
-
|
|
343
|
-
> <TokenModelApiResponse> user_email_sign_in(app_key, opts)
|
|
344
|
-
|
|
345
|
-
邮箱登录
|
|
346
|
-
|
|
347
|
-
使用邮箱进行登录
|
|
348
|
-
|
|
349
|
-
### Examples
|
|
350
|
-
|
|
351
|
-
```ruby
|
|
352
|
-
require 'time'
|
|
353
|
-
require 'zsgf_client'
|
|
354
|
-
# setup authorization
|
|
355
|
-
ZSGFClient.configure do |config|
|
|
356
|
-
# Configure Bearer authorization: Bearer
|
|
357
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
358
|
-
end
|
|
359
|
-
|
|
360
|
-
api_instance = ZSGFClient::UserApi.new
|
|
361
|
-
app_key = 'app_key_example' # String |
|
|
362
|
-
opts = {
|
|
363
|
-
email_sign_in_request: ZSGFClient::EmailSignInRequest.new({email: 'email_example', verify_code: 'verify_code_example'}) # EmailSignInRequest | 登录请求参数
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
begin
|
|
367
|
-
# 邮箱登录
|
|
368
|
-
result = api_instance.user_email_sign_in(app_key, opts)
|
|
369
|
-
p result
|
|
370
|
-
rescue ZSGFClient::ApiError => e
|
|
371
|
-
puts "Error when calling UserApi->user_email_sign_in: #{e}"
|
|
372
|
-
end
|
|
373
|
-
```
|
|
374
|
-
|
|
375
|
-
#### Using the user_email_sign_in_with_http_info variant
|
|
376
|
-
|
|
377
|
-
This returns an Array which contains the response data, status code and headers.
|
|
378
|
-
|
|
379
|
-
> <Array(<TokenModelApiResponse>, Integer, Hash)> user_email_sign_in_with_http_info(app_key, opts)
|
|
380
|
-
|
|
381
|
-
```ruby
|
|
382
|
-
begin
|
|
383
|
-
# 邮箱登录
|
|
384
|
-
data, status_code, headers = api_instance.user_email_sign_in_with_http_info(app_key, opts)
|
|
385
|
-
p status_code # => 2xx
|
|
386
|
-
p headers # => { ... }
|
|
387
|
-
p data # => <TokenModelApiResponse>
|
|
388
|
-
rescue ZSGFClient::ApiError => e
|
|
389
|
-
puts "Error when calling UserApi->user_email_sign_in_with_http_info: #{e}"
|
|
390
|
-
end
|
|
391
|
-
```
|
|
392
|
-
|
|
393
|
-
### Parameters
|
|
394
|
-
|
|
395
|
-
| Name | Type | Description | Notes |
|
|
396
|
-
| ---- | ---- | ----------- | ----- |
|
|
397
|
-
| **app_key** | **String** | | |
|
|
398
|
-
| **email_sign_in_request** | [**EmailSignInRequest**](EmailSignInRequest.md) | 登录请求参数 | [optional] |
|
|
399
|
-
|
|
400
|
-
### Return type
|
|
401
|
-
|
|
402
|
-
[**TokenModelApiResponse**](TokenModelApiResponse.md)
|
|
403
|
-
|
|
404
|
-
### Authorization
|
|
405
|
-
|
|
406
|
-
[Bearer](../README.md#Bearer)
|
|
407
|
-
|
|
408
|
-
### HTTP request headers
|
|
409
|
-
|
|
410
|
-
- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json
|
|
411
|
-
- **Accept**: application/json
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
## user_email_sign_up
|
|
415
|
-
|
|
416
|
-
> <TokenModelApiResponse> user_email_sign_up(app_key, opts)
|
|
417
|
-
|
|
418
|
-
邮箱注册
|
|
419
|
-
|
|
420
|
-
使用邮箱进行注册
|
|
421
|
-
|
|
422
|
-
### Examples
|
|
423
|
-
|
|
424
|
-
```ruby
|
|
425
|
-
require 'time'
|
|
426
|
-
require 'zsgf_client'
|
|
427
|
-
# setup authorization
|
|
428
|
-
ZSGFClient.configure do |config|
|
|
429
|
-
# Configure Bearer authorization: Bearer
|
|
430
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
431
|
-
end
|
|
432
|
-
|
|
433
|
-
api_instance = ZSGFClient::UserApi.new
|
|
434
|
-
app_key = 'app_key_example' # String |
|
|
435
|
-
opts = {
|
|
436
|
-
email_sign_up_request: ZSGFClient::EmailSignUpRequest.new({email: 'email_example', pwd: 'pwd_example'}) # EmailSignUpRequest | 注册请求参数
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
begin
|
|
440
|
-
# 邮箱注册
|
|
441
|
-
result = api_instance.user_email_sign_up(app_key, opts)
|
|
442
|
-
p result
|
|
443
|
-
rescue ZSGFClient::ApiError => e
|
|
444
|
-
puts "Error when calling UserApi->user_email_sign_up: #{e}"
|
|
445
|
-
end
|
|
446
|
-
```
|
|
447
|
-
|
|
448
|
-
#### Using the user_email_sign_up_with_http_info variant
|
|
449
|
-
|
|
450
|
-
This returns an Array which contains the response data, status code and headers.
|
|
451
|
-
|
|
452
|
-
> <Array(<TokenModelApiResponse>, Integer, Hash)> user_email_sign_up_with_http_info(app_key, opts)
|
|
453
|
-
|
|
454
|
-
```ruby
|
|
455
|
-
begin
|
|
456
|
-
# 邮箱注册
|
|
457
|
-
data, status_code, headers = api_instance.user_email_sign_up_with_http_info(app_key, opts)
|
|
458
|
-
p status_code # => 2xx
|
|
459
|
-
p headers # => { ... }
|
|
460
|
-
p data # => <TokenModelApiResponse>
|
|
461
|
-
rescue ZSGFClient::ApiError => e
|
|
462
|
-
puts "Error when calling UserApi->user_email_sign_up_with_http_info: #{e}"
|
|
463
|
-
end
|
|
464
|
-
```
|
|
465
|
-
|
|
466
|
-
### Parameters
|
|
467
|
-
|
|
468
|
-
| Name | Type | Description | Notes |
|
|
469
|
-
| ---- | ---- | ----------- | ----- |
|
|
470
|
-
| **app_key** | **String** | | |
|
|
471
|
-
| **email_sign_up_request** | [**EmailSignUpRequest**](EmailSignUpRequest.md) | 注册请求参数 | [optional] |
|
|
472
|
-
|
|
473
|
-
### Return type
|
|
474
|
-
|
|
475
|
-
[**TokenModelApiResponse**](TokenModelApiResponse.md)
|
|
476
|
-
|
|
477
|
-
### Authorization
|
|
478
|
-
|
|
479
|
-
[Bearer](../README.md#Bearer)
|
|
480
|
-
|
|
481
|
-
### HTTP request headers
|
|
482
|
-
|
|
483
|
-
- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json
|
|
484
|
-
- **Accept**: application/json
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
## user_export
|
|
488
|
-
|
|
489
|
-
> File user_export(app_key)
|
|
490
|
-
|
|
491
|
-
导出用户数据
|
|
492
|
-
|
|
493
|
-
导出所有用户数据为Excel文件
|
|
494
|
-
|
|
495
|
-
### Examples
|
|
496
|
-
|
|
497
|
-
```ruby
|
|
498
|
-
require 'time'
|
|
499
|
-
require 'zsgf_client'
|
|
500
|
-
# setup authorization
|
|
501
|
-
ZSGFClient.configure do |config|
|
|
502
|
-
# Configure Bearer authorization: Bearer
|
|
503
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
504
|
-
end
|
|
505
|
-
|
|
506
|
-
api_instance = ZSGFClient::UserApi.new
|
|
507
|
-
app_key = 'app_key_example' # String |
|
|
508
|
-
|
|
509
|
-
begin
|
|
510
|
-
# 导出用户数据
|
|
511
|
-
result = api_instance.user_export(app_key)
|
|
512
|
-
p result
|
|
513
|
-
rescue ZSGFClient::ApiError => e
|
|
514
|
-
puts "Error when calling UserApi->user_export: #{e}"
|
|
515
|
-
end
|
|
516
|
-
```
|
|
517
|
-
|
|
518
|
-
#### Using the user_export_with_http_info variant
|
|
519
|
-
|
|
520
|
-
This returns an Array which contains the response data, status code and headers.
|
|
521
|
-
|
|
522
|
-
> <Array(File, Integer, Hash)> user_export_with_http_info(app_key)
|
|
523
|
-
|
|
524
|
-
```ruby
|
|
525
|
-
begin
|
|
526
|
-
# 导出用户数据
|
|
527
|
-
data, status_code, headers = api_instance.user_export_with_http_info(app_key)
|
|
528
|
-
p status_code # => 2xx
|
|
529
|
-
p headers # => { ... }
|
|
530
|
-
p data # => File
|
|
531
|
-
rescue ZSGFClient::ApiError => e
|
|
532
|
-
puts "Error when calling UserApi->user_export_with_http_info: #{e}"
|
|
533
|
-
end
|
|
534
|
-
```
|
|
535
|
-
|
|
536
|
-
### Parameters
|
|
537
|
-
|
|
538
|
-
| Name | Type | Description | Notes |
|
|
539
|
-
| ---- | ---- | ----------- | ----- |
|
|
540
|
-
| **app_key** | **String** | | |
|
|
541
|
-
|
|
542
|
-
### Return type
|
|
543
|
-
|
|
544
|
-
**File**
|
|
545
|
-
|
|
546
|
-
### Authorization
|
|
547
|
-
|
|
548
|
-
[Bearer](../README.md#Bearer)
|
|
549
|
-
|
|
550
|
-
### HTTP request headers
|
|
551
|
-
|
|
552
|
-
- **Content-Type**: Not defined
|
|
553
|
-
- **Accept**: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
## user_follow_user
|
|
557
|
-
|
|
558
|
-
> <BooleanApiResponse> user_follow_user(user_id, app_key)
|
|
559
|
-
|
|
560
|
-
关注用户
|
|
561
|
-
|
|
562
|
-
关注指定用户
|
|
563
|
-
|
|
564
|
-
### Examples
|
|
565
|
-
|
|
566
|
-
```ruby
|
|
567
|
-
require 'time'
|
|
568
|
-
require 'zsgf_client'
|
|
569
|
-
# setup authorization
|
|
570
|
-
ZSGFClient.configure do |config|
|
|
571
|
-
# Configure Bearer authorization: Bearer
|
|
572
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
573
|
-
end
|
|
574
|
-
|
|
575
|
-
api_instance = ZSGFClient::UserApi.new
|
|
576
|
-
user_id = 789 # Integer | 要关注的用户ID
|
|
577
|
-
app_key = 'app_key_example' # String |
|
|
578
|
-
|
|
579
|
-
begin
|
|
580
|
-
# 关注用户
|
|
581
|
-
result = api_instance.user_follow_user(user_id, app_key)
|
|
582
|
-
p result
|
|
583
|
-
rescue ZSGFClient::ApiError => e
|
|
584
|
-
puts "Error when calling UserApi->user_follow_user: #{e}"
|
|
585
|
-
end
|
|
586
|
-
```
|
|
587
|
-
|
|
588
|
-
#### Using the user_follow_user_with_http_info variant
|
|
589
|
-
|
|
590
|
-
This returns an Array which contains the response data, status code and headers.
|
|
591
|
-
|
|
592
|
-
> <Array(<BooleanApiResponse>, Integer, Hash)> user_follow_user_with_http_info(user_id, app_key)
|
|
593
|
-
|
|
594
|
-
```ruby
|
|
595
|
-
begin
|
|
596
|
-
# 关注用户
|
|
597
|
-
data, status_code, headers = api_instance.user_follow_user_with_http_info(user_id, app_key)
|
|
598
|
-
p status_code # => 2xx
|
|
599
|
-
p headers # => { ... }
|
|
600
|
-
p data # => <BooleanApiResponse>
|
|
601
|
-
rescue ZSGFClient::ApiError => e
|
|
602
|
-
puts "Error when calling UserApi->user_follow_user_with_http_info: #{e}"
|
|
603
|
-
end
|
|
604
|
-
```
|
|
605
|
-
|
|
606
|
-
### Parameters
|
|
607
|
-
|
|
608
|
-
| Name | Type | Description | Notes |
|
|
609
|
-
| ---- | ---- | ----------- | ----- |
|
|
610
|
-
| **user_id** | **Integer** | 要关注的用户ID | |
|
|
611
|
-
| **app_key** | **String** | | |
|
|
612
|
-
|
|
613
|
-
### Return type
|
|
614
|
-
|
|
615
|
-
[**BooleanApiResponse**](BooleanApiResponse.md)
|
|
616
|
-
|
|
617
|
-
### Authorization
|
|
618
|
-
|
|
619
|
-
[Bearer](../README.md#Bearer)
|
|
620
|
-
|
|
621
|
-
### HTTP request headers
|
|
622
|
-
|
|
623
|
-
- **Content-Type**: Not defined
|
|
624
|
-
- **Accept**: application/json
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
## user_follower_put
|
|
628
|
-
|
|
629
|
-
> <BooleanApiResponse> user_follower_put(id, app_key, opts)
|
|
630
|
-
|
|
631
|
-
更新粉丝
|
|
632
|
-
|
|
633
|
-
根据粉丝ID更新粉丝信息
|
|
634
|
-
|
|
635
|
-
### Examples
|
|
636
|
-
|
|
637
|
-
```ruby
|
|
638
|
-
require 'time'
|
|
639
|
-
require 'zsgf_client'
|
|
640
|
-
# setup authorization
|
|
641
|
-
ZSGFClient.configure do |config|
|
|
642
|
-
# Configure Bearer authorization: Bearer
|
|
643
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
644
|
-
end
|
|
645
|
-
|
|
646
|
-
api_instance = ZSGFClient::UserApi.new
|
|
647
|
-
id = 789 # Integer | 粉丝ID
|
|
648
|
-
app_key = 'app_key_example' # String |
|
|
649
|
-
opts = {
|
|
650
|
-
follower_put_model: ZSGFClient::FollowerPutModel.new # FollowerPutModel | 更新粉丝的请求参数
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
begin
|
|
654
|
-
# 更新粉丝
|
|
655
|
-
result = api_instance.user_follower_put(id, app_key, opts)
|
|
656
|
-
p result
|
|
657
|
-
rescue ZSGFClient::ApiError => e
|
|
658
|
-
puts "Error when calling UserApi->user_follower_put: #{e}"
|
|
659
|
-
end
|
|
660
|
-
```
|
|
661
|
-
|
|
662
|
-
#### Using the user_follower_put_with_http_info variant
|
|
663
|
-
|
|
664
|
-
This returns an Array which contains the response data, status code and headers.
|
|
665
|
-
|
|
666
|
-
> <Array(<BooleanApiResponse>, Integer, Hash)> user_follower_put_with_http_info(id, app_key, opts)
|
|
667
|
-
|
|
668
|
-
```ruby
|
|
669
|
-
begin
|
|
670
|
-
# 更新粉丝
|
|
671
|
-
data, status_code, headers = api_instance.user_follower_put_with_http_info(id, app_key, opts)
|
|
672
|
-
p status_code # => 2xx
|
|
673
|
-
p headers # => { ... }
|
|
674
|
-
p data # => <BooleanApiResponse>
|
|
675
|
-
rescue ZSGFClient::ApiError => e
|
|
676
|
-
puts "Error when calling UserApi->user_follower_put_with_http_info: #{e}"
|
|
677
|
-
end
|
|
678
|
-
```
|
|
679
|
-
|
|
680
|
-
### Parameters
|
|
681
|
-
|
|
682
|
-
| Name | Type | Description | Notes |
|
|
683
|
-
| ---- | ---- | ----------- | ----- |
|
|
684
|
-
| **id** | **Integer** | 粉丝ID | |
|
|
685
|
-
| **app_key** | **String** | | |
|
|
686
|
-
| **follower_put_model** | [**FollowerPutModel**](FollowerPutModel.md) | 更新粉丝的请求参数 | [optional] |
|
|
687
|
-
|
|
688
|
-
### Return type
|
|
689
|
-
|
|
690
|
-
[**BooleanApiResponse**](BooleanApiResponse.md)
|
|
691
|
-
|
|
692
|
-
### Authorization
|
|
693
|
-
|
|
694
|
-
[Bearer](../README.md#Bearer)
|
|
695
|
-
|
|
696
|
-
### HTTP request headers
|
|
697
|
-
|
|
698
|
-
- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json
|
|
699
|
-
- **Accept**: application/json
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
## user_followers
|
|
703
|
-
|
|
704
|
-
> <UserFollowersResultApiResponse> user_followers(app_key, opts)
|
|
705
|
-
|
|
706
|
-
获取我的粉丝列表
|
|
707
|
-
|
|
708
|
-
根据条件获取我的粉丝列表
|
|
709
|
-
|
|
710
|
-
### Examples
|
|
711
|
-
|
|
712
|
-
```ruby
|
|
713
|
-
require 'time'
|
|
714
|
-
require 'zsgf_client'
|
|
715
|
-
# setup authorization
|
|
716
|
-
ZSGFClient.configure do |config|
|
|
717
|
-
# Configure Bearer authorization: Bearer
|
|
718
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
719
|
-
end
|
|
720
|
-
|
|
721
|
-
api_instance = ZSGFClient::UserApi.new
|
|
722
|
-
app_key = 'app_key_example' # String |
|
|
723
|
-
opts = {
|
|
724
|
-
tag: 'tag_example', # String | 标签
|
|
725
|
-
status: 'status_example', # String | 状态
|
|
726
|
-
skip: 56, # Integer | 跳过的记录数
|
|
727
|
-
take: 56 # Integer | 获取的记录数
|
|
728
|
-
}
|
|
729
|
-
|
|
730
|
-
begin
|
|
731
|
-
# 获取我的粉丝列表
|
|
732
|
-
result = api_instance.user_followers(app_key, opts)
|
|
733
|
-
p result
|
|
734
|
-
rescue ZSGFClient::ApiError => e
|
|
735
|
-
puts "Error when calling UserApi->user_followers: #{e}"
|
|
736
|
-
end
|
|
737
|
-
```
|
|
738
|
-
|
|
739
|
-
#### Using the user_followers_with_http_info variant
|
|
740
|
-
|
|
741
|
-
This returns an Array which contains the response data, status code and headers.
|
|
742
|
-
|
|
743
|
-
> <Array(<UserFollowersResultApiResponse>, Integer, Hash)> user_followers_with_http_info(app_key, opts)
|
|
744
|
-
|
|
745
|
-
```ruby
|
|
746
|
-
begin
|
|
747
|
-
# 获取我的粉丝列表
|
|
748
|
-
data, status_code, headers = api_instance.user_followers_with_http_info(app_key, opts)
|
|
749
|
-
p status_code # => 2xx
|
|
750
|
-
p headers # => { ... }
|
|
751
|
-
p data # => <UserFollowersResultApiResponse>
|
|
752
|
-
rescue ZSGFClient::ApiError => e
|
|
753
|
-
puts "Error when calling UserApi->user_followers_with_http_info: #{e}"
|
|
754
|
-
end
|
|
755
|
-
```
|
|
756
|
-
|
|
757
|
-
### Parameters
|
|
758
|
-
|
|
759
|
-
| Name | Type | Description | Notes |
|
|
760
|
-
| ---- | ---- | ----------- | ----- |
|
|
761
|
-
| **app_key** | **String** | | |
|
|
762
|
-
| **tag** | **String** | 标签 | [optional] |
|
|
763
|
-
| **status** | **String** | 状态 | [optional] |
|
|
764
|
-
| **skip** | **Integer** | 跳过的记录数 | [optional][default to 0] |
|
|
765
|
-
| **take** | **Integer** | 获取的记录数 | [optional][default to 10] |
|
|
766
|
-
|
|
767
|
-
### Return type
|
|
768
|
-
|
|
769
|
-
[**UserFollowersResultApiResponse**](UserFollowersResultApiResponse.md)
|
|
770
|
-
|
|
771
|
-
### Authorization
|
|
772
|
-
|
|
773
|
-
[Bearer](../README.md#Bearer)
|
|
774
|
-
|
|
775
|
-
### HTTP request headers
|
|
776
|
-
|
|
777
|
-
- **Content-Type**: Not defined
|
|
778
|
-
- **Accept**: application/json
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
## user_following
|
|
782
|
-
|
|
783
|
-
> <UserFollowingResultApiResponse> user_following(app_key, opts)
|
|
784
|
-
|
|
785
|
-
获取我的关注列表
|
|
786
|
-
|
|
787
|
-
根据条件获取我的关注列表
|
|
788
|
-
|
|
789
|
-
### Examples
|
|
790
|
-
|
|
791
|
-
```ruby
|
|
792
|
-
require 'time'
|
|
793
|
-
require 'zsgf_client'
|
|
794
|
-
# setup authorization
|
|
795
|
-
ZSGFClient.configure do |config|
|
|
796
|
-
# Configure Bearer authorization: Bearer
|
|
797
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
798
|
-
end
|
|
799
|
-
|
|
800
|
-
api_instance = ZSGFClient::UserApi.new
|
|
801
|
-
app_key = 'app_key_example' # String |
|
|
802
|
-
opts = {
|
|
803
|
-
tag: 'tag_example', # String | 标签
|
|
804
|
-
status: 'status_example', # String | 状态
|
|
805
|
-
skip: 56, # Integer | 跳过的记录数
|
|
806
|
-
take: 56 # Integer | 获取的记录数
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
begin
|
|
810
|
-
# 获取我的关注列表
|
|
811
|
-
result = api_instance.user_following(app_key, opts)
|
|
812
|
-
p result
|
|
813
|
-
rescue ZSGFClient::ApiError => e
|
|
814
|
-
puts "Error when calling UserApi->user_following: #{e}"
|
|
815
|
-
end
|
|
816
|
-
```
|
|
817
|
-
|
|
818
|
-
#### Using the user_following_with_http_info variant
|
|
819
|
-
|
|
820
|
-
This returns an Array which contains the response data, status code and headers.
|
|
821
|
-
|
|
822
|
-
> <Array(<UserFollowingResultApiResponse>, Integer, Hash)> user_following_with_http_info(app_key, opts)
|
|
823
|
-
|
|
824
|
-
```ruby
|
|
825
|
-
begin
|
|
826
|
-
# 获取我的关注列表
|
|
827
|
-
data, status_code, headers = api_instance.user_following_with_http_info(app_key, opts)
|
|
828
|
-
p status_code # => 2xx
|
|
829
|
-
p headers # => { ... }
|
|
830
|
-
p data # => <UserFollowingResultApiResponse>
|
|
831
|
-
rescue ZSGFClient::ApiError => e
|
|
832
|
-
puts "Error when calling UserApi->user_following_with_http_info: #{e}"
|
|
833
|
-
end
|
|
834
|
-
```
|
|
835
|
-
|
|
836
|
-
### Parameters
|
|
837
|
-
|
|
838
|
-
| Name | Type | Description | Notes |
|
|
839
|
-
| ---- | ---- | ----------- | ----- |
|
|
840
|
-
| **app_key** | **String** | | |
|
|
841
|
-
| **tag** | **String** | 标签 | [optional] |
|
|
842
|
-
| **status** | **String** | 状态 | [optional] |
|
|
843
|
-
| **skip** | **Integer** | 跳过的记录数 | [optional][default to 0] |
|
|
844
|
-
| **take** | **Integer** | 获取的记录数 | [optional][default to 10] |
|
|
845
|
-
|
|
846
|
-
### Return type
|
|
847
|
-
|
|
848
|
-
[**UserFollowingResultApiResponse**](UserFollowingResultApiResponse.md)
|
|
849
|
-
|
|
850
|
-
### Authorization
|
|
851
|
-
|
|
852
|
-
[Bearer](../README.md#Bearer)
|
|
853
|
-
|
|
854
|
-
### HTTP request headers
|
|
855
|
-
|
|
856
|
-
- **Content-Type**: Not defined
|
|
857
|
-
- **Accept**: application/json
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
## user_friends_near_by
|
|
861
|
-
|
|
862
|
-
> <UserFriendsNearByResultApiResponse> user_friends_near_by(x, y, distance, app_key, opts)
|
|
863
|
-
|
|
864
|
-
附近的用户推荐
|
|
865
|
-
|
|
866
|
-
推荐附近的用户
|
|
867
|
-
|
|
868
|
-
### Examples
|
|
869
|
-
|
|
870
|
-
```ruby
|
|
871
|
-
require 'time'
|
|
872
|
-
require 'zsgf_client'
|
|
873
|
-
# setup authorization
|
|
874
|
-
ZSGFClient.configure do |config|
|
|
875
|
-
# Configure Bearer authorization: Bearer
|
|
876
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
877
|
-
end
|
|
878
|
-
|
|
879
|
-
api_instance = ZSGFClient::UserApi.new
|
|
880
|
-
x = 1.2 # Float | 纬度
|
|
881
|
-
y = 1.2 # Float | 经度
|
|
882
|
-
distance = 789 # Integer | 附近距离,单位:米
|
|
883
|
-
app_key = 'app_key_example' # String |
|
|
884
|
-
opts = {
|
|
885
|
-
gender: 'gender_example', # String | 性别
|
|
886
|
-
age_s: 56, # Integer | 年龄段起始
|
|
887
|
-
age_e: 56, # Integer | 年龄段结束
|
|
888
|
-
tag: 'tag_example', # String | 兴趣标签
|
|
889
|
-
type: 'type_example', # String | 分类
|
|
890
|
-
skip: 56, # Integer | 跳过的记录数
|
|
891
|
-
take: 56 # Integer | 获取的记录数
|
|
892
|
-
}
|
|
893
|
-
|
|
894
|
-
begin
|
|
895
|
-
# 附近的用户推荐
|
|
896
|
-
result = api_instance.user_friends_near_by(x, y, distance, app_key, opts)
|
|
897
|
-
p result
|
|
898
|
-
rescue ZSGFClient::ApiError => e
|
|
899
|
-
puts "Error when calling UserApi->user_friends_near_by: #{e}"
|
|
900
|
-
end
|
|
901
|
-
```
|
|
902
|
-
|
|
903
|
-
#### Using the user_friends_near_by_with_http_info variant
|
|
904
|
-
|
|
905
|
-
This returns an Array which contains the response data, status code and headers.
|
|
906
|
-
|
|
907
|
-
> <Array(<UserFriendsNearByResultApiResponse>, Integer, Hash)> user_friends_near_by_with_http_info(x, y, distance, app_key, opts)
|
|
908
|
-
|
|
909
|
-
```ruby
|
|
910
|
-
begin
|
|
911
|
-
# 附近的用户推荐
|
|
912
|
-
data, status_code, headers = api_instance.user_friends_near_by_with_http_info(x, y, distance, app_key, opts)
|
|
913
|
-
p status_code # => 2xx
|
|
914
|
-
p headers # => { ... }
|
|
915
|
-
p data # => <UserFriendsNearByResultApiResponse>
|
|
916
|
-
rescue ZSGFClient::ApiError => e
|
|
917
|
-
puts "Error when calling UserApi->user_friends_near_by_with_http_info: #{e}"
|
|
918
|
-
end
|
|
919
|
-
```
|
|
920
|
-
|
|
921
|
-
### Parameters
|
|
922
|
-
|
|
923
|
-
| Name | Type | Description | Notes |
|
|
924
|
-
| ---- | ---- | ----------- | ----- |
|
|
925
|
-
| **x** | **Float** | 纬度 | |
|
|
926
|
-
| **y** | **Float** | 经度 | |
|
|
927
|
-
| **distance** | **Integer** | 附近距离,单位:米 | |
|
|
928
|
-
| **app_key** | **String** | | |
|
|
929
|
-
| **gender** | **String** | 性别 | [optional] |
|
|
930
|
-
| **age_s** | **Integer** | 年龄段起始 | [optional] |
|
|
931
|
-
| **age_e** | **Integer** | 年龄段结束 | [optional] |
|
|
932
|
-
| **tag** | **String** | 兴趣标签 | [optional] |
|
|
933
|
-
| **type** | **String** | 分类 | [optional] |
|
|
934
|
-
| **skip** | **Integer** | 跳过的记录数 | [optional][default to 0] |
|
|
935
|
-
| **take** | **Integer** | 获取的记录数 | [optional][default to 10] |
|
|
936
|
-
|
|
937
|
-
### Return type
|
|
938
|
-
|
|
939
|
-
[**UserFriendsNearByResultApiResponse**](UserFriendsNearByResultApiResponse.md)
|
|
940
|
-
|
|
941
|
-
### Authorization
|
|
942
|
-
|
|
943
|
-
[Bearer](../README.md#Bearer)
|
|
944
|
-
|
|
945
|
-
### HTTP request headers
|
|
946
|
-
|
|
947
|
-
- **Content-Type**: Not defined
|
|
948
|
-
- **Accept**: application/json
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
## user_import
|
|
952
|
-
|
|
953
|
-
> <BooleanApiResponse> user_import(app_key, opts)
|
|
954
|
-
|
|
955
|
-
导入用户数据
|
|
956
|
-
|
|
957
|
-
导入用户数据
|
|
958
|
-
|
|
959
|
-
### Examples
|
|
960
|
-
|
|
961
|
-
```ruby
|
|
962
|
-
require 'time'
|
|
963
|
-
require 'zsgf_client'
|
|
964
|
-
# setup authorization
|
|
965
|
-
ZSGFClient.configure do |config|
|
|
966
|
-
# Configure Bearer authorization: Bearer
|
|
967
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
968
|
-
end
|
|
969
|
-
|
|
970
|
-
api_instance = ZSGFClient::UserApi.new
|
|
971
|
-
app_key = 'app_key_example' # String |
|
|
972
|
-
opts = {
|
|
973
|
-
check: true, # Boolean | 是否进行检查
|
|
974
|
-
file: File.new('/path/to/some/file') # File | 导入的文件
|
|
975
|
-
}
|
|
976
|
-
|
|
977
|
-
begin
|
|
978
|
-
# 导入用户数据
|
|
979
|
-
result = api_instance.user_import(app_key, opts)
|
|
980
|
-
p result
|
|
981
|
-
rescue ZSGFClient::ApiError => e
|
|
982
|
-
puts "Error when calling UserApi->user_import: #{e}"
|
|
983
|
-
end
|
|
984
|
-
```
|
|
985
|
-
|
|
986
|
-
#### Using the user_import_with_http_info variant
|
|
987
|
-
|
|
988
|
-
This returns an Array which contains the response data, status code and headers.
|
|
989
|
-
|
|
990
|
-
> <Array(<BooleanApiResponse>, Integer, Hash)> user_import_with_http_info(app_key, opts)
|
|
991
|
-
|
|
992
|
-
```ruby
|
|
993
|
-
begin
|
|
994
|
-
# 导入用户数据
|
|
995
|
-
data, status_code, headers = api_instance.user_import_with_http_info(app_key, opts)
|
|
996
|
-
p status_code # => 2xx
|
|
997
|
-
p headers # => { ... }
|
|
998
|
-
p data # => <BooleanApiResponse>
|
|
999
|
-
rescue ZSGFClient::ApiError => e
|
|
1000
|
-
puts "Error when calling UserApi->user_import_with_http_info: #{e}"
|
|
1001
|
-
end
|
|
1002
|
-
```
|
|
1003
|
-
|
|
1004
|
-
### Parameters
|
|
1005
|
-
|
|
1006
|
-
| Name | Type | Description | Notes |
|
|
1007
|
-
| ---- | ---- | ----------- | ----- |
|
|
1008
|
-
| **app_key** | **String** | | |
|
|
1009
|
-
| **check** | **Boolean** | 是否进行检查 | [optional] |
|
|
1010
|
-
| **file** | **File** | 导入的文件 | [optional] |
|
|
1011
|
-
|
|
1012
|
-
### Return type
|
|
1013
|
-
|
|
1014
|
-
[**BooleanApiResponse**](BooleanApiResponse.md)
|
|
1015
|
-
|
|
1016
|
-
### Authorization
|
|
1017
|
-
|
|
1018
|
-
[Bearer](../README.md#Bearer)
|
|
1019
|
-
|
|
1020
|
-
### HTTP request headers
|
|
1021
|
-
|
|
1022
|
-
- **Content-Type**: multipart/form-data
|
|
1023
|
-
- **Accept**: application/json
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
## user_location
|
|
1027
|
-
|
|
1028
|
-
> <GeoLocationModelApiResponse> user_location(id, app_key)
|
|
1029
|
-
|
|
1030
|
-
获取位置详情
|
|
1031
|
-
|
|
1032
|
-
根据位置ID获取位置详情
|
|
1033
|
-
|
|
1034
|
-
### Examples
|
|
1035
|
-
|
|
1036
|
-
```ruby
|
|
1037
|
-
require 'time'
|
|
1038
|
-
require 'zsgf_client'
|
|
1039
|
-
# setup authorization
|
|
1040
|
-
ZSGFClient.configure do |config|
|
|
1041
|
-
# Configure Bearer authorization: Bearer
|
|
1042
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1043
|
-
end
|
|
1044
|
-
|
|
1045
|
-
api_instance = ZSGFClient::UserApi.new
|
|
1046
|
-
id = 789 # Integer | 位置ID
|
|
1047
|
-
app_key = 'app_key_example' # String |
|
|
1048
|
-
|
|
1049
|
-
begin
|
|
1050
|
-
# 获取位置详情
|
|
1051
|
-
result = api_instance.user_location(id, app_key)
|
|
1052
|
-
p result
|
|
1053
|
-
rescue ZSGFClient::ApiError => e
|
|
1054
|
-
puts "Error when calling UserApi->user_location: #{e}"
|
|
1055
|
-
end
|
|
1056
|
-
```
|
|
1057
|
-
|
|
1058
|
-
#### Using the user_location_with_http_info variant
|
|
1059
|
-
|
|
1060
|
-
This returns an Array which contains the response data, status code and headers.
|
|
1061
|
-
|
|
1062
|
-
> <Array(<GeoLocationModelApiResponse>, Integer, Hash)> user_location_with_http_info(id, app_key)
|
|
1063
|
-
|
|
1064
|
-
```ruby
|
|
1065
|
-
begin
|
|
1066
|
-
# 获取位置详情
|
|
1067
|
-
data, status_code, headers = api_instance.user_location_with_http_info(id, app_key)
|
|
1068
|
-
p status_code # => 2xx
|
|
1069
|
-
p headers # => { ... }
|
|
1070
|
-
p data # => <GeoLocationModelApiResponse>
|
|
1071
|
-
rescue ZSGFClient::ApiError => e
|
|
1072
|
-
puts "Error when calling UserApi->user_location_with_http_info: #{e}"
|
|
1073
|
-
end
|
|
1074
|
-
```
|
|
1075
|
-
|
|
1076
|
-
### Parameters
|
|
1077
|
-
|
|
1078
|
-
| Name | Type | Description | Notes |
|
|
1079
|
-
| ---- | ---- | ----------- | ----- |
|
|
1080
|
-
| **id** | **Integer** | 位置ID | |
|
|
1081
|
-
| **app_key** | **String** | | |
|
|
1082
|
-
|
|
1083
|
-
### Return type
|
|
1084
|
-
|
|
1085
|
-
[**GeoLocationModelApiResponse**](GeoLocationModelApiResponse.md)
|
|
1086
|
-
|
|
1087
|
-
### Authorization
|
|
1088
|
-
|
|
1089
|
-
[Bearer](../README.md#Bearer)
|
|
1090
|
-
|
|
1091
|
-
### HTTP request headers
|
|
1092
|
-
|
|
1093
|
-
- **Content-Type**: Not defined
|
|
1094
|
-
- **Accept**: application/json
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
## user_location_delete
|
|
1098
|
-
|
|
1099
|
-
> <BooleanApiResponse> user_location_delete(id, app_key)
|
|
1100
|
-
|
|
1101
|
-
删除位置
|
|
1102
|
-
|
|
1103
|
-
根据位置ID删除位置信息
|
|
1104
|
-
|
|
1105
|
-
### Examples
|
|
1106
|
-
|
|
1107
|
-
```ruby
|
|
1108
|
-
require 'time'
|
|
1109
|
-
require 'zsgf_client'
|
|
1110
|
-
# setup authorization
|
|
1111
|
-
ZSGFClient.configure do |config|
|
|
1112
|
-
# Configure Bearer authorization: Bearer
|
|
1113
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1114
|
-
end
|
|
1115
|
-
|
|
1116
|
-
api_instance = ZSGFClient::UserApi.new
|
|
1117
|
-
id = 789 # Integer | 位置ID
|
|
1118
|
-
app_key = 'app_key_example' # String |
|
|
1119
|
-
|
|
1120
|
-
begin
|
|
1121
|
-
# 删除位置
|
|
1122
|
-
result = api_instance.user_location_delete(id, app_key)
|
|
1123
|
-
p result
|
|
1124
|
-
rescue ZSGFClient::ApiError => e
|
|
1125
|
-
puts "Error when calling UserApi->user_location_delete: #{e}"
|
|
1126
|
-
end
|
|
1127
|
-
```
|
|
1128
|
-
|
|
1129
|
-
#### Using the user_location_delete_with_http_info variant
|
|
1130
|
-
|
|
1131
|
-
This returns an Array which contains the response data, status code and headers.
|
|
1132
|
-
|
|
1133
|
-
> <Array(<BooleanApiResponse>, Integer, Hash)> user_location_delete_with_http_info(id, app_key)
|
|
1134
|
-
|
|
1135
|
-
```ruby
|
|
1136
|
-
begin
|
|
1137
|
-
# 删除位置
|
|
1138
|
-
data, status_code, headers = api_instance.user_location_delete_with_http_info(id, app_key)
|
|
1139
|
-
p status_code # => 2xx
|
|
1140
|
-
p headers # => { ... }
|
|
1141
|
-
p data # => <BooleanApiResponse>
|
|
1142
|
-
rescue ZSGFClient::ApiError => e
|
|
1143
|
-
puts "Error when calling UserApi->user_location_delete_with_http_info: #{e}"
|
|
1144
|
-
end
|
|
1145
|
-
```
|
|
1146
|
-
|
|
1147
|
-
### Parameters
|
|
1148
|
-
|
|
1149
|
-
| Name | Type | Description | Notes |
|
|
1150
|
-
| ---- | ---- | ----------- | ----- |
|
|
1151
|
-
| **id** | **Integer** | 位置ID | |
|
|
1152
|
-
| **app_key** | **String** | | |
|
|
1153
|
-
|
|
1154
|
-
### Return type
|
|
1155
|
-
|
|
1156
|
-
[**BooleanApiResponse**](BooleanApiResponse.md)
|
|
1157
|
-
|
|
1158
|
-
### Authorization
|
|
1159
|
-
|
|
1160
|
-
[Bearer](../README.md#Bearer)
|
|
1161
|
-
|
|
1162
|
-
### HTTP request headers
|
|
1163
|
-
|
|
1164
|
-
- **Content-Type**: Not defined
|
|
1165
|
-
- **Accept**: application/json
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
## user_location_post
|
|
1169
|
-
|
|
1170
|
-
> <UserLocationPostResultApiResponse> user_location_post(app_key, opts)
|
|
1171
|
-
|
|
1172
|
-
添加位置
|
|
1173
|
-
|
|
1174
|
-
添加新的位置信息
|
|
1175
|
-
|
|
1176
|
-
### Examples
|
|
1177
|
-
|
|
1178
|
-
```ruby
|
|
1179
|
-
require 'time'
|
|
1180
|
-
require 'zsgf_client'
|
|
1181
|
-
# setup authorization
|
|
1182
|
-
ZSGFClient.configure do |config|
|
|
1183
|
-
# Configure Bearer authorization: Bearer
|
|
1184
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1185
|
-
end
|
|
1186
|
-
|
|
1187
|
-
api_instance = ZSGFClient::UserApi.new
|
|
1188
|
-
app_key = 'app_key_example' # String |
|
|
1189
|
-
opts = {
|
|
1190
|
-
geo_location_model: ZSGFClient::GeoLocationModel.new # GeoLocationModel | 位置信息
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
|
-
begin
|
|
1194
|
-
# 添加位置
|
|
1195
|
-
result = api_instance.user_location_post(app_key, opts)
|
|
1196
|
-
p result
|
|
1197
|
-
rescue ZSGFClient::ApiError => e
|
|
1198
|
-
puts "Error when calling UserApi->user_location_post: #{e}"
|
|
1199
|
-
end
|
|
1200
|
-
```
|
|
1201
|
-
|
|
1202
|
-
#### Using the user_location_post_with_http_info variant
|
|
1203
|
-
|
|
1204
|
-
This returns an Array which contains the response data, status code and headers.
|
|
1205
|
-
|
|
1206
|
-
> <Array(<UserLocationPostResultApiResponse>, Integer, Hash)> user_location_post_with_http_info(app_key, opts)
|
|
1207
|
-
|
|
1208
|
-
```ruby
|
|
1209
|
-
begin
|
|
1210
|
-
# 添加位置
|
|
1211
|
-
data, status_code, headers = api_instance.user_location_post_with_http_info(app_key, opts)
|
|
1212
|
-
p status_code # => 2xx
|
|
1213
|
-
p headers # => { ... }
|
|
1214
|
-
p data # => <UserLocationPostResultApiResponse>
|
|
1215
|
-
rescue ZSGFClient::ApiError => e
|
|
1216
|
-
puts "Error when calling UserApi->user_location_post_with_http_info: #{e}"
|
|
1217
|
-
end
|
|
1218
|
-
```
|
|
1219
|
-
|
|
1220
|
-
### Parameters
|
|
1221
|
-
|
|
1222
|
-
| Name | Type | Description | Notes |
|
|
1223
|
-
| ---- | ---- | ----------- | ----- |
|
|
1224
|
-
| **app_key** | **String** | | |
|
|
1225
|
-
| **geo_location_model** | [**GeoLocationModel**](GeoLocationModel.md) | 位置信息 | [optional] |
|
|
1226
|
-
|
|
1227
|
-
### Return type
|
|
1228
|
-
|
|
1229
|
-
[**UserLocationPostResultApiResponse**](UserLocationPostResultApiResponse.md)
|
|
1230
|
-
|
|
1231
|
-
### Authorization
|
|
1232
|
-
|
|
1233
|
-
[Bearer](../README.md#Bearer)
|
|
1234
|
-
|
|
1235
|
-
### HTTP request headers
|
|
1236
|
-
|
|
1237
|
-
- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json
|
|
1238
|
-
- **Accept**: application/json
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
## user_location_put
|
|
1242
|
-
|
|
1243
|
-
> <BooleanApiResponse> user_location_put(id, app_key, opts)
|
|
1244
|
-
|
|
1245
|
-
更新位置
|
|
1246
|
-
|
|
1247
|
-
根据位置ID更新位置信息
|
|
1248
|
-
|
|
1249
|
-
### Examples
|
|
1250
|
-
|
|
1251
|
-
```ruby
|
|
1252
|
-
require 'time'
|
|
1253
|
-
require 'zsgf_client'
|
|
1254
|
-
# setup authorization
|
|
1255
|
-
ZSGFClient.configure do |config|
|
|
1256
|
-
# Configure Bearer authorization: Bearer
|
|
1257
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1258
|
-
end
|
|
1259
|
-
|
|
1260
|
-
api_instance = ZSGFClient::UserApi.new
|
|
1261
|
-
id = 789 # Integer | 位置ID
|
|
1262
|
-
app_key = 'app_key_example' # String |
|
|
1263
|
-
opts = {
|
|
1264
|
-
geo_location_model: ZSGFClient::GeoLocationModel.new # GeoLocationModel | 位置信息
|
|
1265
|
-
}
|
|
1266
|
-
|
|
1267
|
-
begin
|
|
1268
|
-
# 更新位置
|
|
1269
|
-
result = api_instance.user_location_put(id, app_key, opts)
|
|
1270
|
-
p result
|
|
1271
|
-
rescue ZSGFClient::ApiError => e
|
|
1272
|
-
puts "Error when calling UserApi->user_location_put: #{e}"
|
|
1273
|
-
end
|
|
1274
|
-
```
|
|
1275
|
-
|
|
1276
|
-
#### Using the user_location_put_with_http_info variant
|
|
1277
|
-
|
|
1278
|
-
This returns an Array which contains the response data, status code and headers.
|
|
1279
|
-
|
|
1280
|
-
> <Array(<BooleanApiResponse>, Integer, Hash)> user_location_put_with_http_info(id, app_key, opts)
|
|
1281
|
-
|
|
1282
|
-
```ruby
|
|
1283
|
-
begin
|
|
1284
|
-
# 更新位置
|
|
1285
|
-
data, status_code, headers = api_instance.user_location_put_with_http_info(id, app_key, opts)
|
|
1286
|
-
p status_code # => 2xx
|
|
1287
|
-
p headers # => { ... }
|
|
1288
|
-
p data # => <BooleanApiResponse>
|
|
1289
|
-
rescue ZSGFClient::ApiError => e
|
|
1290
|
-
puts "Error when calling UserApi->user_location_put_with_http_info: #{e}"
|
|
1291
|
-
end
|
|
1292
|
-
```
|
|
1293
|
-
|
|
1294
|
-
### Parameters
|
|
1295
|
-
|
|
1296
|
-
| Name | Type | Description | Notes |
|
|
1297
|
-
| ---- | ---- | ----------- | ----- |
|
|
1298
|
-
| **id** | **Integer** | 位置ID | |
|
|
1299
|
-
| **app_key** | **String** | | |
|
|
1300
|
-
| **geo_location_model** | [**GeoLocationModel**](GeoLocationModel.md) | 位置信息 | [optional] |
|
|
1301
|
-
|
|
1302
|
-
### Return type
|
|
1303
|
-
|
|
1304
|
-
[**BooleanApiResponse**](BooleanApiResponse.md)
|
|
1305
|
-
|
|
1306
|
-
### Authorization
|
|
1307
|
-
|
|
1308
|
-
[Bearer](../README.md#Bearer)
|
|
1309
|
-
|
|
1310
|
-
### HTTP request headers
|
|
1311
|
-
|
|
1312
|
-
- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json
|
|
1313
|
-
- **Accept**: application/json
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
## user_locations
|
|
1317
|
-
|
|
1318
|
-
> <UserLocationsResultApiResponse> user_locations(app_key, opts)
|
|
1319
|
-
|
|
1320
|
-
获取位置列表
|
|
1321
|
-
|
|
1322
|
-
根据条件获取位置列表
|
|
1323
|
-
|
|
1324
|
-
### Examples
|
|
1325
|
-
|
|
1326
|
-
```ruby
|
|
1327
|
-
require 'time'
|
|
1328
|
-
require 'zsgf_client'
|
|
1329
|
-
# setup authorization
|
|
1330
|
-
ZSGFClient.configure do |config|
|
|
1331
|
-
# Configure Bearer authorization: Bearer
|
|
1332
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1333
|
-
end
|
|
1334
|
-
|
|
1335
|
-
api_instance = ZSGFClient::UserApi.new
|
|
1336
|
-
app_key = 'app_key_example' # String |
|
|
1337
|
-
opts = {
|
|
1338
|
-
tag: 'tag_example', # String | 标签
|
|
1339
|
-
type: 'type_example', # String | 分类
|
|
1340
|
-
x: 1.2, # Float | 纬度
|
|
1341
|
-
y: 1.2, # Float | 经度
|
|
1342
|
-
sphere: 789, # Integer | 附近距离,单位:米
|
|
1343
|
-
skip: 56, # Integer | 跳过的记录数
|
|
1344
|
-
take: 56 # Integer | 获取的记录数
|
|
1345
|
-
}
|
|
1346
|
-
|
|
1347
|
-
begin
|
|
1348
|
-
# 获取位置列表
|
|
1349
|
-
result = api_instance.user_locations(app_key, opts)
|
|
1350
|
-
p result
|
|
1351
|
-
rescue ZSGFClient::ApiError => e
|
|
1352
|
-
puts "Error when calling UserApi->user_locations: #{e}"
|
|
1353
|
-
end
|
|
1354
|
-
```
|
|
1355
|
-
|
|
1356
|
-
#### Using the user_locations_with_http_info variant
|
|
1357
|
-
|
|
1358
|
-
This returns an Array which contains the response data, status code and headers.
|
|
1359
|
-
|
|
1360
|
-
> <Array(<UserLocationsResultApiResponse>, Integer, Hash)> user_locations_with_http_info(app_key, opts)
|
|
1361
|
-
|
|
1362
|
-
```ruby
|
|
1363
|
-
begin
|
|
1364
|
-
# 获取位置列表
|
|
1365
|
-
data, status_code, headers = api_instance.user_locations_with_http_info(app_key, opts)
|
|
1366
|
-
p status_code # => 2xx
|
|
1367
|
-
p headers # => { ... }
|
|
1368
|
-
p data # => <UserLocationsResultApiResponse>
|
|
1369
|
-
rescue ZSGFClient::ApiError => e
|
|
1370
|
-
puts "Error when calling UserApi->user_locations_with_http_info: #{e}"
|
|
1371
|
-
end
|
|
1372
|
-
```
|
|
1373
|
-
|
|
1374
|
-
### Parameters
|
|
1375
|
-
|
|
1376
|
-
| Name | Type | Description | Notes |
|
|
1377
|
-
| ---- | ---- | ----------- | ----- |
|
|
1378
|
-
| **app_key** | **String** | | |
|
|
1379
|
-
| **tag** | **String** | 标签 | [optional] |
|
|
1380
|
-
| **type** | **String** | 分类 | [optional] |
|
|
1381
|
-
| **x** | **Float** | 纬度 | [optional] |
|
|
1382
|
-
| **y** | **Float** | 经度 | [optional] |
|
|
1383
|
-
| **sphere** | **Integer** | 附近距离,单位:米 | [optional] |
|
|
1384
|
-
| **skip** | **Integer** | 跳过的记录数 | [optional] |
|
|
1385
|
-
| **take** | **Integer** | 获取的记录数 | [optional][default to 10] |
|
|
1386
|
-
|
|
1387
|
-
### Return type
|
|
1388
|
-
|
|
1389
|
-
[**UserLocationsResultApiResponse**](UserLocationsResultApiResponse.md)
|
|
1390
|
-
|
|
1391
|
-
### Authorization
|
|
1392
|
-
|
|
1393
|
-
[Bearer](../README.md#Bearer)
|
|
1394
|
-
|
|
1395
|
-
### HTTP request headers
|
|
1396
|
-
|
|
1397
|
-
- **Content-Type**: Not defined
|
|
1398
|
-
- **Accept**: application/json
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
## user_mutual_followers
|
|
1402
|
-
|
|
1403
|
-
> <UserMutualFollowersResultApiResponse> user_mutual_followers(app_key, opts)
|
|
1404
|
-
|
|
1405
|
-
有共同粉丝的用户推荐
|
|
1406
|
-
|
|
1407
|
-
推荐有共同粉丝的用户
|
|
1408
|
-
|
|
1409
|
-
### Examples
|
|
1410
|
-
|
|
1411
|
-
```ruby
|
|
1412
|
-
require 'time'
|
|
1413
|
-
require 'zsgf_client'
|
|
1414
|
-
# setup authorization
|
|
1415
|
-
ZSGFClient.configure do |config|
|
|
1416
|
-
# Configure Bearer authorization: Bearer
|
|
1417
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1418
|
-
end
|
|
1419
|
-
|
|
1420
|
-
api_instance = ZSGFClient::UserApi.new
|
|
1421
|
-
app_key = 'app_key_example' # String |
|
|
1422
|
-
opts = {
|
|
1423
|
-
skip: 56, # Integer | 跳过的记录数
|
|
1424
|
-
take: 56 # Integer | 获取的记录数
|
|
1425
|
-
}
|
|
1426
|
-
|
|
1427
|
-
begin
|
|
1428
|
-
# 有共同粉丝的用户推荐
|
|
1429
|
-
result = api_instance.user_mutual_followers(app_key, opts)
|
|
1430
|
-
p result
|
|
1431
|
-
rescue ZSGFClient::ApiError => e
|
|
1432
|
-
puts "Error when calling UserApi->user_mutual_followers: #{e}"
|
|
1433
|
-
end
|
|
1434
|
-
```
|
|
1435
|
-
|
|
1436
|
-
#### Using the user_mutual_followers_with_http_info variant
|
|
1437
|
-
|
|
1438
|
-
This returns an Array which contains the response data, status code and headers.
|
|
1439
|
-
|
|
1440
|
-
> <Array(<UserMutualFollowersResultApiResponse>, Integer, Hash)> user_mutual_followers_with_http_info(app_key, opts)
|
|
1441
|
-
|
|
1442
|
-
```ruby
|
|
1443
|
-
begin
|
|
1444
|
-
# 有共同粉丝的用户推荐
|
|
1445
|
-
data, status_code, headers = api_instance.user_mutual_followers_with_http_info(app_key, opts)
|
|
1446
|
-
p status_code # => 2xx
|
|
1447
|
-
p headers # => { ... }
|
|
1448
|
-
p data # => <UserMutualFollowersResultApiResponse>
|
|
1449
|
-
rescue ZSGFClient::ApiError => e
|
|
1450
|
-
puts "Error when calling UserApi->user_mutual_followers_with_http_info: #{e}"
|
|
1451
|
-
end
|
|
1452
|
-
```
|
|
1453
|
-
|
|
1454
|
-
### Parameters
|
|
1455
|
-
|
|
1456
|
-
| Name | Type | Description | Notes |
|
|
1457
|
-
| ---- | ---- | ----------- | ----- |
|
|
1458
|
-
| **app_key** | **String** | | |
|
|
1459
|
-
| **skip** | **Integer** | 跳过的记录数 | [optional][default to 0] |
|
|
1460
|
-
| **take** | **Integer** | 获取的记录数 | [optional][default to 10] |
|
|
1461
|
-
|
|
1462
|
-
### Return type
|
|
1463
|
-
|
|
1464
|
-
[**UserMutualFollowersResultApiResponse**](UserMutualFollowersResultApiResponse.md)
|
|
1465
|
-
|
|
1466
|
-
### Authorization
|
|
1467
|
-
|
|
1468
|
-
[Bearer](../README.md#Bearer)
|
|
1469
|
-
|
|
1470
|
-
### HTTP request headers
|
|
1471
|
-
|
|
1472
|
-
- **Content-Type**: Not defined
|
|
1473
|
-
- **Accept**: application/json
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
## user_mutual_followings
|
|
1477
|
-
|
|
1478
|
-
> <UserMutualFollowingsResultApiResponse> user_mutual_followings(app_key, opts)
|
|
1479
|
-
|
|
1480
|
-
有共同关注的用户推荐
|
|
1481
|
-
|
|
1482
|
-
推荐有共同关注的用户
|
|
1483
|
-
|
|
1484
|
-
### Examples
|
|
1485
|
-
|
|
1486
|
-
```ruby
|
|
1487
|
-
require 'time'
|
|
1488
|
-
require 'zsgf_client'
|
|
1489
|
-
# setup authorization
|
|
1490
|
-
ZSGFClient.configure do |config|
|
|
1491
|
-
# Configure Bearer authorization: Bearer
|
|
1492
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1493
|
-
end
|
|
1494
|
-
|
|
1495
|
-
api_instance = ZSGFClient::UserApi.new
|
|
1496
|
-
app_key = 'app_key_example' # String |
|
|
1497
|
-
opts = {
|
|
1498
|
-
skip: 56, # Integer | 跳过的记录数
|
|
1499
|
-
take: 56 # Integer | 获取的记录数
|
|
1500
|
-
}
|
|
1501
|
-
|
|
1502
|
-
begin
|
|
1503
|
-
# 有共同关注的用户推荐
|
|
1504
|
-
result = api_instance.user_mutual_followings(app_key, opts)
|
|
1505
|
-
p result
|
|
1506
|
-
rescue ZSGFClient::ApiError => e
|
|
1507
|
-
puts "Error when calling UserApi->user_mutual_followings: #{e}"
|
|
1508
|
-
end
|
|
1509
|
-
```
|
|
1510
|
-
|
|
1511
|
-
#### Using the user_mutual_followings_with_http_info variant
|
|
1512
|
-
|
|
1513
|
-
This returns an Array which contains the response data, status code and headers.
|
|
1514
|
-
|
|
1515
|
-
> <Array(<UserMutualFollowingsResultApiResponse>, Integer, Hash)> user_mutual_followings_with_http_info(app_key, opts)
|
|
1516
|
-
|
|
1517
|
-
```ruby
|
|
1518
|
-
begin
|
|
1519
|
-
# 有共同关注的用户推荐
|
|
1520
|
-
data, status_code, headers = api_instance.user_mutual_followings_with_http_info(app_key, opts)
|
|
1521
|
-
p status_code # => 2xx
|
|
1522
|
-
p headers # => { ... }
|
|
1523
|
-
p data # => <UserMutualFollowingsResultApiResponse>
|
|
1524
|
-
rescue ZSGFClient::ApiError => e
|
|
1525
|
-
puts "Error when calling UserApi->user_mutual_followings_with_http_info: #{e}"
|
|
1526
|
-
end
|
|
1527
|
-
```
|
|
1528
|
-
|
|
1529
|
-
### Parameters
|
|
1530
|
-
|
|
1531
|
-
| Name | Type | Description | Notes |
|
|
1532
|
-
| ---- | ---- | ----------- | ----- |
|
|
1533
|
-
| **app_key** | **String** | | |
|
|
1534
|
-
| **skip** | **Integer** | 跳过的记录数 | [optional][default to 0] |
|
|
1535
|
-
| **take** | **Integer** | 获取的记录数 | [optional][default to 10] |
|
|
1536
|
-
|
|
1537
|
-
### Return type
|
|
1538
|
-
|
|
1539
|
-
[**UserMutualFollowingsResultApiResponse**](UserMutualFollowingsResultApiResponse.md)
|
|
1540
|
-
|
|
1541
|
-
### Authorization
|
|
1542
|
-
|
|
1543
|
-
[Bearer](../README.md#Bearer)
|
|
1544
|
-
|
|
1545
|
-
### HTTP request headers
|
|
1546
|
-
|
|
1547
|
-
- **Content-Type**: Not defined
|
|
1548
|
-
- **Accept**: application/json
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
## user_o_auth_account_bind
|
|
1552
|
-
|
|
1553
|
-
> <BooleanApiResponse> user_o_auth_account_bind(app_key, opts)
|
|
1554
|
-
|
|
1555
|
-
外部账号 绑定
|
|
1556
|
-
|
|
1557
|
-
绑定外部账号
|
|
1558
|
-
|
|
1559
|
-
### Examples
|
|
1560
|
-
|
|
1561
|
-
```ruby
|
|
1562
|
-
require 'time'
|
|
1563
|
-
require 'zsgf_client'
|
|
1564
|
-
# setup authorization
|
|
1565
|
-
ZSGFClient.configure do |config|
|
|
1566
|
-
# Configure Bearer authorization: Bearer
|
|
1567
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1568
|
-
end
|
|
1569
|
-
|
|
1570
|
-
api_instance = ZSGFClient::UserApi.new
|
|
1571
|
-
app_key = 'app_key_example' # String |
|
|
1572
|
-
opts = {
|
|
1573
|
-
o_auth_account_bind_request: ZSGFClient::OAuthAccountBindRequest.new({union_id: 'union_id_example', platform: 'platform_example', platform_name: 'platform_name_example'}) # OAuthAccountBindRequest | 绑定请求参数
|
|
1574
|
-
}
|
|
1575
|
-
|
|
1576
|
-
begin
|
|
1577
|
-
# 外部账号 绑定
|
|
1578
|
-
result = api_instance.user_o_auth_account_bind(app_key, opts)
|
|
1579
|
-
p result
|
|
1580
|
-
rescue ZSGFClient::ApiError => e
|
|
1581
|
-
puts "Error when calling UserApi->user_o_auth_account_bind: #{e}"
|
|
1582
|
-
end
|
|
1583
|
-
```
|
|
1584
|
-
|
|
1585
|
-
#### Using the user_o_auth_account_bind_with_http_info variant
|
|
1586
|
-
|
|
1587
|
-
This returns an Array which contains the response data, status code and headers.
|
|
1588
|
-
|
|
1589
|
-
> <Array(<BooleanApiResponse>, Integer, Hash)> user_o_auth_account_bind_with_http_info(app_key, opts)
|
|
1590
|
-
|
|
1591
|
-
```ruby
|
|
1592
|
-
begin
|
|
1593
|
-
# 外部账号 绑定
|
|
1594
|
-
data, status_code, headers = api_instance.user_o_auth_account_bind_with_http_info(app_key, opts)
|
|
1595
|
-
p status_code # => 2xx
|
|
1596
|
-
p headers # => { ... }
|
|
1597
|
-
p data # => <BooleanApiResponse>
|
|
1598
|
-
rescue ZSGFClient::ApiError => e
|
|
1599
|
-
puts "Error when calling UserApi->user_o_auth_account_bind_with_http_info: #{e}"
|
|
1600
|
-
end
|
|
1601
|
-
```
|
|
1602
|
-
|
|
1603
|
-
### Parameters
|
|
1604
|
-
|
|
1605
|
-
| Name | Type | Description | Notes |
|
|
1606
|
-
| ---- | ---- | ----------- | ----- |
|
|
1607
|
-
| **app_key** | **String** | | |
|
|
1608
|
-
| **o_auth_account_bind_request** | [**OAuthAccountBindRequest**](OAuthAccountBindRequest.md) | 绑定请求参数 | [optional] |
|
|
1609
|
-
|
|
1610
|
-
### Return type
|
|
1611
|
-
|
|
1612
|
-
[**BooleanApiResponse**](BooleanApiResponse.md)
|
|
1613
|
-
|
|
1614
|
-
### Authorization
|
|
1615
|
-
|
|
1616
|
-
[Bearer](../README.md#Bearer)
|
|
1617
|
-
|
|
1618
|
-
### HTTP request headers
|
|
1619
|
-
|
|
1620
|
-
- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json
|
|
1621
|
-
- **Accept**: application/json
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
## user_o_auth_account_sign_in
|
|
1625
|
-
|
|
1626
|
-
> <TokenModelApiResponse> user_o_auth_account_sign_in(app_key, opts)
|
|
1627
|
-
|
|
1628
|
-
外部账号 登录
|
|
1629
|
-
|
|
1630
|
-
使用外部账号进行登录
|
|
1631
|
-
|
|
1632
|
-
### Examples
|
|
1633
|
-
|
|
1634
|
-
```ruby
|
|
1635
|
-
require 'time'
|
|
1636
|
-
require 'zsgf_client'
|
|
1637
|
-
# setup authorization
|
|
1638
|
-
ZSGFClient.configure do |config|
|
|
1639
|
-
# Configure Bearer authorization: Bearer
|
|
1640
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1641
|
-
end
|
|
1642
|
-
|
|
1643
|
-
api_instance = ZSGFClient::UserApi.new
|
|
1644
|
-
app_key = 'app_key_example' # String |
|
|
1645
|
-
opts = {
|
|
1646
|
-
o_auth_account_sign_in_request: ZSGFClient::OAuthAccountSignInRequest.new({union_id: 'union_id_example', platform: 'platform_example'}) # OAuthAccountSignInRequest | 登录请求参数
|
|
1647
|
-
}
|
|
1648
|
-
|
|
1649
|
-
begin
|
|
1650
|
-
# 外部账号 登录
|
|
1651
|
-
result = api_instance.user_o_auth_account_sign_in(app_key, opts)
|
|
1652
|
-
p result
|
|
1653
|
-
rescue ZSGFClient::ApiError => e
|
|
1654
|
-
puts "Error when calling UserApi->user_o_auth_account_sign_in: #{e}"
|
|
1655
|
-
end
|
|
1656
|
-
```
|
|
1657
|
-
|
|
1658
|
-
#### Using the user_o_auth_account_sign_in_with_http_info variant
|
|
1659
|
-
|
|
1660
|
-
This returns an Array which contains the response data, status code and headers.
|
|
1661
|
-
|
|
1662
|
-
> <Array(<TokenModelApiResponse>, Integer, Hash)> user_o_auth_account_sign_in_with_http_info(app_key, opts)
|
|
1663
|
-
|
|
1664
|
-
```ruby
|
|
1665
|
-
begin
|
|
1666
|
-
# 外部账号 登录
|
|
1667
|
-
data, status_code, headers = api_instance.user_o_auth_account_sign_in_with_http_info(app_key, opts)
|
|
1668
|
-
p status_code # => 2xx
|
|
1669
|
-
p headers # => { ... }
|
|
1670
|
-
p data # => <TokenModelApiResponse>
|
|
1671
|
-
rescue ZSGFClient::ApiError => e
|
|
1672
|
-
puts "Error when calling UserApi->user_o_auth_account_sign_in_with_http_info: #{e}"
|
|
1673
|
-
end
|
|
1674
|
-
```
|
|
1675
|
-
|
|
1676
|
-
### Parameters
|
|
1677
|
-
|
|
1678
|
-
| Name | Type | Description | Notes |
|
|
1679
|
-
| ---- | ---- | ----------- | ----- |
|
|
1680
|
-
| **app_key** | **String** | | |
|
|
1681
|
-
| **o_auth_account_sign_in_request** | [**OAuthAccountSignInRequest**](OAuthAccountSignInRequest.md) | 登录请求参数 | [optional] |
|
|
1682
|
-
|
|
1683
|
-
### Return type
|
|
1684
|
-
|
|
1685
|
-
[**TokenModelApiResponse**](TokenModelApiResponse.md)
|
|
1686
|
-
|
|
1687
|
-
### Authorization
|
|
1688
|
-
|
|
1689
|
-
[Bearer](../README.md#Bearer)
|
|
1690
|
-
|
|
1691
|
-
### HTTP request headers
|
|
1692
|
-
|
|
1693
|
-
- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json
|
|
1694
|
-
- **Accept**: application/json
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
## user_o_auth_accounts
|
|
1698
|
-
|
|
1699
|
-
> <UserLoginsListApiResponse> user_o_auth_accounts(app_key)
|
|
1700
|
-
|
|
1701
|
-
外部账号 绑定列表
|
|
1702
|
-
|
|
1703
|
-
获取外部账号绑定列表
|
|
1704
|
-
|
|
1705
|
-
### Examples
|
|
1706
|
-
|
|
1707
|
-
```ruby
|
|
1708
|
-
require 'time'
|
|
1709
|
-
require 'zsgf_client'
|
|
1710
|
-
# setup authorization
|
|
1711
|
-
ZSGFClient.configure do |config|
|
|
1712
|
-
# Configure Bearer authorization: Bearer
|
|
1713
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1714
|
-
end
|
|
1715
|
-
|
|
1716
|
-
api_instance = ZSGFClient::UserApi.new
|
|
1717
|
-
app_key = 'app_key_example' # String |
|
|
1718
|
-
|
|
1719
|
-
begin
|
|
1720
|
-
# 外部账号 绑定列表
|
|
1721
|
-
result = api_instance.user_o_auth_accounts(app_key)
|
|
1722
|
-
p result
|
|
1723
|
-
rescue ZSGFClient::ApiError => e
|
|
1724
|
-
puts "Error when calling UserApi->user_o_auth_accounts: #{e}"
|
|
1725
|
-
end
|
|
1726
|
-
```
|
|
1727
|
-
|
|
1728
|
-
#### Using the user_o_auth_accounts_with_http_info variant
|
|
1729
|
-
|
|
1730
|
-
This returns an Array which contains the response data, status code and headers.
|
|
1731
|
-
|
|
1732
|
-
> <Array(<UserLoginsListApiResponse>, Integer, Hash)> user_o_auth_accounts_with_http_info(app_key)
|
|
1733
|
-
|
|
1734
|
-
```ruby
|
|
1735
|
-
begin
|
|
1736
|
-
# 外部账号 绑定列表
|
|
1737
|
-
data, status_code, headers = api_instance.user_o_auth_accounts_with_http_info(app_key)
|
|
1738
|
-
p status_code # => 2xx
|
|
1739
|
-
p headers # => { ... }
|
|
1740
|
-
p data # => <UserLoginsListApiResponse>
|
|
1741
|
-
rescue ZSGFClient::ApiError => e
|
|
1742
|
-
puts "Error when calling UserApi->user_o_auth_accounts_with_http_info: #{e}"
|
|
1743
|
-
end
|
|
1744
|
-
```
|
|
1745
|
-
|
|
1746
|
-
### Parameters
|
|
1747
|
-
|
|
1748
|
-
| Name | Type | Description | Notes |
|
|
1749
|
-
| ---- | ---- | ----------- | ----- |
|
|
1750
|
-
| **app_key** | **String** | | |
|
|
1751
|
-
|
|
1752
|
-
### Return type
|
|
1753
|
-
|
|
1754
|
-
[**UserLoginsListApiResponse**](UserLoginsListApiResponse.md)
|
|
1755
|
-
|
|
1756
|
-
### Authorization
|
|
1757
|
-
|
|
1758
|
-
[Bearer](../README.md#Bearer)
|
|
1759
|
-
|
|
1760
|
-
### HTTP request headers
|
|
1761
|
-
|
|
1762
|
-
- **Content-Type**: Not defined
|
|
1763
|
-
- **Accept**: application/json
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
## user_o_auth_accounts_put_bind
|
|
1767
|
-
|
|
1768
|
-
> <BooleanApiResponse> user_o_auth_accounts_put_bind(id, app_key, opts)
|
|
1769
|
-
|
|
1770
|
-
外部账号 更新绑定
|
|
1771
|
-
|
|
1772
|
-
更新外部账号绑定信息
|
|
1773
|
-
|
|
1774
|
-
### Examples
|
|
1775
|
-
|
|
1776
|
-
```ruby
|
|
1777
|
-
require 'time'
|
|
1778
|
-
require 'zsgf_client'
|
|
1779
|
-
# setup authorization
|
|
1780
|
-
ZSGFClient.configure do |config|
|
|
1781
|
-
# Configure Bearer authorization: Bearer
|
|
1782
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1783
|
-
end
|
|
1784
|
-
|
|
1785
|
-
api_instance = ZSGFClient::UserApi.new
|
|
1786
|
-
id = 789 # Integer | 绑定ID
|
|
1787
|
-
app_key = 'app_key_example' # String |
|
|
1788
|
-
opts = {
|
|
1789
|
-
o_auth_account_put_bind_request: ZSGFClient::OAuthAccountPutBindRequest.new # OAuthAccountPutBindRequest | 更新请求参数
|
|
1790
|
-
}
|
|
1791
|
-
|
|
1792
|
-
begin
|
|
1793
|
-
# 外部账号 更新绑定
|
|
1794
|
-
result = api_instance.user_o_auth_accounts_put_bind(id, app_key, opts)
|
|
1795
|
-
p result
|
|
1796
|
-
rescue ZSGFClient::ApiError => e
|
|
1797
|
-
puts "Error when calling UserApi->user_o_auth_accounts_put_bind: #{e}"
|
|
1798
|
-
end
|
|
1799
|
-
```
|
|
1800
|
-
|
|
1801
|
-
#### Using the user_o_auth_accounts_put_bind_with_http_info variant
|
|
1802
|
-
|
|
1803
|
-
This returns an Array which contains the response data, status code and headers.
|
|
1804
|
-
|
|
1805
|
-
> <Array(<BooleanApiResponse>, Integer, Hash)> user_o_auth_accounts_put_bind_with_http_info(id, app_key, opts)
|
|
1806
|
-
|
|
1807
|
-
```ruby
|
|
1808
|
-
begin
|
|
1809
|
-
# 外部账号 更新绑定
|
|
1810
|
-
data, status_code, headers = api_instance.user_o_auth_accounts_put_bind_with_http_info(id, app_key, opts)
|
|
1811
|
-
p status_code # => 2xx
|
|
1812
|
-
p headers # => { ... }
|
|
1813
|
-
p data # => <BooleanApiResponse>
|
|
1814
|
-
rescue ZSGFClient::ApiError => e
|
|
1815
|
-
puts "Error when calling UserApi->user_o_auth_accounts_put_bind_with_http_info: #{e}"
|
|
1816
|
-
end
|
|
1817
|
-
```
|
|
1818
|
-
|
|
1819
|
-
### Parameters
|
|
1820
|
-
|
|
1821
|
-
| Name | Type | Description | Notes |
|
|
1822
|
-
| ---- | ---- | ----------- | ----- |
|
|
1823
|
-
| **id** | **Integer** | 绑定ID | |
|
|
1824
|
-
| **app_key** | **String** | | |
|
|
1825
|
-
| **o_auth_account_put_bind_request** | [**OAuthAccountPutBindRequest**](OAuthAccountPutBindRequest.md) | 更新请求参数 | [optional] |
|
|
1826
|
-
|
|
1827
|
-
### Return type
|
|
1828
|
-
|
|
1829
|
-
[**BooleanApiResponse**](BooleanApiResponse.md)
|
|
1830
|
-
|
|
1831
|
-
### Authorization
|
|
1832
|
-
|
|
1833
|
-
[Bearer](../README.md#Bearer)
|
|
1834
|
-
|
|
1835
|
-
### HTTP request headers
|
|
1836
|
-
|
|
1837
|
-
- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json
|
|
1838
|
-
- **Accept**: application/json
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
## user_o_auth_accounts_un_bind
|
|
1842
|
-
|
|
1843
|
-
> <BooleanApiResponse> user_o_auth_accounts_un_bind(id, app_key)
|
|
1844
|
-
|
|
1845
|
-
外部账号 删除绑定
|
|
1846
|
-
|
|
1847
|
-
删除外部账号绑定
|
|
1848
|
-
|
|
1849
|
-
### Examples
|
|
1850
|
-
|
|
1851
|
-
```ruby
|
|
1852
|
-
require 'time'
|
|
1853
|
-
require 'zsgf_client'
|
|
1854
|
-
# setup authorization
|
|
1855
|
-
ZSGFClient.configure do |config|
|
|
1856
|
-
# Configure Bearer authorization: Bearer
|
|
1857
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1858
|
-
end
|
|
1859
|
-
|
|
1860
|
-
api_instance = ZSGFClient::UserApi.new
|
|
1861
|
-
id = 789 # Integer | 绑定ID
|
|
1862
|
-
app_key = 'app_key_example' # String |
|
|
1863
|
-
|
|
1864
|
-
begin
|
|
1865
|
-
# 外部账号 删除绑定
|
|
1866
|
-
result = api_instance.user_o_auth_accounts_un_bind(id, app_key)
|
|
1867
|
-
p result
|
|
1868
|
-
rescue ZSGFClient::ApiError => e
|
|
1869
|
-
puts "Error when calling UserApi->user_o_auth_accounts_un_bind: #{e}"
|
|
1870
|
-
end
|
|
1871
|
-
```
|
|
1872
|
-
|
|
1873
|
-
#### Using the user_o_auth_accounts_un_bind_with_http_info variant
|
|
1874
|
-
|
|
1875
|
-
This returns an Array which contains the response data, status code and headers.
|
|
1876
|
-
|
|
1877
|
-
> <Array(<BooleanApiResponse>, Integer, Hash)> user_o_auth_accounts_un_bind_with_http_info(id, app_key)
|
|
1878
|
-
|
|
1879
|
-
```ruby
|
|
1880
|
-
begin
|
|
1881
|
-
# 外部账号 删除绑定
|
|
1882
|
-
data, status_code, headers = api_instance.user_o_auth_accounts_un_bind_with_http_info(id, app_key)
|
|
1883
|
-
p status_code # => 2xx
|
|
1884
|
-
p headers # => { ... }
|
|
1885
|
-
p data # => <BooleanApiResponse>
|
|
1886
|
-
rescue ZSGFClient::ApiError => e
|
|
1887
|
-
puts "Error when calling UserApi->user_o_auth_accounts_un_bind_with_http_info: #{e}"
|
|
1888
|
-
end
|
|
1889
|
-
```
|
|
1890
|
-
|
|
1891
|
-
### Parameters
|
|
1892
|
-
|
|
1893
|
-
| Name | Type | Description | Notes |
|
|
1894
|
-
| ---- | ---- | ----------- | ----- |
|
|
1895
|
-
| **id** | **Integer** | 绑定ID | |
|
|
1896
|
-
| **app_key** | **String** | | |
|
|
1897
|
-
|
|
1898
|
-
### Return type
|
|
1899
|
-
|
|
1900
|
-
[**BooleanApiResponse**](BooleanApiResponse.md)
|
|
1901
|
-
|
|
1902
|
-
### Authorization
|
|
1903
|
-
|
|
1904
|
-
[Bearer](../README.md#Bearer)
|
|
1905
|
-
|
|
1906
|
-
### HTTP request headers
|
|
1907
|
-
|
|
1908
|
-
- **Content-Type**: Not defined
|
|
1909
|
-
- **Accept**: application/json
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
## user_phone_sign_in
|
|
1913
|
-
|
|
1914
|
-
> <TokenModelApiResponse> user_phone_sign_in(app_key, opts)
|
|
1915
|
-
|
|
1916
|
-
手机登录
|
|
1917
|
-
|
|
1918
|
-
使用手机号码进行登录
|
|
1919
|
-
|
|
1920
|
-
### Examples
|
|
1921
|
-
|
|
1922
|
-
```ruby
|
|
1923
|
-
require 'time'
|
|
1924
|
-
require 'zsgf_client'
|
|
1925
|
-
# setup authorization
|
|
1926
|
-
ZSGFClient.configure do |config|
|
|
1927
|
-
# Configure Bearer authorization: Bearer
|
|
1928
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1929
|
-
end
|
|
1930
|
-
|
|
1931
|
-
api_instance = ZSGFClient::UserApi.new
|
|
1932
|
-
app_key = 'app_key_example' # String |
|
|
1933
|
-
opts = {
|
|
1934
|
-
phone_sign_in_request: ZSGFClient::PhoneSignInRequest.new({phone: 'phone_example', verify_code: 'verify_code_example'}) # PhoneSignInRequest | 登录请求参数
|
|
1935
|
-
}
|
|
1936
|
-
|
|
1937
|
-
begin
|
|
1938
|
-
# 手机登录
|
|
1939
|
-
result = api_instance.user_phone_sign_in(app_key, opts)
|
|
1940
|
-
p result
|
|
1941
|
-
rescue ZSGFClient::ApiError => e
|
|
1942
|
-
puts "Error when calling UserApi->user_phone_sign_in: #{e}"
|
|
1943
|
-
end
|
|
1944
|
-
```
|
|
1945
|
-
|
|
1946
|
-
#### Using the user_phone_sign_in_with_http_info variant
|
|
1947
|
-
|
|
1948
|
-
This returns an Array which contains the response data, status code and headers.
|
|
1949
|
-
|
|
1950
|
-
> <Array(<TokenModelApiResponse>, Integer, Hash)> user_phone_sign_in_with_http_info(app_key, opts)
|
|
1951
|
-
|
|
1952
|
-
```ruby
|
|
1953
|
-
begin
|
|
1954
|
-
# 手机登录
|
|
1955
|
-
data, status_code, headers = api_instance.user_phone_sign_in_with_http_info(app_key, opts)
|
|
1956
|
-
p status_code # => 2xx
|
|
1957
|
-
p headers # => { ... }
|
|
1958
|
-
p data # => <TokenModelApiResponse>
|
|
69
|
+
p data # => <BooleanApiResponse>
|
|
1959
70
|
rescue ZSGFClient::ApiError => e
|
|
1960
|
-
puts "Error when calling UserApi->
|
|
71
|
+
puts "Error when calling UserApi->user_deactivate_hard_with_http_info: #{e}"
|
|
1961
72
|
end
|
|
1962
73
|
```
|
|
1963
74
|
|
|
@@ -1966,11 +77,10 @@ end
|
|
|
1966
77
|
| Name | Type | Description | Notes |
|
|
1967
78
|
| ---- | ---- | ----------- | ----- |
|
|
1968
79
|
| **app_key** | **String** | | |
|
|
1969
|
-
| **phone_sign_in_request** | [**PhoneSignInRequest**](PhoneSignInRequest.md) | 登录请求参数 | [optional] |
|
|
1970
80
|
|
|
1971
81
|
### Return type
|
|
1972
82
|
|
|
1973
|
-
[**
|
|
83
|
+
[**BooleanApiResponse**](BooleanApiResponse.md)
|
|
1974
84
|
|
|
1975
85
|
### Authorization
|
|
1976
86
|
|
|
@@ -1978,17 +88,17 @@ end
|
|
|
1978
88
|
|
|
1979
89
|
### HTTP request headers
|
|
1980
90
|
|
|
1981
|
-
- **Content-Type**:
|
|
91
|
+
- **Content-Type**: Not defined
|
|
1982
92
|
- **Accept**: application/json
|
|
1983
93
|
|
|
1984
94
|
|
|
1985
|
-
##
|
|
95
|
+
## user_email_sign_in
|
|
1986
96
|
|
|
1987
|
-
> <TokenModelApiResponse>
|
|
97
|
+
> <TokenModelApiResponse> user_email_sign_in(app_key, opts)
|
|
1988
98
|
|
|
1989
|
-
|
|
99
|
+
邮箱登录
|
|
1990
100
|
|
|
1991
|
-
|
|
101
|
+
使用邮箱进行登录
|
|
1992
102
|
|
|
1993
103
|
### Examples
|
|
1994
104
|
|
|
@@ -2004,33 +114,33 @@ end
|
|
|
2004
114
|
api_instance = ZSGFClient::UserApi.new
|
|
2005
115
|
app_key = 'app_key_example' # String |
|
|
2006
116
|
opts = {
|
|
2007
|
-
|
|
117
|
+
email_sign_in_request: ZSGFClient::EmailSignInRequest.new({email: 'email_example', verify_code: 'verify_code_example'}) # EmailSignInRequest | 登录请求参数
|
|
2008
118
|
}
|
|
2009
119
|
|
|
2010
120
|
begin
|
|
2011
|
-
#
|
|
2012
|
-
result = api_instance.
|
|
121
|
+
# 邮箱登录
|
|
122
|
+
result = api_instance.user_email_sign_in(app_key, opts)
|
|
2013
123
|
p result
|
|
2014
124
|
rescue ZSGFClient::ApiError => e
|
|
2015
|
-
puts "Error when calling UserApi->
|
|
125
|
+
puts "Error when calling UserApi->user_email_sign_in: #{e}"
|
|
2016
126
|
end
|
|
2017
127
|
```
|
|
2018
128
|
|
|
2019
|
-
#### Using the
|
|
129
|
+
#### Using the user_email_sign_in_with_http_info variant
|
|
2020
130
|
|
|
2021
131
|
This returns an Array which contains the response data, status code and headers.
|
|
2022
132
|
|
|
2023
|
-
> <Array(<TokenModelApiResponse>, Integer, Hash)>
|
|
133
|
+
> <Array(<TokenModelApiResponse>, Integer, Hash)> user_email_sign_in_with_http_info(app_key, opts)
|
|
2024
134
|
|
|
2025
135
|
```ruby
|
|
2026
136
|
begin
|
|
2027
|
-
#
|
|
2028
|
-
data, status_code, headers = api_instance.
|
|
137
|
+
# 邮箱登录
|
|
138
|
+
data, status_code, headers = api_instance.user_email_sign_in_with_http_info(app_key, opts)
|
|
2029
139
|
p status_code # => 2xx
|
|
2030
140
|
p headers # => { ... }
|
|
2031
141
|
p data # => <TokenModelApiResponse>
|
|
2032
142
|
rescue ZSGFClient::ApiError => e
|
|
2033
|
-
puts "Error when calling UserApi->
|
|
143
|
+
puts "Error when calling UserApi->user_email_sign_in_with_http_info: #{e}"
|
|
2034
144
|
end
|
|
2035
145
|
```
|
|
2036
146
|
|
|
@@ -2039,7 +149,7 @@ end
|
|
|
2039
149
|
| Name | Type | Description | Notes |
|
|
2040
150
|
| ---- | ---- | ----------- | ----- |
|
|
2041
151
|
| **app_key** | **String** | | |
|
|
2042
|
-
| **
|
|
152
|
+
| **email_sign_in_request** | [**EmailSignInRequest**](EmailSignInRequest.md) | 登录请求参数 | [optional] |
|
|
2043
153
|
|
|
2044
154
|
### Return type
|
|
2045
155
|
|
|
@@ -2055,13 +165,13 @@ end
|
|
|
2055
165
|
- **Accept**: application/json
|
|
2056
166
|
|
|
2057
167
|
|
|
2058
|
-
##
|
|
168
|
+
## user_email_sign_up
|
|
2059
169
|
|
|
2060
|
-
> <
|
|
170
|
+
> <TokenModelApiResponse> user_email_sign_up(app_key, opts)
|
|
2061
171
|
|
|
2062
|
-
|
|
172
|
+
邮箱注册
|
|
2063
173
|
|
|
2064
|
-
|
|
174
|
+
使用邮箱进行注册
|
|
2065
175
|
|
|
2066
176
|
### Examples
|
|
2067
177
|
|
|
@@ -2076,31 +186,34 @@ end
|
|
|
2076
186
|
|
|
2077
187
|
api_instance = ZSGFClient::UserApi.new
|
|
2078
188
|
app_key = 'app_key_example' # String |
|
|
189
|
+
opts = {
|
|
190
|
+
email_sign_up_request: ZSGFClient::EmailSignUpRequest.new({email: 'email_example', pwd: 'pwd_example'}) # EmailSignUpRequest | 注册请求参数
|
|
191
|
+
}
|
|
2079
192
|
|
|
2080
193
|
begin
|
|
2081
|
-
#
|
|
2082
|
-
result = api_instance.
|
|
194
|
+
# 邮箱注册
|
|
195
|
+
result = api_instance.user_email_sign_up(app_key, opts)
|
|
2083
196
|
p result
|
|
2084
197
|
rescue ZSGFClient::ApiError => e
|
|
2085
|
-
puts "Error when calling UserApi->
|
|
198
|
+
puts "Error when calling UserApi->user_email_sign_up: #{e}"
|
|
2086
199
|
end
|
|
2087
200
|
```
|
|
2088
201
|
|
|
2089
|
-
#### Using the
|
|
202
|
+
#### Using the user_email_sign_up_with_http_info variant
|
|
2090
203
|
|
|
2091
204
|
This returns an Array which contains the response data, status code and headers.
|
|
2092
205
|
|
|
2093
|
-
> <Array(<
|
|
206
|
+
> <Array(<TokenModelApiResponse>, Integer, Hash)> user_email_sign_up_with_http_info(app_key, opts)
|
|
2094
207
|
|
|
2095
208
|
```ruby
|
|
2096
209
|
begin
|
|
2097
|
-
#
|
|
2098
|
-
data, status_code, headers = api_instance.
|
|
210
|
+
# 邮箱注册
|
|
211
|
+
data, status_code, headers = api_instance.user_email_sign_up_with_http_info(app_key, opts)
|
|
2099
212
|
p status_code # => 2xx
|
|
2100
213
|
p headers # => { ... }
|
|
2101
|
-
p data # => <
|
|
214
|
+
p data # => <TokenModelApiResponse>
|
|
2102
215
|
rescue ZSGFClient::ApiError => e
|
|
2103
|
-
puts "Error when calling UserApi->
|
|
216
|
+
puts "Error when calling UserApi->user_email_sign_up_with_http_info: #{e}"
|
|
2104
217
|
end
|
|
2105
218
|
```
|
|
2106
219
|
|
|
@@ -2109,10 +222,11 @@ end
|
|
|
2109
222
|
| Name | Type | Description | Notes |
|
|
2110
223
|
| ---- | ---- | ----------- | ----- |
|
|
2111
224
|
| **app_key** | **String** | | |
|
|
225
|
+
| **email_sign_up_request** | [**EmailSignUpRequest**](EmailSignUpRequest.md) | 注册请求参数 | [optional] |
|
|
2112
226
|
|
|
2113
227
|
### Return type
|
|
2114
228
|
|
|
2115
|
-
[**
|
|
229
|
+
[**TokenModelApiResponse**](TokenModelApiResponse.md)
|
|
2116
230
|
|
|
2117
231
|
### Authorization
|
|
2118
232
|
|
|
@@ -2120,17 +234,17 @@ end
|
|
|
2120
234
|
|
|
2121
235
|
### HTTP request headers
|
|
2122
236
|
|
|
2123
|
-
- **Content-Type**:
|
|
237
|
+
- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json
|
|
2124
238
|
- **Accept**: application/json
|
|
2125
239
|
|
|
2126
240
|
|
|
2127
|
-
##
|
|
241
|
+
## user_phone_sign_in
|
|
2128
242
|
|
|
2129
|
-
> <
|
|
243
|
+
> <TokenModelApiResponse> user_phone_sign_in(app_key, opts)
|
|
2130
244
|
|
|
2131
|
-
|
|
245
|
+
手机登录
|
|
2132
246
|
|
|
2133
|
-
|
|
247
|
+
使用手机号码进行登录
|
|
2134
248
|
|
|
2135
249
|
### Examples
|
|
2136
250
|
|
|
@@ -2144,36 +258,35 @@ ZSGFClient.configure do |config|
|
|
|
2144
258
|
end
|
|
2145
259
|
|
|
2146
260
|
api_instance = ZSGFClient::UserApi.new
|
|
2147
|
-
id = 789 # Integer | 用户ID
|
|
2148
261
|
app_key = 'app_key_example' # String |
|
|
2149
262
|
opts = {
|
|
2150
|
-
|
|
263
|
+
phone_sign_in_request: ZSGFClient::PhoneSignInRequest.new({phone: 'phone_example', verify_code: 'verify_code_example'}) # PhoneSignInRequest | 登录请求参数
|
|
2151
264
|
}
|
|
2152
265
|
|
|
2153
266
|
begin
|
|
2154
|
-
#
|
|
2155
|
-
result = api_instance.
|
|
267
|
+
# 手机登录
|
|
268
|
+
result = api_instance.user_phone_sign_in(app_key, opts)
|
|
2156
269
|
p result
|
|
2157
270
|
rescue ZSGFClient::ApiError => e
|
|
2158
|
-
puts "Error when calling UserApi->
|
|
271
|
+
puts "Error when calling UserApi->user_phone_sign_in: #{e}"
|
|
2159
272
|
end
|
|
2160
273
|
```
|
|
2161
274
|
|
|
2162
|
-
#### Using the
|
|
275
|
+
#### Using the user_phone_sign_in_with_http_info variant
|
|
2163
276
|
|
|
2164
277
|
This returns an Array which contains the response data, status code and headers.
|
|
2165
278
|
|
|
2166
|
-
> <Array(<
|
|
279
|
+
> <Array(<TokenModelApiResponse>, Integer, Hash)> user_phone_sign_in_with_http_info(app_key, opts)
|
|
2167
280
|
|
|
2168
281
|
```ruby
|
|
2169
282
|
begin
|
|
2170
|
-
#
|
|
2171
|
-
data, status_code, headers = api_instance.
|
|
283
|
+
# 手机登录
|
|
284
|
+
data, status_code, headers = api_instance.user_phone_sign_in_with_http_info(app_key, opts)
|
|
2172
285
|
p status_code # => 2xx
|
|
2173
286
|
p headers # => { ... }
|
|
2174
|
-
p data # => <
|
|
287
|
+
p data # => <TokenModelApiResponse>
|
|
2175
288
|
rescue ZSGFClient::ApiError => e
|
|
2176
|
-
puts "Error when calling UserApi->
|
|
289
|
+
puts "Error when calling UserApi->user_phone_sign_in_with_http_info: #{e}"
|
|
2177
290
|
end
|
|
2178
291
|
```
|
|
2179
292
|
|
|
@@ -2181,13 +294,12 @@ end
|
|
|
2181
294
|
|
|
2182
295
|
| Name | Type | Description | Notes |
|
|
2183
296
|
| ---- | ---- | ----------- | ----- |
|
|
2184
|
-
| **id** | **Integer** | 用户ID | |
|
|
2185
297
|
| **app_key** | **String** | | |
|
|
2186
|
-
| **
|
|
298
|
+
| **phone_sign_in_request** | [**PhoneSignInRequest**](PhoneSignInRequest.md) | 登录请求参数 | [optional] |
|
|
2187
299
|
|
|
2188
300
|
### Return type
|
|
2189
301
|
|
|
2190
|
-
[**
|
|
302
|
+
[**TokenModelApiResponse**](TokenModelApiResponse.md)
|
|
2191
303
|
|
|
2192
304
|
### Authorization
|
|
2193
305
|
|
|
@@ -2199,13 +311,13 @@ end
|
|
|
2199
311
|
- **Accept**: application/json
|
|
2200
312
|
|
|
2201
313
|
|
|
2202
|
-
##
|
|
314
|
+
## user_phone_sign_up
|
|
2203
315
|
|
|
2204
|
-
> <
|
|
316
|
+
> <TokenModelApiResponse> user_phone_sign_up(app_key, opts)
|
|
2205
317
|
|
|
2206
|
-
|
|
318
|
+
手机注册
|
|
2207
319
|
|
|
2208
|
-
|
|
320
|
+
使用手机号码进行注册
|
|
2209
321
|
|
|
2210
322
|
### Examples
|
|
2211
323
|
|
|
@@ -2221,33 +333,33 @@ end
|
|
|
2221
333
|
api_instance = ZSGFClient::UserApi.new
|
|
2222
334
|
app_key = 'app_key_example' # String |
|
|
2223
335
|
opts = {
|
|
2224
|
-
|
|
336
|
+
phone_sign_up_request: ZSGFClient::PhoneSignUpRequest.new({phone: 'phone_example', phone_code: 'phone_code_example', pwd: 'pwd_example'}) # PhoneSignUpRequest | 注册请求参数
|
|
2225
337
|
}
|
|
2226
338
|
|
|
2227
339
|
begin
|
|
2228
|
-
#
|
|
2229
|
-
result = api_instance.
|
|
340
|
+
# 手机注册
|
|
341
|
+
result = api_instance.user_phone_sign_up(app_key, opts)
|
|
2230
342
|
p result
|
|
2231
343
|
rescue ZSGFClient::ApiError => e
|
|
2232
|
-
puts "Error when calling UserApi->
|
|
344
|
+
puts "Error when calling UserApi->user_phone_sign_up: #{e}"
|
|
2233
345
|
end
|
|
2234
346
|
```
|
|
2235
347
|
|
|
2236
|
-
#### Using the
|
|
348
|
+
#### Using the user_phone_sign_up_with_http_info variant
|
|
2237
349
|
|
|
2238
350
|
This returns an Array which contains the response data, status code and headers.
|
|
2239
351
|
|
|
2240
|
-
> <Array(<
|
|
352
|
+
> <Array(<TokenModelApiResponse>, Integer, Hash)> user_phone_sign_up_with_http_info(app_key, opts)
|
|
2241
353
|
|
|
2242
354
|
```ruby
|
|
2243
355
|
begin
|
|
2244
|
-
#
|
|
2245
|
-
data, status_code, headers = api_instance.
|
|
356
|
+
# 手机注册
|
|
357
|
+
data, status_code, headers = api_instance.user_phone_sign_up_with_http_info(app_key, opts)
|
|
2246
358
|
p status_code # => 2xx
|
|
2247
359
|
p headers # => { ... }
|
|
2248
|
-
p data # => <
|
|
360
|
+
p data # => <TokenModelApiResponse>
|
|
2249
361
|
rescue ZSGFClient::ApiError => e
|
|
2250
|
-
puts "Error when calling UserApi->
|
|
362
|
+
puts "Error when calling UserApi->user_phone_sign_up_with_http_info: #{e}"
|
|
2251
363
|
end
|
|
2252
364
|
```
|
|
2253
365
|
|
|
@@ -2256,11 +368,11 @@ end
|
|
|
2256
368
|
| Name | Type | Description | Notes |
|
|
2257
369
|
| ---- | ---- | ----------- | ----- |
|
|
2258
370
|
| **app_key** | **String** | | |
|
|
2259
|
-
| **
|
|
371
|
+
| **phone_sign_up_request** | [**PhoneSignUpRequest**](PhoneSignUpRequest.md) | 注册请求参数 | [optional] |
|
|
2260
372
|
|
|
2261
373
|
### Return type
|
|
2262
374
|
|
|
2263
|
-
[**
|
|
375
|
+
[**TokenModelApiResponse**](TokenModelApiResponse.md)
|
|
2264
376
|
|
|
2265
377
|
### Authorization
|
|
2266
378
|
|
|
@@ -2272,13 +384,13 @@ end
|
|
|
2272
384
|
- **Accept**: application/json
|
|
2273
385
|
|
|
2274
386
|
|
|
2275
|
-
##
|
|
387
|
+
## user_profile
|
|
2276
388
|
|
|
2277
|
-
> <
|
|
389
|
+
> <UserProfileResultApiResponse> user_profile(app_key)
|
|
2278
390
|
|
|
2279
|
-
|
|
391
|
+
获取个人资料
|
|
2280
392
|
|
|
2281
|
-
|
|
393
|
+
获取当前用户的个人资料
|
|
2282
394
|
|
|
2283
395
|
### Examples
|
|
2284
396
|
|
|
@@ -2293,34 +405,31 @@ end
|
|
|
2293
405
|
|
|
2294
406
|
api_instance = ZSGFClient::UserApi.new
|
|
2295
407
|
app_key = 'app_key_example' # String |
|
|
2296
|
-
opts = {
|
|
2297
|
-
qr_code_scan_request: ZSGFClient::QRCodeScanRequest.new({sign_in_key: 3.56}) # QRCodeScanRequest | 扫码请求参数
|
|
2298
|
-
}
|
|
2299
408
|
|
|
2300
409
|
begin
|
|
2301
|
-
#
|
|
2302
|
-
result = api_instance.
|
|
410
|
+
# 获取个人资料
|
|
411
|
+
result = api_instance.user_profile(app_key)
|
|
2303
412
|
p result
|
|
2304
413
|
rescue ZSGFClient::ApiError => e
|
|
2305
|
-
puts "Error when calling UserApi->
|
|
414
|
+
puts "Error when calling UserApi->user_profile: #{e}"
|
|
2306
415
|
end
|
|
2307
416
|
```
|
|
2308
417
|
|
|
2309
|
-
#### Using the
|
|
418
|
+
#### Using the user_profile_with_http_info variant
|
|
2310
419
|
|
|
2311
420
|
This returns an Array which contains the response data, status code and headers.
|
|
2312
421
|
|
|
2313
|
-
> <Array(<
|
|
422
|
+
> <Array(<UserProfileResultApiResponse>, Integer, Hash)> user_profile_with_http_info(app_key)
|
|
2314
423
|
|
|
2315
424
|
```ruby
|
|
2316
425
|
begin
|
|
2317
|
-
#
|
|
2318
|
-
data, status_code, headers = api_instance.
|
|
426
|
+
# 获取个人资料
|
|
427
|
+
data, status_code, headers = api_instance.user_profile_with_http_info(app_key)
|
|
2319
428
|
p status_code # => 2xx
|
|
2320
429
|
p headers # => { ... }
|
|
2321
|
-
p data # => <
|
|
430
|
+
p data # => <UserProfileResultApiResponse>
|
|
2322
431
|
rescue ZSGFClient::ApiError => e
|
|
2323
|
-
puts "Error when calling UserApi->
|
|
432
|
+
puts "Error when calling UserApi->user_profile_with_http_info: #{e}"
|
|
2324
433
|
end
|
|
2325
434
|
```
|
|
2326
435
|
|
|
@@ -2329,11 +438,10 @@ end
|
|
|
2329
438
|
| Name | Type | Description | Notes |
|
|
2330
439
|
| ---- | ---- | ----------- | ----- |
|
|
2331
440
|
| **app_key** | **String** | | |
|
|
2332
|
-
| **qr_code_scan_request** | [**QRCodeScanRequest**](QRCodeScanRequest.md) | 扫码请求参数 | [optional] |
|
|
2333
441
|
|
|
2334
442
|
### Return type
|
|
2335
443
|
|
|
2336
|
-
[**
|
|
444
|
+
[**UserProfileResultApiResponse**](UserProfileResultApiResponse.md)
|
|
2337
445
|
|
|
2338
446
|
### Authorization
|
|
2339
447
|
|
|
@@ -2341,17 +449,17 @@ end
|
|
|
2341
449
|
|
|
2342
450
|
### HTTP request headers
|
|
2343
451
|
|
|
2344
|
-
- **Content-Type**:
|
|
452
|
+
- **Content-Type**: Not defined
|
|
2345
453
|
- **Accept**: application/json
|
|
2346
454
|
|
|
2347
455
|
|
|
2348
|
-
##
|
|
456
|
+
## user_reset_email
|
|
2349
457
|
|
|
2350
|
-
> <
|
|
458
|
+
> <BooleanApiResponse> user_reset_email(app_key, opts)
|
|
2351
459
|
|
|
2352
|
-
|
|
460
|
+
重置邮箱
|
|
2353
461
|
|
|
2354
|
-
|
|
462
|
+
通过邮箱验证码重置邮箱
|
|
2355
463
|
|
|
2356
464
|
### Examples
|
|
2357
465
|
|
|
@@ -2367,33 +475,33 @@ end
|
|
|
2367
475
|
api_instance = ZSGFClient::UserApi.new
|
|
2368
476
|
app_key = 'app_key_example' # String |
|
|
2369
477
|
opts = {
|
|
2370
|
-
|
|
478
|
+
app_user_reset_email_request: ZSGFClient::AppUserResetEmailRequest.new({code: 'code_example'}) # AppUserResetEmailRequest | 重置邮箱的请求参数
|
|
2371
479
|
}
|
|
2372
480
|
|
|
2373
481
|
begin
|
|
2374
|
-
#
|
|
2375
|
-
result = api_instance.
|
|
482
|
+
# 重置邮箱
|
|
483
|
+
result = api_instance.user_reset_email(app_key, opts)
|
|
2376
484
|
p result
|
|
2377
485
|
rescue ZSGFClient::ApiError => e
|
|
2378
|
-
puts "Error when calling UserApi->
|
|
486
|
+
puts "Error when calling UserApi->user_reset_email: #{e}"
|
|
2379
487
|
end
|
|
2380
488
|
```
|
|
2381
489
|
|
|
2382
|
-
#### Using the
|
|
490
|
+
#### Using the user_reset_email_with_http_info variant
|
|
2383
491
|
|
|
2384
492
|
This returns an Array which contains the response data, status code and headers.
|
|
2385
493
|
|
|
2386
|
-
> <Array(<
|
|
494
|
+
> <Array(<BooleanApiResponse>, Integer, Hash)> user_reset_email_with_http_info(app_key, opts)
|
|
2387
495
|
|
|
2388
496
|
```ruby
|
|
2389
497
|
begin
|
|
2390
|
-
#
|
|
2391
|
-
data, status_code, headers = api_instance.
|
|
498
|
+
# 重置邮箱
|
|
499
|
+
data, status_code, headers = api_instance.user_reset_email_with_http_info(app_key, opts)
|
|
2392
500
|
p status_code # => 2xx
|
|
2393
501
|
p headers # => { ... }
|
|
2394
|
-
p data # => <
|
|
502
|
+
p data # => <BooleanApiResponse>
|
|
2395
503
|
rescue ZSGFClient::ApiError => e
|
|
2396
|
-
puts "Error when calling UserApi->
|
|
504
|
+
puts "Error when calling UserApi->user_reset_email_with_http_info: #{e}"
|
|
2397
505
|
end
|
|
2398
506
|
```
|
|
2399
507
|
|
|
@@ -2402,11 +510,11 @@ end
|
|
|
2402
510
|
| Name | Type | Description | Notes |
|
|
2403
511
|
| ---- | ---- | ----------- | ----- |
|
|
2404
512
|
| **app_key** | **String** | | |
|
|
2405
|
-
| **
|
|
513
|
+
| **app_user_reset_email_request** | [**AppUserResetEmailRequest**](AppUserResetEmailRequest.md) | 重置邮箱的请求参数 | [optional] |
|
|
2406
514
|
|
|
2407
515
|
### Return type
|
|
2408
516
|
|
|
2409
|
-
[**
|
|
517
|
+
[**BooleanApiResponse**](BooleanApiResponse.md)
|
|
2410
518
|
|
|
2411
519
|
### Authorization
|
|
2412
520
|
|
|
@@ -2418,13 +526,13 @@ end
|
|
|
2418
526
|
- **Accept**: application/json
|
|
2419
527
|
|
|
2420
528
|
|
|
2421
|
-
##
|
|
529
|
+
## user_reset_phone
|
|
2422
530
|
|
|
2423
|
-
> <
|
|
531
|
+
> <BooleanApiResponse> user_reset_phone(app_key, opts)
|
|
2424
532
|
|
|
2425
|
-
|
|
533
|
+
重置手机号
|
|
2426
534
|
|
|
2427
|
-
|
|
535
|
+
通过手机号验证码重置手机号
|
|
2428
536
|
|
|
2429
537
|
### Examples
|
|
2430
538
|
|
|
@@ -2440,33 +548,33 @@ end
|
|
|
2440
548
|
api_instance = ZSGFClient::UserApi.new
|
|
2441
549
|
app_key = 'app_key_example' # String |
|
|
2442
550
|
opts = {
|
|
2443
|
-
|
|
551
|
+
app_user_reset_phone_request: ZSGFClient::AppUserResetPhoneRequest.new({code: 'code_example'}) # AppUserResetPhoneRequest | 重置手机号的请求参数
|
|
2444
552
|
}
|
|
2445
553
|
|
|
2446
554
|
begin
|
|
2447
|
-
#
|
|
2448
|
-
result = api_instance.
|
|
555
|
+
# 重置手机号
|
|
556
|
+
result = api_instance.user_reset_phone(app_key, opts)
|
|
2449
557
|
p result
|
|
2450
558
|
rescue ZSGFClient::ApiError => e
|
|
2451
|
-
puts "Error when calling UserApi->
|
|
559
|
+
puts "Error when calling UserApi->user_reset_phone: #{e}"
|
|
2452
560
|
end
|
|
2453
561
|
```
|
|
2454
562
|
|
|
2455
|
-
#### Using the
|
|
563
|
+
#### Using the user_reset_phone_with_http_info variant
|
|
2456
564
|
|
|
2457
565
|
This returns an Array which contains the response data, status code and headers.
|
|
2458
566
|
|
|
2459
|
-
> <Array(<
|
|
567
|
+
> <Array(<BooleanApiResponse>, Integer, Hash)> user_reset_phone_with_http_info(app_key, opts)
|
|
2460
568
|
|
|
2461
569
|
```ruby
|
|
2462
570
|
begin
|
|
2463
|
-
#
|
|
2464
|
-
data, status_code, headers = api_instance.
|
|
571
|
+
# 重置手机号
|
|
572
|
+
data, status_code, headers = api_instance.user_reset_phone_with_http_info(app_key, opts)
|
|
2465
573
|
p status_code # => 2xx
|
|
2466
574
|
p headers # => { ... }
|
|
2467
|
-
p data # => <
|
|
575
|
+
p data # => <BooleanApiResponse>
|
|
2468
576
|
rescue ZSGFClient::ApiError => e
|
|
2469
|
-
puts "Error when calling UserApi->
|
|
577
|
+
puts "Error when calling UserApi->user_reset_phone_with_http_info: #{e}"
|
|
2470
578
|
end
|
|
2471
579
|
```
|
|
2472
580
|
|
|
@@ -2475,11 +583,11 @@ end
|
|
|
2475
583
|
| Name | Type | Description | Notes |
|
|
2476
584
|
| ---- | ---- | ----------- | ----- |
|
|
2477
585
|
| **app_key** | **String** | | |
|
|
2478
|
-
| **
|
|
586
|
+
| **app_user_reset_phone_request** | [**AppUserResetPhoneRequest**](AppUserResetPhoneRequest.md) | 重置手机号的请求参数 | [optional] |
|
|
2479
587
|
|
|
2480
588
|
### Return type
|
|
2481
589
|
|
|
2482
|
-
[**
|
|
590
|
+
[**BooleanApiResponse**](BooleanApiResponse.md)
|
|
2483
591
|
|
|
2484
592
|
### Authorization
|
|
2485
593
|
|
|
@@ -2513,7 +621,7 @@ end
|
|
|
2513
621
|
api_instance = ZSGFClient::UserApi.new
|
|
2514
622
|
app_key = 'app_key_example' # String |
|
|
2515
623
|
opts = {
|
|
2516
|
-
app_user_reset_pwd_request: ZSGFClient::AppUserResetPwdRequest.new({
|
|
624
|
+
app_user_reset_pwd_request: ZSGFClient::AppUserResetPwdRequest.new({pwd: 'pwd_example', oldpwd: 'oldpwd_example'}) # AppUserResetPwdRequest | 重置密码的请求参数
|
|
2517
625
|
}
|
|
2518
626
|
|
|
2519
627
|
begin
|
|
@@ -2714,7 +822,7 @@ end
|
|
|
2714
822
|
|
|
2715
823
|
> <TokenModelApiResponse> user_sign_in(app_key, opts)
|
|
2716
824
|
|
|
2717
|
-
|
|
825
|
+
密码登录
|
|
2718
826
|
|
|
2719
827
|
使用账号密码进行登录
|
|
2720
828
|
|
|
@@ -2736,7 +844,7 @@ opts = {
|
|
|
2736
844
|
}
|
|
2737
845
|
|
|
2738
846
|
begin
|
|
2739
|
-
#
|
|
847
|
+
# 密码登录
|
|
2740
848
|
result = api_instance.user_sign_in(app_key, opts)
|
|
2741
849
|
p result
|
|
2742
850
|
rescue ZSGFClient::ApiError => e
|
|
@@ -2752,7 +860,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
|
2752
860
|
|
|
2753
861
|
```ruby
|
|
2754
862
|
begin
|
|
2755
|
-
#
|
|
863
|
+
# 密码登录
|
|
2756
864
|
data, status_code, headers = api_instance.user_sign_in_with_http_info(app_key, opts)
|
|
2757
865
|
p status_code # => 2xx
|
|
2758
866
|
p headers # => { ... }
|
|
@@ -2787,7 +895,7 @@ end
|
|
|
2787
895
|
|
|
2788
896
|
> <TokenModelApiResponse> user_sign_up(app_key, opts)
|
|
2789
897
|
|
|
2790
|
-
|
|
898
|
+
账号注册
|
|
2791
899
|
|
|
2792
900
|
使用账号密码进行注册
|
|
2793
901
|
|
|
@@ -2809,7 +917,7 @@ opts = {
|
|
|
2809
917
|
}
|
|
2810
918
|
|
|
2811
919
|
begin
|
|
2812
|
-
#
|
|
920
|
+
# 账号注册
|
|
2813
921
|
result = api_instance.user_sign_up(app_key, opts)
|
|
2814
922
|
p result
|
|
2815
923
|
rescue ZSGFClient::ApiError => e
|
|
@@ -2825,7 +933,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
|
2825
933
|
|
|
2826
934
|
```ruby
|
|
2827
935
|
begin
|
|
2828
|
-
#
|
|
936
|
+
# 账号注册
|
|
2829
937
|
data, status_code, headers = api_instance.user_sign_up_with_http_info(app_key, opts)
|
|
2830
938
|
p status_code # => 2xx
|
|
2831
939
|
p headers # => { ... }
|
|
@@ -2860,9 +968,9 @@ end
|
|
|
2860
968
|
|
|
2861
969
|
> <SetupCodeApiResponse> user_two_factor_auth(app_key)
|
|
2862
970
|
|
|
2863
|
-
|
|
971
|
+
二次验证
|
|
2864
972
|
|
|
2865
|
-
|
|
973
|
+
获取当前用户在指定应用下启用二次验证(2FA)所需的设置信息,主要包括二维码链接和手动密钥,用户可以将其录入在 Google Authenticator 等 TOTP 应用中,用于后续动态验证码验证。
|
|
2866
974
|
|
|
2867
975
|
### Examples
|
|
2868
976
|
|
|
@@ -2879,7 +987,7 @@ api_instance = ZSGFClient::UserApi.new
|
|
|
2879
987
|
app_key = 'app_key_example' # String |
|
|
2880
988
|
|
|
2881
989
|
begin
|
|
2882
|
-
#
|
|
990
|
+
# 二次验证
|
|
2883
991
|
result = api_instance.user_two_factor_auth(app_key)
|
|
2884
992
|
p result
|
|
2885
993
|
rescue ZSGFClient::ApiError => e
|
|
@@ -2895,7 +1003,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
|
2895
1003
|
|
|
2896
1004
|
```ruby
|
|
2897
1005
|
begin
|
|
2898
|
-
#
|
|
1006
|
+
# 二次验证
|
|
2899
1007
|
data, status_code, headers = api_instance.user_two_factor_auth_with_http_info(app_key)
|
|
2900
1008
|
p status_code # => 2xx
|
|
2901
1009
|
p headers # => { ... }
|
|
@@ -2925,77 +1033,6 @@ end
|
|
|
2925
1033
|
- **Accept**: application/json
|
|
2926
1034
|
|
|
2927
1035
|
|
|
2928
|
-
## user_unfollow_user
|
|
2929
|
-
|
|
2930
|
-
> <BooleanApiResponse> user_unfollow_user(user_id, app_key)
|
|
2931
|
-
|
|
2932
|
-
取消关注
|
|
2933
|
-
|
|
2934
|
-
取消关注指定用户
|
|
2935
|
-
|
|
2936
|
-
### Examples
|
|
2937
|
-
|
|
2938
|
-
```ruby
|
|
2939
|
-
require 'time'
|
|
2940
|
-
require 'zsgf_client'
|
|
2941
|
-
# setup authorization
|
|
2942
|
-
ZSGFClient.configure do |config|
|
|
2943
|
-
# Configure Bearer authorization: Bearer
|
|
2944
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
2945
|
-
end
|
|
2946
|
-
|
|
2947
|
-
api_instance = ZSGFClient::UserApi.new
|
|
2948
|
-
user_id = 789 # Integer | 要取消关注的用户ID
|
|
2949
|
-
app_key = 'app_key_example' # String |
|
|
2950
|
-
|
|
2951
|
-
begin
|
|
2952
|
-
# 取消关注
|
|
2953
|
-
result = api_instance.user_unfollow_user(user_id, app_key)
|
|
2954
|
-
p result
|
|
2955
|
-
rescue ZSGFClient::ApiError => e
|
|
2956
|
-
puts "Error when calling UserApi->user_unfollow_user: #{e}"
|
|
2957
|
-
end
|
|
2958
|
-
```
|
|
2959
|
-
|
|
2960
|
-
#### Using the user_unfollow_user_with_http_info variant
|
|
2961
|
-
|
|
2962
|
-
This returns an Array which contains the response data, status code and headers.
|
|
2963
|
-
|
|
2964
|
-
> <Array(<BooleanApiResponse>, Integer, Hash)> user_unfollow_user_with_http_info(user_id, app_key)
|
|
2965
|
-
|
|
2966
|
-
```ruby
|
|
2967
|
-
begin
|
|
2968
|
-
# 取消关注
|
|
2969
|
-
data, status_code, headers = api_instance.user_unfollow_user_with_http_info(user_id, app_key)
|
|
2970
|
-
p status_code # => 2xx
|
|
2971
|
-
p headers # => { ... }
|
|
2972
|
-
p data # => <BooleanApiResponse>
|
|
2973
|
-
rescue ZSGFClient::ApiError => e
|
|
2974
|
-
puts "Error when calling UserApi->user_unfollow_user_with_http_info: #{e}"
|
|
2975
|
-
end
|
|
2976
|
-
```
|
|
2977
|
-
|
|
2978
|
-
### Parameters
|
|
2979
|
-
|
|
2980
|
-
| Name | Type | Description | Notes |
|
|
2981
|
-
| ---- | ---- | ----------- | ----- |
|
|
2982
|
-
| **user_id** | **Integer** | 要取消关注的用户ID | |
|
|
2983
|
-
| **app_key** | **String** | | |
|
|
2984
|
-
|
|
2985
|
-
### Return type
|
|
2986
|
-
|
|
2987
|
-
[**BooleanApiResponse**](BooleanApiResponse.md)
|
|
2988
|
-
|
|
2989
|
-
### Authorization
|
|
2990
|
-
|
|
2991
|
-
[Bearer](../README.md#Bearer)
|
|
2992
|
-
|
|
2993
|
-
### HTTP request headers
|
|
2994
|
-
|
|
2995
|
-
- **Content-Type**: Not defined
|
|
2996
|
-
- **Accept**: application/json
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
1036
|
## user_union_id_sign_in
|
|
3000
1037
|
|
|
3001
1038
|
> <TokenModelApiResponse> user_union_id_sign_in(app_key, opts)
|
|
@@ -3214,90 +1251,3 @@ end
|
|
|
3214
1251
|
- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json
|
|
3215
1252
|
- **Accept**: application/json
|
|
3216
1253
|
|
|
3217
|
-
|
|
3218
|
-
## users
|
|
3219
|
-
|
|
3220
|
-
> <UserListResultApiResponse> users(app_key, opts)
|
|
3221
|
-
|
|
3222
|
-
获取用户列表
|
|
3223
|
-
|
|
3224
|
-
根据条件获取用户列表
|
|
3225
|
-
|
|
3226
|
-
### Examples
|
|
3227
|
-
|
|
3228
|
-
```ruby
|
|
3229
|
-
require 'time'
|
|
3230
|
-
require 'zsgf_client'
|
|
3231
|
-
# setup authorization
|
|
3232
|
-
ZSGFClient.configure do |config|
|
|
3233
|
-
# Configure Bearer authorization: Bearer
|
|
3234
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
3235
|
-
end
|
|
3236
|
-
|
|
3237
|
-
api_instance = ZSGFClient::UserApi.new
|
|
3238
|
-
app_key = 'app_key_example' # String |
|
|
3239
|
-
opts = {
|
|
3240
|
-
user_name: 'user_name_example', # String | 用户名
|
|
3241
|
-
email: 'email_example', # String | 邮箱
|
|
3242
|
-
phone: 'phone_example', # String | 电话
|
|
3243
|
-
platform: 'platform_example', # String | 平台
|
|
3244
|
-
union_id: 'union_id_example', # String | 联合ID
|
|
3245
|
-
role: 'role_example', # String | 角色
|
|
3246
|
-
skip: 56, # Integer | 跳过的记录数
|
|
3247
|
-
take: 56 # Integer | 获取的记录数
|
|
3248
|
-
}
|
|
3249
|
-
|
|
3250
|
-
begin
|
|
3251
|
-
# 获取用户列表
|
|
3252
|
-
result = api_instance.users(app_key, opts)
|
|
3253
|
-
p result
|
|
3254
|
-
rescue ZSGFClient::ApiError => e
|
|
3255
|
-
puts "Error when calling UserApi->users: #{e}"
|
|
3256
|
-
end
|
|
3257
|
-
```
|
|
3258
|
-
|
|
3259
|
-
#### Using the users_with_http_info variant
|
|
3260
|
-
|
|
3261
|
-
This returns an Array which contains the response data, status code and headers.
|
|
3262
|
-
|
|
3263
|
-
> <Array(<UserListResultApiResponse>, Integer, Hash)> users_with_http_info(app_key, opts)
|
|
3264
|
-
|
|
3265
|
-
```ruby
|
|
3266
|
-
begin
|
|
3267
|
-
# 获取用户列表
|
|
3268
|
-
data, status_code, headers = api_instance.users_with_http_info(app_key, opts)
|
|
3269
|
-
p status_code # => 2xx
|
|
3270
|
-
p headers # => { ... }
|
|
3271
|
-
p data # => <UserListResultApiResponse>
|
|
3272
|
-
rescue ZSGFClient::ApiError => e
|
|
3273
|
-
puts "Error when calling UserApi->users_with_http_info: #{e}"
|
|
3274
|
-
end
|
|
3275
|
-
```
|
|
3276
|
-
|
|
3277
|
-
### Parameters
|
|
3278
|
-
|
|
3279
|
-
| Name | Type | Description | Notes |
|
|
3280
|
-
| ---- | ---- | ----------- | ----- |
|
|
3281
|
-
| **app_key** | **String** | | |
|
|
3282
|
-
| **user_name** | **String** | 用户名 | [optional] |
|
|
3283
|
-
| **email** | **String** | 邮箱 | [optional] |
|
|
3284
|
-
| **phone** | **String** | 电话 | [optional] |
|
|
3285
|
-
| **platform** | **String** | 平台 | [optional] |
|
|
3286
|
-
| **union_id** | **String** | 联合ID | [optional] |
|
|
3287
|
-
| **role** | **String** | 角色 | [optional] |
|
|
3288
|
-
| **skip** | **Integer** | 跳过的记录数 | [optional] |
|
|
3289
|
-
| **take** | **Integer** | 获取的记录数 | [optional] |
|
|
3290
|
-
|
|
3291
|
-
### Return type
|
|
3292
|
-
|
|
3293
|
-
[**UserListResultApiResponse**](UserListResultApiResponse.md)
|
|
3294
|
-
|
|
3295
|
-
### Authorization
|
|
3296
|
-
|
|
3297
|
-
[Bearer](../README.md#Bearer)
|
|
3298
|
-
|
|
3299
|
-
### HTTP request headers
|
|
3300
|
-
|
|
3301
|
-
- **Content-Type**: Not defined
|
|
3302
|
-
- **Accept**: application/json
|
|
3303
|
-
|