Skip to content

OdinsHat/citylink-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CityLink Utilities

The following package was developed to help process despatch requests with City Link [link broken] couriers based in the UK.

[Note: City Link went into administration Dec 2014 so these scripts are defunct and are merely kept for archival purposes]

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

Requirements

The version below have been tested and working. Its possible other earlier and later versions may work.

Examples

Email Manifest

import citylink.CityLink

userid = "XXXXXX"
password = "XXXXXX"

cl = CityLink(userid, password)
cl.login()
cl.mail_manifest(emailfrom="from@test.com", emailto="to@test.com")
import citylink.CityLink

userid = "XXXXXX"
password = "XXXXXX"

cl = CityLink(userid, password)
cl.login()
print(cl.fetch_citylink_refs())

Releases

No releases published

Packages

No packages published

Languages