腾讯云即时通信IM接口golang封装 https://github.com/xucx/txim
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
李寻欢 8d299c45a5 bug fix. 8 months ago
api bug fix. 8 months ago
callback 🎨 完善参数 9 months ago
common 新增发送单聊消息接口 8 months ago
.gitignore null 9 months ago
README.md 📝 完善Readme 9 months ago
go.mod null 9 months ago
go.sum null 9 months ago
txim.go 🔥 重写 9 months ago

README.md

腾讯云即时通讯IM SDK

食用方式

package main

import (
	"fmt"
	"gitee.ltd/lxh/txim"
	"gitee.ltd/lxh/txim/api"
	"gitee.ltd/lxh/txim/api/param"
)

func main() {
	sdkAppId := 0000
	sdkKey := "xxxxx"
	// 初始化SDK
	txim.Init(sdkAppId, sdkKey, "administrator")
	// 导入账户
	data, err := api.AccountImport(&param.AccountImportReq{
		Identifier: "lxh",
		Nick:       "李寻欢",
	})
	if err != nil {
		fmt.Println(err)
		return
	}
	fmt.Printf("%+v\n", data)
}