Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
PHP implementation of the UPS Rating XML API
PHP
branch: master

initial

latest commit 44b123e267
@nuex authored
Failed to load latest commit information.
README.md initial
ups_rating.php initial

README.md

php-ups_rating

PHP implementation of UPS Rating XML API.

USAGE

$opts = array(
  'ups_access_license_number' => MY_LICENSE_NUMBER,
  'ups_userid' => MY_USERID,
  'ups_password' => MY_PASSWORD,
  'country' => 'US',
  'to_country' => 'US',
  'weight' => 20
);

Packages are also supported:

$opts['packages'] = array(
  array(
    'type' => 'medium_express',
    'weight' => 20
  ),
  array(
    'type' => 'medium_express',
    'weight' => 18
  )
);

$response = ups_rating::rates($opts);
Something went wrong with that request. Please try again.