Documentation ¶
Index ¶
Constants ¶
View Source
const ( // CloudExpressBird 云服务商:快递鸟 CloudExpressBird = "expressBird" // URL 接口地址 URL = "https://api.kdniao.com" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExpressBird ¶
type ExpressBird struct {
// contains filtered or unexported fields
}
ExpressBird 快递鸟客户端
func NewExpressBird ¶
func NewExpressBird(appID, secretKey, requestType string) (*ExpressBird, error)
NewExpressBird 新建快递鸟客户端
func (*ExpressBird) GetExpress ¶
func (e *ExpressBird) GetExpress(ctx context.Context, req *types.GetExpressRequest) (*types.GetExpressResponse, error)
GetExpress 利用快递鸟即时查询接口获取快递物流信息 即时查询接口:https://www.kdniao.com/api-track requestType=1002,支持三家:申通、圆通和百世 即时查询(增值版)接口:https://www.kdniao.com/api-monitor requestType=8001 快递查询接口:https://www.kdniao.com/api-trackexpress requestType=8002
Click to show internal directories.
Click to hide internal directories.