Bosta Python SDK
Project description
Python SDK for integrating with Bosta.
Usage
import os
from bosta import *
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bosta-0.1.0.tar.gz
(28.1 kB
view details)
File details
Details for the file bosta-0.1.0.tar.gz.
File metadata
- Download URL: bosta-0.1.0.tar.gz
- Upload date:
- Size: 28.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7143fe525418b5f7464d6f178cf5000cf27861e93bfdf452d2e3c5e20cedc959
|
|
| MD5 |
22b6e3e7208666c37239f3d698967f0f
|
|
| BLAKE2b-256 |
c9b4cfc314985ff76e4553f35451a26f652bf2584c56ac1f733d4826f656b111
|