Files
baseapi/platformapi/qywxapi/cgibin_test.go
suyl 43f9e43044 aa
2021-05-25 15:52:55 +08:00

39 lines
721 B
Go

package qywxapi
import (
"git.rosy.net.cn/baseapi/utils"
"testing"
)
func TestGetProviderToken(t *testing.T) {
result, err := api.GetProviderToken()
if err != nil {
t.Fatal(err.Error())
}
sugarLogger.Debug(result)
}
func TestToken(t *testing.T) {
result, err := api.GetToken()
if err != nil {
t.Fatal(err.Error())
}
sugarLogger.Debug(result)
}
func TestGroupchatList(t *testing.T) {
result, err := api.GroupchatList("", 20)
if err != nil {
t.Fatal(err.Error())
}
t.Log(utils.Format4Output(result, false))
}
func TestGroupchat(t *testing.T) {
result, err := api.Groupchat("wr0oKiEAAAAi7dreYASbygbXrWtNxbNg")
if err != nil {
t.Fatal(err.Error())
}
t.Log(utils.Format4Output(result, false))
}