7
0
gaore-common-sdk-go/services/www/client_test.go
liangzy b8b1585d5e 1.添加www(apisdk)项目接口
2.addheader 方法改成公有方法
3.添加文档
2020-11-06 17:47:38 +08:00

22 lines
376 B
Go

package www
import (
"fmt"
"testing"
)
func TestClient_GetUserInfo(t *testing.T) {
c, err := NewClientWithAliAppcode("203874304", "9e5489a82dd641729186cdad166d81a3")
if err != nil {
t.Error(err)
}
req := CreateGetPwdRequest()
req.UserName = "ttom666"
resp, _ := c.GetUserInfo(req)
fmt.Println(resp.GetHttpContentString())
fmt.Println(resp.GetHttpHeaders())
}