0.01
No commit activity in last 3 years
No release in over 3 years
中国快递查询
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.1.5
~> 1.8.4
~> 2.8.0
~> 1.8.7
~> 0.7

Runtime

 Project Readme

中国快递查询 Build Status

支持顺丰、EMS、申通、圆通、中通、宅急送、韵达、天天快递、联邦快递、汇通等,无须验证码

安装

gem install china-express --no-ri --no-rdoc

使用

请前往 爱查快递API申请,申请成功,爱查会给你发 key 到你的邮箱

require 'china-express'
Express.key = 'your_key_here'
Express.search (单号', '快递公司')

示例

result = Express.search('123456', '顺丰')
result.success? # true
result.data # [{'time' => "2012-10-08 09:20", 'context' => "签收人是:马"}]
result.data.each do |item|
  puts "#{item['time']} #{item['context']}"
end