add api.txt.

部分api信息
This commit is contained in:
loser 2021-09-25 13:40:58 +00:00 committed by Gitee
parent 2ac9213b3a
commit b5d30e5af0

82
api.txt Normal file
View File

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