Skip to content

xjcloudy/tencent-im-restapi-go

Repository files navigation

TIM SDK-腾讯“云通讯”服务服务端SDK(go语言)

1.0.0-beta版发布了目前项目中在使用,等项目上线测试通过后。发正式版。

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

A restapi sdk written by golang for tencent im cloud service

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages