From b5d30e5af0821deae79b88f7403b6344d1491a88 Mon Sep 17 00:00:00 2001 From: Echo <1711788888@qq.com> Date: Sat, 25 Sep 2021 13:40:58 +0000 Subject: [PATCH] =?UTF-8?q?add=20api.txt.=20=E9=83=A8=E5=88=86api=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api.txt | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 api.txt diff --git a/api.txt b/api.txt new file mode 100644 index 0000000..ad4903b --- /dev/null +++ b/api.txt @@ -0,0 +1,82 @@ +SIGN = { + 'method': 'GET', + 'url': 'https://www.aliyundrive.com/sign/in', +} + +AUTHORIZE = { + 'method': 'GET', + 'url': 'https://auth.aliyundrive.com/v2/oauth/authorize', + 'params': { + 'client_id': 'client_id', + 'response_type': 'code', + 'login_type': 'custom', + } +} + +MINI_LOGIN = { + 'method': 'GET', + 'url': 'https://passport.aliyundrive.com/mini_login.htm', + 'params': {'appName': 'aliyun_drive'} +} + +LOGIN = { + 'method': 'POST', + 'url': 'https://passport.aliyundrive.com/newlogin/login.do', + 'data': { + 'loginId': 'loginId', + 'password2': 'password2', + 'appName': 'aliyun_drive', + } +} + +TOKEN_LOGIN = { + 'method': 'POST', + 'url': 'https://auth.aliyundrive.com/v2/oauth/token_login', + 'data': {'token': 'biz_ext'} +} + +TOKEN_GET = { + 'method': 'POST', + 'url': 'https://websv.aliyundrive.com/token/get', + 'data': {'code': 'code'} +} + +QR_GEN = { + 'method': 'get', + 'url': 'https://passport.aliyundrive.com/newlogin/qrcode/generate.do', + 'params': { + 'appName': 'aliyun_drive', + } +} + +QR_QUERY = { + 'method': 'post', + 'url': 'https://passport.aliyundrive.com/newlogin/qrcode/query.do', + 'data': { + 't': 't', + } +} + +SMS_SEND = { + 'method': 'POST', + 'url': 'https://passport.aliyundrive.com/newlogin/sms/send.do', + 'params': {'appName': 'aliyun_drive'}, + 'data': { + 'phoneCode': '86', + 'loginId': 'username', + 'countryCode': 'CN' + } +} + +SMS_LOGIN = { + 'method': 'POST', + 'url': 'https://passport.aliyundrive.com/newlogin/sms/login.do', + 'params': {'appName': 'aliyun_drive'}, + 'data': { + 'phoneCode': '86', + 'loginId': 'username', + 'countryCode': 'CN', + 'smsCode': 'sms_code', + 'smsToken': 'sms_token' + } +