签名步骤
签名步骤
{
"event": "addChannel",
"channel": "babel_sub_spot_ALL_ALL_login",
"apikey": "thisisyourapikey"
}
{
"apikey": "thisisyourapikey",
"channel": "babel_sub_spot_ALL_ALL_login",
"event": "addChannel"
}
let data = {
"apikey": "thisisyourapikey",
"channel": "babel_sub_spot_ALL_ALL_login",
"event": "addChannel"
};
let secret = "thisisyourapisecret";
let sign = CryptoJS.HmacMD5(JSON.stringify(data), secret).toString(); // 签名结果 thisissigneddata
{
"event": "addChannel",
"channel": "babel_sub_spot_ALL_ALL_login",
"apikey": "thisisyourapikey",
"sign": "thisissigneddata"
}