- CBGetUserInfo
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user