27 lines
434 B
Go
27 lines
434 B
Go
|
package asdk
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
// 获取用户累计付费
|
||
|
func TestKickUser(t *testing.T) {
|
||
|
client, err := NewClient()
|
||
|
if err != nil {
|
||
|
panic(err)
|
||
|
}
|
||
|
ts, sign := GenerateInnerApiSign(0)
|
||
|
req := CreateKickUserReq(KickUserParam{
|
||
|
Ts: ts,
|
||
|
Sign: sign,
|
||
|
UserName: "aq36604627",
|
||
|
})
|
||
|
|
||
|
resp, err := client.CreateKickUserReq(req)
|
||
|
if err != nil {
|
||
|
panic(err)
|
||
|
}
|
||
|
fmt.Println(resp.Code, resp.Msg, resp.Data)
|
||
|
}
|