1.登陆
请求地址:post /ecare/webs/user/login
请求参数:
{
account: “202003110227”
password: “9cPOEiDMvNHtLBrTGY8/mg==”
pwdType: 0 //sms登陆为1,密码登陆为0
loginType: 0 //PTO都为0
channelType: 3 //登陆渠道1web/2wap/3app
appCode: “MY_DITO” // app特有用于自动登陆
appVersion: “1.0.0” //app特有用于自动登陆
deviceToken: “669E7757-C54F-4FD9-BB1E-D1F74C1BF885” //app特有用于自动登陆
os: “I” // app特有用于自动登陆
osVersion: “13.6” //app特有用于自动登陆
}
返回参数:
{
defaultPwd: false
loginSuccess: true
loginToken: “eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiYm9vdC1zZXJ2ZXIiXSwidXNlcl9pZCI6MTAzMiwidXNlcl9uYW1lIjoiMjAyMDAzMTEwMjI3Iiwic2NvcGUiOlsic2VsZWN0IiwidXNlcjp3cml0ZSIsInVzZXI6dXBkYXRlIl0sImV4cCI6MTU5ODQ5NzA3MywianRpIjoiNDg3OWFkNDUtZGVkNS00ZGU3LWJlY2YtNjA1MmNjNTNjMmY2IiwiY2xpZW50X2lkIjoiZWNhcmUifQ.h1cWA4YaqixJz3pL_xpGRO5ggXjkn8heKucQ_twtaKvLndvADnLlR7qzsxy3isK8rzopRnImU6Rg-WK4HzKyl65cBK_nlCxOUC7UurUFrDhs9-JWg21Fi1kkq_KwBDsPMDA5JG4C5zZKeRg8C-XZGQvBhtBFCAbG8TKrJZScuTWBgE5ff5cyDpv2VQRXu5qUxFuOiKRv6XtdXtRm2km1chLnQbePM13ghiTv-KfTE3fVpBlSx5lP88lNpPGN95bNfAoYX34LNff2mEnUXgYtsOTRA3t8iJ7aufz5eaPgkdwIaPy-jxZhaNNkzBu-bckN169BvNMcjWxFOk_VK_oczA”
pwdExpired: false
refreshToken: “eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiYm9vdC1zZXJ2ZXIiXSwidXNlcl9pZCI6MTAzMiwidXNlcl9u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G8TKrJZScuTWBgE5ff5cyDpv2VQRXu5qUxFuOiKRv6XtdXtRm2km1chLnQbePM13ghiTv-KfTE3fVpBlSx5lP88lNpPGN95bNfAoYX34LNff2mEnUXgYtsOTRA3t8iJ7aufz5eaPgkdwIaPy-jxZhaNNkzBu-bckN169BvNMcjWxFOk_VK_oczA”
userData: {
alias: “huanfan”
custId: 64
email: “565665@qq.com“
firstName: “202003110227”
guid: 1032
imgUrl: “”
mobile: “202003110227”
openId: “U1003138”
passwordExist: true
profileIds: “”
securityAnswer: “”
subsId: 1003138
userId: 1032
userState: “A”
userStateDate: “2020-07-28 19:19:28”
userType: “F”
}
}
2.获取订户详情(根据登陆的subsId)
请求地址:post /ecare/webs/subs/qrySubsDetail?prodInstIds=${subsId}
请求参数:无
返回参数:{ …subsInfo }
3.登出
请求地址 get /ecare/webs/user/logout
请求参数:无
返回参数:0
4.获取 facebook,google 登录的 AppID
请求地址: get /ecare/webs/user/login/OAuth/fetchOAuthLoginAppId
请求参数:无
返回参数:{
FACEBOOK_APPID: “278763106678006”
GOOGLE_APPID: “208852173137-636fqbn4e6appa5vkqheb1acphjc2csq.apps.googleusercontent.com”
}
5.获取隐私条款PDF
请求地址:get /ecare/webs/dms/download/policy/WEB_SELFCARE
请求参数:无
返回参数: pdf文件流
6.根据号码查询订户是否存在(用于校验)
请求地址:get /ecare/webs/subs/qrySubsDetailByAccNbr?accNum=${accNum}
请求参数: 无
返回参数:{ prodInstDto.prodId }
7.发送短信验证码
请求地址:post /ecare/webs/message/sms/1/202003110227
请求参数:{
account: “202003110227”
langCode: “en-US”
sendTo: “202003110227”
type: 1 登陆为1,重置密码为2 绑定号码为3
}
返回参数:true
8.判断是否设置了密码(未设置过需要修改密码)
请求地址:get /ecare/webs/user/{userId}/isPwdSet
请求参数:无
返回参数:true/false
9.修改邮箱或密码(用于首次登陆修改密码)
请求地址:post /ecare/webs/user/modBasicInfo
请求参数:{
accNbr
email //可以不传
password
}
返回参数:无
10.获取图形验证码
请求地址:get /ecare/webs/captcha/${requestSN}
请求参数:null
返回参数:图片文件流
11.校验图形验证码
请求地址:post /ecare/webs/captcha/check
请求参数:{
requestSN,
captcha,
}
返回参数:无
12.三方登陆
请求地址:post /ecare/webs/user/login/OAuth
请求参数:{
channelType: 3,
openId,
nickName: email,
}
返回参数:{
userData
loginSuccess
loginToken
}
13.自动登陆
请求地址:post /ecare/webs/user/easyLogin
请求参数:{
deviceToken
appCode
loginToken
authType // 0:PIN码,1:图形,2:指纹,3:faceID,4:自动登陆
}
返回参数:{
userData
loginSuccess
loginToken
}
14.自动登陆设置
请求地址:post /ecare/webs/app/autologin
请求参数:{
deviceToken
appCode(非必填)
action:启用on,关闭off
}
返回参数:{
deviceToken
appCode
loginToken
}
15.生物识别登陆设置
请求地址:post /ecare/webs/app/biologin
请求参数:{
deviceToken
appCode(非必填)
action:启用on,关闭off
}
返回参数: {
deviceToken
appCode
loginToken
}
16.验证登陆状态可用
请求地址: get /ecare/webs/user/token/validate
请求参数:无
返回参数: {
tokenValid: true/fasle
}