profile
profile
profile
/**
* 置顶
* arg {
* to: String, //对方id,必填
* type: String, //聊天类型,chat/groupchat/pubaccount,默认chat
* success: function,
* error: function
* }
*/
YYIMChat.stick({
to: 'to',
type: 'chat',
success: function(data){
console.log(data);
},
error: function(err){
console.log(err);
}
});
/**
* 取消置顶
* arg {
* to: String, //对方id,必填
* type: String, //聊天类型,chat/groupchat/pubaccount,默认chat
* success: function,
* error: function
* }
*/
YYIMChat.cancelStick({
to: 'to',
type: 'chat',
success: function(data){
console.log(data);
},
error: function(err){
console.log(err);
}
});
/**
* 设置静音
* arg {
* to: String, //对方id,必填
* type: String, //聊天类型,chat/groupchat/pubaccount,默认chat
* success: function,
* error: function
* }
*/
YYIMChat.mute({
to: 'to',
type: 'chat',
success: function(data){
console.log(data);
},
error: function(err){
console.log(err);
}
});
/**
* 取消静音
* arg {
* to: String, //对方id,必填
* type: String, //聊天类型,chat/groupchat/pubaccount,默认chat
* success: function,
* error: function
* }
*/
YYIMChat.cancelMute({
to: 'to',
type: 'chat',
success: function(data){
console.log(data);
},
error: function(err){
console.log(err);
}
});
/**
* 获取用户Profile信息包括静音和置顶信息
* arg {
* success:function,
* error:function,
* }
*/
YYIMChat.getProfile({
success: function(data){
console.log(data);
},
error: function(err){
console.log(err);
}
});