流程
- 初始化
- 登录(登录需要seggin授权)
获取genSig的代码
- pom.xml 引入
- 工具类:
import com.tencentyun.TLSSigAPIv2;
public class IMUtil {
static TLSSigAPIv2 tlsSigAPIv2 = new TLSSigAPIv2(1400336444L,"9f49af87a3d11a077d2c6bf4b447e01b50b85e4ef7a2810ad93b1823b281a5dd");
public static String genSig(String userId){
return tlsSigAPIv2.genSig(userId, 180*86400);
}
}