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' + } +