2020-11-06 17:47:38 +08:00
|
|
|
package www
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
2021-07-30 10:53:31 +08:00
|
|
|
"log"
|
2020-11-06 17:47:38 +08:00
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestClient_GetUserInfo(t *testing.T) {
|
|
|
|
|
|
|
|
c, err := NewClientWithAliAppcode("203874304", "9e5489a82dd641729186cdad166d81a3")
|
|
|
|
if err != nil {
|
|
|
|
t.Error(err)
|
|
|
|
}
|
|
|
|
|
|
|
|
req := CreateGetPwdRequest()
|
|
|
|
req.UserName = "ttom666"
|
|
|
|
|
2021-07-30 10:53:31 +08:00
|
|
|
resp, err := c.GetUserInfo(req)
|
|
|
|
if err != nil {
|
|
|
|
log.Fatalln(err)
|
|
|
|
}
|
2020-11-06 17:47:38 +08:00
|
|
|
fmt.Println(resp.GetHttpContentString())
|
|
|
|
fmt.Println(resp.GetHttpHeaders())
|
|
|
|
}
|