You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
376 B

  1. package www
  2. import (
  3. "fmt"
  4. "testing"
  5. )
  6. func TestClient_GetUserInfo(t *testing.T) {
  7. c, err := NewClientWithAliAppcode("203874304", "9e5489a82dd641729186cdad166d81a3")
  8. if err != nil {
  9. t.Error(err)
  10. }
  11. req := CreateGetPwdRequest()
  12. req.UserName = "ttom666"
  13. resp, _ := c.GetUserInfo(req)
  14. fmt.Println(resp.GetHttpContentString())
  15. fmt.Println(resp.GetHttpHeaders())
  16. }