Skip to content

ShopRAHA/Cigo-API-Library

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cigo API Library

Cigo API Doc

Cigo is a last mile delivery software solution link to Cigo website

You can visit the API Doc to get a general idea API Doc

Factory Cigo Library

This library will help you connect with the api by calling the methods in CigoConnect.py.

We have 4 entities a Job, JobSearch, JobAction and Itinerary.

  1. Job is used to create and retrieve Jobs
  2. JobSearch is used to search for a job
  3. JobAction is used to create and retrieve JobActions
  4. JobGeocoding is used retrieve job geocoding
  5. JobProgress is used retrieve job progress
  6. Itinerary is used to retrieve itineraries
  7. VehicleTracking is used to retrieve itineraries

Get Started with CigoConnect

Start by calling CigoConnect() with debug, account_id and auth_key. debug is used to switch between demo and production endpoints.

cc = CigoConnect(debug, account_id, auth_key)

Now you can use cc to call the endpoint functions, each function has a docstring that shows the return.

  • Retrieve functions return:
    • Object / List of objects.
    • Raise an exception if the response has an error.
  • Search functions return:
    • List of ids.
    • Raise an exception if the response has an error.
  • Create / Delete / Update functions always return the response from the endpoint.

You can find a sample on how to use CigoConnect.py in example.py

About

This repo is a useful library to connect with Cigo https://cigotracker.com/api/

Resources

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%