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