ModifyUserAgreement
The modifyUserAgreement
API is used to change the term of service version and the privacy policy version for an LI PASS.
Request Parameter
Parameter | Type | Description | Remark |
---|---|---|---|
token | string | LI PASS user authorization token | Required |
openid | string | LI PASS UID | Required |
privacy_policy | string | Privacy policy version The version can only be upgraded, you cannot set it to an earlier version. | Required |
terms_of_service | string | Term of service version The version can only be upgraded, you cannot set it to an earlier version. | Required |
Request Sample
accountApi.modifyUserAgreement(
{
token: 'xxx',
openid: 'xxx',
privacy_policy: '0.1',
terms_of_service: '0.1',
}
).then((res) => {
console.log(res);
});
Response Parameter
Parameter | Type | Description |
---|---|---|
ret | number | Return code 0: Request success !=0: Request failure, see msg for detailed return message |
msg | string | Return message |
privacy_policy | string | Privacy policy version |
terms_of_service | string | Term of service version |
seq | string | Sequence number of the message in the data stream |
Response Sample
{
msg: "Success",
privacy_policy: "0.1",
ret: 0,
seq: "1638240816-0180225310-032531-0000367889",
terms_of_service: "0.1",
}