haiwai-common-sdk-go/services/passport/client_test.go

22 lines
321 B
Go
Raw Normal View History

2023-04-18 18:52:00 +08:00
package passport
import (
"fmt"
"testing"
)
func TestInfo(t *testing.T) {
client, err := NewClient("hk")
if err != nil {
t.Error(err)
return
}
req := CreateRegDeviceRequest("dv35054132", "zf43712598")
resp, err := client.GetRegDeviceByUsers(req)
if err != nil {
t.Error(err)
}
fmt.Println(resp.Data)
}