python api asm载体
asm的Python项目详细描述
python api asm载体。
功能
- 服务
- 测试连接
- 创建/发送装运到asm
- 获取PDF格式的标签发货
用法示例
test.py文件中的示例api
服务
fromasm.utilsimportservicesservices()
测试连接
withAPI(username,debug)asasm_api:printasm_api.test_connection()
创建/发送装运到asm
withPicking(username,debug)aspicking_api:data={...}reference,label,error=picking_api.create(data)
获取标签发货
withPicking(username,debug)aspicking_api:data={...}label=picking_api.label(data)