📝 完善Readme
This commit is contained in:
parent
4b70b60922
commit
dc0a2cd582
32
README.md
32
README.md
@ -1 +1,31 @@
|
||||
# txim
|
||||
# 腾讯云即时通讯IM SDK
|
||||
|
||||
### 食用方式
|
||||
|
||||
```go
|
||||
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(¶m.AccountImportReq{
|
||||
Identifier: "lxh",
|
||||
Nick: "李寻欢",
|
||||
})
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
return
|
||||
}
|
||||
fmt.Printf("%+v\n", data)
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user