Raja Ongkir API
API Documentation
Raja Ongkir is a RESTful API that provides the following services:
-
Object-Oriented Interface - The API is implemented in object-oriented style.
-
Simple and Easy to Use - The API is easy to use and simple to implement.
-
Province: Get all province data
-
Province Detail: Get province detail data
-
City: Get all city data
-
Find City: Get city data by province id
-
Cost: Get all cost data
-
ETD: Get all etd data
-
Varian Account Type: Get all varian account type data
Installation
pip install rajaongkir-py
Usage
from rajaongkir import Client
# Create a client object
client = Client(auth='YOUR_API_KEY')
# Get all province data
provinces = client.provinces.list()
# Get province detail data
province = client.provinces.query(province_id=1)
# Get all city data
cities = client.cities.list()
# Get city data by province id
cities = client.cities.query(province_id=1)
# Get ciry data by city id and province id
city = client.cities.query(city_id=1, province_id=1)
# Get calculate cost data
cost = client.costs.calculate(origin=501, destination=114, weight=1000, courier='jne')
# print cost data
print(cost)
Release files for rajaongkir-py 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rajaongkir-py-1.0.1.tar.gz | 5.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rajaongkir_py-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.4 kB
Release files / rajaongkir-py-1.0.1.tar.gz
| Download URL | rajaongkir-py-1.0.1.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ffcd4dfbc372550665b32acf25dac81c14cdb7d42bce2054c1c4466216f6828a
|
|
BLAKE2b-256 checksum How to use checksums |
514403d1221c372e0e1d63bf9b5d71cd11c23dacecd3d2611931bb10b1b91d52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / rajaongkir_py-1.0.1-py3-none-any.whl
| Download URL | rajaongkir_py-1.0.1-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a6c527724601af4de56570b9fb80a7115908ffa24d177e66e176217704635155
|
|
BLAKE2b-256 checksum How to use checksums |
7cda256bd3a1095961c94bde24d196617a59058cc77726fc95dce1a7e874e711
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|