Skip to content

Callwoola/tencent-im.go

Repository files navigation

TIM SDK-腾讯“云通讯”服务服务端SDKgo语言 / 补充接口

*ref

USAGE

    // 初始化配置
    api = new(TimApp)
    api.AppID ="yourAppid"
    api.Identifiner = "yourIdentifiner"
    api.Sig = "yourSig"

    // 使用接口 eg:查询在线状态
    resp, err := api.QueryState([]string{"testAccount"})
    if err != nil {
        return err
    }
    if resp.ActionStatus == ResponseFail {
        fmt.Println(resp.ErrorInfo)
    } else {
        for _, acs := range resp.QueryResult {
            fmt.Printf("user `%s` is %s ", acs.ToAccount, acs.State)
        }
    }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages