repositorypackage
0.0.0-20250109023314-45a0b2904bda
Repository: https://github.com/hiscaler/temu-go.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# README
Temu SDK for Golang
服务说明
服务 | 说明 | |
---|---|---|
1 | PurchaseOrder | 备货单 |
2 | ShipOrderStaging | 发货台 |
3 | ShipOrder | 发货单 |
使用
package main
import (
"github.com/goccy/go-json"
"fmt"
"github.com/hiscaler/temu-go"
"github.com/hiscaler/temu-go/config"
"os"
)
func main() {
b, err := os.ReadFile("./config/config_test.json")
if err != nil {
panic(fmt.Sprintf("Read config error: %s", err.Error()))
}
var c config.Config
err = json.Unmarshal(b, &c)
if err != nil {
panic(fmt.Sprintf("Parse config file error: %s", err.Error()))
}
temuClient := temu.NewClient(c)
}
服务说明
服务地址 | 说明 | 查询参数参考地址 |
---|---|---|
client.Services.Goods.Query | 商品查询 | |
client.Services.Goods.One | 根据商品 SKC ID 查询 | |
client.Services.Goods.Create | 创建商品 | |
client.Services.Goods.Brand.Query | 查询可绑定的品牌接口 |
文档地址
流程
- 将备货单数据加入发货台;
- 将发货台数据生成采购单;
- 打印货物商标、箱唛进行平台发货操作。
说明
备货单、采购单是同一个含义,从平台的角度理解是平台向商家下采购单,从商家的角度理解是平台推送过来备货单。
注意事项
- 加入发货台后是不能立即看到物流商数据的