Skip to content

Commit dcfedc2

Browse files
committed
fix path of user interfaces
1 parent ce1ae44 commit dcfedc2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

example/users.py

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def user_query_info():
2323
ALIPAY_PUBLIC_KEY)
2424

2525
alipay_user_query_info_request = AlipayUserQueryInfoRequest()
26+
alipay_user_query_info_request.path = "/ams/sandbox/api/v1/users/inquiryUserInfo"
2627
alipay_user_query_info_request.access_token = "2020060417341615912632560749423400649135650RJsliOKYQP"
2728

2829
rsp_body = default_alipay_client.execute(alipay_user_query_info_request)
@@ -39,6 +40,7 @@ def init_authentication():
3940
default_alipay_client = DefaultAlipayClient("https://open-na.alipay.com", CLIENT_ID, MERCHANT_PRIVATE_KEY,
4041
ALIPAY_PUBLIC_KEY)
4142
alipay_init_authentication_request = AlipayInitAuthenticationRequest()
43+
alipay_init_authentication_request.path = "/ams/sandbox/api/v1/users/initAuthentication"
4244
alipay_init_authentication_request.authentication_channel_type = AuthenticationChannelType.SMS
4345
alipay_init_authentication_request.authentication_request_id = "test_1"
4446
alipay_init_authentication_request.authentication_type = AuthenticationType.OTP
@@ -59,6 +61,7 @@ def verify_authentication():
5961
default_alipay_client = DefaultAlipayClient("https://open-na.alipay.com", CLIENT_ID, MERCHANT_PRIVATE_KEY,
6062
ALIPAY_PUBLIC_KEY)
6163
alipay_verify_authentication_request = AlipayVerifyAuthenticationRequest()
64+
alipay_verify_authentication_request.path = "/ams/sandbox/api/v1/users/verifyAuthentication"
6265
alipay_verify_authentication_request.authentication_request_id = "test_1"
6366
alipay_verify_authentication_request.authentication_type = AuthenticationType.OTP
6467
alipay_verify_authentication_request.authentication_value = "666"

0 commit comments

Comments
 (0)