通过
[添加好友]taobao.openim.users.add通过
[更新好友]taobao.openim.users.update通过
[删除好友]taobao.openim.users.delet
mac golang
1:配置
func configIM() {
freeAliim.AppKey = freeFile.FlAppInfo.IMAppkey
freeAliim.AppSecret = freeFile.FlAppInfo.IMAppSecret
freeAliim.IsPro = freeFile.FlAppInfo.IsPro
freeAliim.UseHTTP = freeFile.FlAppInfo.UseHTTP
}
2:传参数
imUserinfo := freeAliim.ImUserInfo{
Userid: userid,
Password: pwd,
Name: name,
IconUrl: iconUrl,
}
3: 调用封装的接口
succ, resposne := freeAliim.SendAddUsers(imUserinfos)
if succ == false {
} else {
}