Code Monkey home page Code Monkey logo

citylink-utils's Introduction

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="[email protected]", emailto="[email protected]")

Get list of CityLink reference codes

import citylink.CityLink

userid = "XXXXXX"
password = "XXXXXX"

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.