问题描述
我正在使用 Mark Sanborn UPS Function 使用php计算UPS运费
I am using Mark Sanborn UPS Function to calculate UPS shipping rates with php
在此功能中,您必须更改一些已经定义的变量的值
In this function you have to change some values of variables already defined
// ========== CHANGE THESE VALUES TO MATCH YOUR OWN ===========
$AccessLicenseNumber = '12345678910'; // Your license number
$UserId = 'username'; // Username
$Password = 'password'; // Password
$PostalCode = '12345'; // Zipcode you are shipping FROM
$ShipperNumber = '98765'; // Your UPS shipper number
但是我无法确定我的 $ AccessLicenseNumber 用于UPS帐户还是我的 $ ShipperNumber .
but I could not figure out my $AccessLicenseNumber for UPS account also my $ShipperNumber.
请使用此API的任何人给我一个开始.
Please any one used this API give me a start.
预先感谢.
推荐答案
当您请求API凭据时,这两个值都是由UPS发出的.
Both of those values are issued by UPS when you request API credentials.
UPS凭证由4个不同的值组成-用户ID,密码,访问密钥(许可证编号)和托运人编号.托运人号码是可选的,但包含托运人号码可能会影响返回的费率.
UPS credentials are made up of 4 distinct values- user id, password, access key (license number) and shipper number. Shipper number is optional, but including can affect which rates are returned.
UPS API凭据: https://www.ups.com/upsdeveloperkit? loc = zh_CN
UPS API credentials can be requested here: https://www.ups.com/upsdeveloperkit?loc=en_US
这篇关于UPS的访问许可证号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!