淘宝联盟
This commit is contained in:
54
platformapi/tbunionapi/union_test.go
Normal file
54
platformapi/tbunionapi/union_test.go
Normal file
@@ -0,0 +1,54 @@
|
||||
package tbunionapi
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestAdzoneCreate(t *testing.T) {
|
||||
err := api.AdzoneCreate(2293250207, "999999")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
//t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
func TestActivityInfoGet(t *testing.T) {
|
||||
result, err := api.ActivityInfoGet("999999", "20150318020002597", 999999)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
func TestAllOrders(t *testing.T) {
|
||||
result, err := api.AllOrders("2021-04-23 00:00:00", "2021-04-23 23:59:59")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
func TestNewUserAllOrders(t *testing.T) {
|
||||
result, err := api.NewUserAllOrders("20150318020002597")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
func TestRebateOrderGet(t *testing.T) {
|
||||
result, err := api.RebateOrderGet("2021-04-05 09:10:00")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
func TestGatewayUnionpub(t *testing.T) {
|
||||
result, err := api.GatewayUnionpub()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
Reference in New Issue
Block a user