Modify User Information Privacy Agreement, Service Terms Version (modifyUserAgreement)
The modifyUserAgreement API is used to change service terms version and self-built account's privacy strategy version.
Request parameters
| Parameters | Type | Description | Note |
|---|---|---|---|
| token | string | User authorization token for LI PASS | Required |
| openid | string | UID for LI PASS | Required |
| privacy_policy | string | Privacy agreement version Cannot be set to a previously set version, can only upgrade version | Required |
| terms_of_service | string | Service terms version Cannot be set to a previously set version, can only upgrade 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 parameters
| Parameters | Type | Description |
|---|---|---|
| ret | number | Return code 0: Request successful !=0: Request failed, refer to msg for detailed results |
| msg | string | Result Explanation |
| privacy_policy | string | User Privacy Agreement Version |
| terms_of_service | string | User Service Terms Version |
| seq | string | Data Stream Message Serial Number |
Response sample
{
msg: "Success",
privacy_policy: "0.1",
ret: 0,
seq: "1638240816-0180225310-032531-0000367889",
terms_of_service: "0.1",
}