Project

colissimo

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Retrieve tracking information from french Colissimo parcel delivery
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.5
~> 5.2
~> 10.1
~> 1.4

Runtime

~> 1.5
 Project Readme

Build Status

Colissimo

This gem allows you to retrieve tracking information from French Colissimo parcel delivery company. Unfortunatelly you won't get this information in a text format, but in an image format. That's fine for display though.

Usage

Add the colissimo gem to your Gemfile, run the bundle command.

require "colissimo"

tracking_code = "6C07437595437"

rows = Colissimo::Tracker.new(tracking_code).tracking_rows

output = "<table>"
rows.each do |row|
  output += "  <tr>"
  output += "    <td><img src='#{row.date_base64_png}' /></td>"
  output += "    <td><img src='#{row.label_base64_png}' /></td>"
  output += "    <td><img src='#{row.localization_base64_png}' /></td>"
  output += "  </tr>"
end
output += "</table>"

If you are interested in just the latest status, you can save some bandwidth witht this option:

Colissimo::Tracker.new(tracking_code).tracking_rows(:latest_only => true)