request(
"POST",
"/v1/custody/guard/change_binding/",
{
"user_id": "cobo_168108513539918"
},
api_key, api_secret, host
)
coboFetch('POST', '/v1/custody/guard/change_binding/',
{
"user_id": "cobo_168108513539918"
},
api_key, api_secret, host
).then(res => {
res.json().then((data)=>{
console.log(JSON.stringify(data, null, 4));
})
}).catch(err => {
console.log(err)
});
Request("POST", "/v1/custody/guard/change_binding/", map[string]string{
"user_id": "cobo_168108513539918"
})
{
"success": true,
"result": {
"binder_id": "Ph8YP+LTQyqcfHE/A+eXUw=="
}
}
Bind Auth
Change Binding
This content applies to WaaS 1.0 only. We highly recommend that you upgrade to WaaS 2.0.
broker_user_id is passed in the request body, and the new binder_id is returned in the JSON response.POST
/
v1
/
custody
/
guard
/
change_binding
/
request(
"POST",
"/v1/custody/guard/change_binding/",
{
"user_id": "cobo_168108513539918"
},
api_key, api_secret, host
)
coboFetch('POST', '/v1/custody/guard/change_binding/',
{
"user_id": "cobo_168108513539918"
},
api_key, api_secret, host
).then(res => {
res.json().then((data)=>{
console.log(JSON.stringify(data, null, 4));
})
}).catch(err => {
console.log(err)
});
Request("POST", "/v1/custody/guard/change_binding/", map[string]string{
"user_id": "cobo_168108513539918"
})
{
"success": true,
"result": {
"binder_id": "Ph8YP+LTQyqcfHE/A+eXUw=="
}
}
Request
String
required
unique user ID
Response
bool
request successful or failed
object
Show object
Show object
String
Binding ID, the binding ID needs to be prefixed with binder_id= to generate a QR code for the user to scan the code to bind, or the user can directly copy the binding code in the form of binder_id=xxxx to Cobo Auth for the binding operation
request(
"POST",
"/v1/custody/guard/change_binding/",
{
"user_id": "cobo_168108513539918"
},
api_key, api_secret, host
)
coboFetch('POST', '/v1/custody/guard/change_binding/',
{
"user_id": "cobo_168108513539918"
},
api_key, api_secret, host
).then(res => {
res.json().then((data)=>{
console.log(JSON.stringify(data, null, 4));
})
}).catch(err => {
console.log(err)
});
Request("POST", "/v1/custody/guard/change_binding/", map[string]string{
"user_id": "cobo_168108513539918"
})
{
"success": true,
"result": {
"binder_id": "Ph8YP+LTQyqcfHE/A+eXUw=="
}
}
