Skip to main content

RajaOngkir API Wrapper

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rajaongkir-py-1.0.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

rajaongkir_py-1.0.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file rajaongkir-py-1.0.1.tar.gz.

File metadata

  • Download URL: rajaongkir-py-1.0.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for rajaongkir-py-1.0.1.tar.gz
Algorithm Hash digest
SHA256 ffcd4dfbc372550665b32acf25dac81c14cdb7d42bce2054c1c4466216f6828a
MD5 005f6797176ef6590bc772c360bdc9c3
BLAKE2b-256 514403d1221c372e0e1d63bf9b5d71cd11c23dacecd3d2611931bb10b1b91d52

See more details on using hashes here.

File details

Details for the file rajaongkir_py-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for rajaongkir_py-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a6c527724601af4de56570b9fb80a7115908ffa24d177e66e176217704635155
MD5 50b8c0cc5353750d5898da2e40d9a7e3
BLAKE2b-256 7cda256bd3a1095961c94bde24d196617a59058cc77726fc95dce1a7e874e711

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page