22 lines
321 B
Go
22 lines
321 B
Go
|
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)
|
||
|
}
|