Bosta Python开发包

bosta的Python项目详细描述


用于与bosta集成的python sdk。

用法

importosfrombostaimport*bosta=Bosta(api_key=os.getenv('BOSTA_API_KEY'),api_base=os.getenv('BOSTA_API_BASE'))receiver=Receiver(firstName='Lemuel',lastName='Formacil',phone='+201551234567')pickup_address=Address(firstLine='1234 Some Place',city='EG-01')dropoff_address=Address(firstLine='5678 Another Place',city='EG-01')result=bosta.deliveries_create(receiver=receiver,pickupAddress=pickup_address,dropoff_address=dropoff_address)bosta.deliveries_list(perPage=10,page=1)bosta.deliveries_get(_id=result._id)bosta.deliveries_update(_id=result._id,notes='Throw package into the window.')bosta.deliveries_delete(_id=result._id)

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
返回数组无效的java方法   异步Java CompletableFuture获取其请求   java是否可以像RDBMS那样使用视图?   java如何在屏幕上只运行一个片段?   java无法从Vertex jdbc查询中获取结果   java从jtable获取对象的正确方法   java Spring 3数据设备替代方案   Java BigDecimal:四舍五入到客户首选的数字和增量   JAVA主窗口没有出现,我必须左键单击主窗口。java并单击run查看它   Eclipse RCP中的java进程自定义设备事件   JavaEclipse一次又一次地构建代码(没有任何更改)?   java如何实现对象合并