- CBGetUserInfo

This commit is contained in:
gazebo
2019-04-28 15:28:26 +08:00
parent 99006a0fb8
commit 590c95e4fc
4 changed files with 70 additions and 27 deletions

View File

@@ -1,6 +1,10 @@
package weixinapi
import "testing"
import (
"testing"
"git.rosy.net.cn/baseapi/utils"
)
func TestCBRetrieveToken(t *testing.T) {
result, err := api.CBRetrieveToken()
@@ -38,3 +42,11 @@ func TestCBUpdateRemark(t *testing.T) {
t.Log(err)
}
}
func TestCBGetUserInfo(t *testing.T) {
userInfo, err := api.CBGetUserInfo("oYN_ust9hXKEvEv0X6Mq6nlAWs_E")
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(userInfo, false))
}