淘宝联盟

This commit is contained in:
suyl
2021-04-25 17:22:10 +08:00
parent d23bba1392
commit 88a657ba9e
9 changed files with 380 additions and 14 deletions

View 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))
}