Simple utility package to handle CityLink dispatches for commercial customers
The following package was developed to help process despatch requests with City Link couriers based in the UK.
They lacked an API for easy management of various functions such as retrieving manifests, reference codes, etc.
This package works by using the Mechanize library to navigate your commercial account admin area to carry out requests such as:
- Fetch pending collections
- Grab company reference numbers
- Grab CityLink reference numbers
- Get full HTML copy of collection manifest
- Email the manifest
import citylink.CityLink userid = "XXXXXX" password = "XXXXXX" cl = CityLink(userid, password) cl.login() cl.mail_manifest(emailfrom="firstname.lastname@example.org", emailto="email@example.com")