request(
"POST",
"/v1/custody/guard/create_binding/",
{
"user_id": "cobo_168108513539918"
},
api_key, api_secret, host
)
coboFetch('POST', '/v1/custody/guard/create_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/create_binding/", map[string]string{
"user_id": "cobo_168108513539918"
})
{
"success": true,
"result": {
"binder_id": "Ph8YP+LTQyqcfHE/A+eXUw=="
}
}
Bind Auth
Create Binding
This content applies to WaaS 1.0 only. We highly recommend that you upgrade to WaaS 2.0.
POST
/
v1
/
custody
/
guard
/
create_binding
/
request(
"POST",
"/v1/custody/guard/create_binding/",
{
"user_id": "cobo_168108513539918"
},
api_key, api_secret, host
)
coboFetch('POST', '/v1/custody/guard/create_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/create_binding/", map[string]string{
"user_id": "cobo_168108513539918"
})
{
"success": true,
"result": {
"binder_id": "Ph8YP+LTQyqcfHE/A+eXUw=="
}
}
Request
String
required
unique user ID, no more than 24 characters
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/create_binding/",
{
"user_id": "cobo_168108513539918"
},
api_key, api_secret, host
)
coboFetch('POST', '/v1/custody/guard/create_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/create_binding/", map[string]string{
"user_id": "cobo_168108513539918"
})
{
"success": true,
"result": {
"binder_id": "Ph8YP+LTQyqcfHE/A+eXUw=="
}
}
