整合 UPS OnLine Tools (PHP)

本文介绍如何使用PHP集成UPS的在线工具,包括验证、服务选择和下载等功能,适用于提升物流系统的效率。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

以前写了一段ASP版本的使用UPS Online Tools API的代码,下面的是Google Code 里找到的PHP版本模块。
ASP版地址:
http://hi.baidu.com/hsg4ok/blog/item/f9d5c695016c5a49d0135e7c.html(现在百度空间已经被无辜的封掉了)

Modules written in PHP to help communicate with UPS shipping API

About

This project was started as we have found there is a need for modules written in PHP to communicate with the UPS Shipping API.

Mark has already written code that calculates UPS shipping rates using the API. This was the first implementation. Now we have a great team of developers that are working hard to bring you a complete framework for all of the UPS services.

The plan for this project is to create reusable code for use with all of the UPS shipping tools through thier XML API.

This project will eventually cover all of these UPS API tools.

  • UPS Tracking Tool
  • UPS Signature Tracking
  • UPS Rates & Service Selection Tool
  • UPS Address Validation Tool
  • UPS File Download for Quantum View
  • UPS Shipping Tool
  • UPS Time in Transit Tool
  • UPS Trade Ability

Status

Usage

Here are the following usages for the UPS modules. As of right now there are only two modules created in the release version.

Requirements

PHP4 or PHP5 with cURL(libcurl) installed and enabled.

UPS Rate Selection

require("upsRate.php");
$myRate
= new upsRate('accessnumber','username','password','shippernumber');
echo $myRate
->getRate('fromzip','tozip',"service",length,width,height,weight);

UPS Tracking

require("upsTrack.php");
$myRate
= new upsTrack('accessnumber','username','password');
http
://ups-php.googlecode.com/svn/trunk/array = $myRate->getTrack('TrackingNumber');

Beta Code

If you want more functionality or want to see what is coming in the next versions of ups-php, check out our svn at:

http://ups-php.googlecode.com/svn/trunk/

We are working diligently on the next version and want to make it a complete implementation of the UPS API. This is a very active project so check back often.

Featured Downloads:
UPS-PHP-v0.2.tar.gz
UPS-PHP-v0.2.zip

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值