Finding Retail Stores, Drop-offs or Access Points¶
UPS¶
Example:
<?php
$locator = new \RocketShipIt\Locator('ups');
$locator->setParameter('shipCity', 'Atlanta');
$locator->setParameter('shipState', 'GA');
$locator->setParameter('shipCode', '85281');
$locator->setParameter('shipCodeExtended', '4510');
$response = $locator->find();
UPS Access Points¶
Example:
<?php
$locator = new \RocketShipIt\Locator('ups');
$locator->setParameter('requestOption', '64');
$locator->setParameter('shipCity', 'Atlanta');
$locator->setParameter('shipState', 'GA');
$locator->setParameter('shipCode', '85281');
$locator->setParameter('shipCodeExtended', '4510');
$response = $locator->find();
FedEx¶
Example:
<?php
$locator = new \RocketShipIt\Locator('fedex');
$locator->setParameter('nearCode', '59759');
$response = $locator->find();
Find all locations that have “Hold At Location” service:
<?php
$locator = new \RocketShipIt\Locator('fedex');
$locator->setParameter('nearCode', '94115');
$locator->setParameter('holdAtLocation', 'yes');
$response = $locator->find();
Paging through results:
<?php
$locator = new \RocketShipIt\Locator('fedex');
$locator->setParameter('nearCode', '94115');
// Set beginning record, indexes are included
// in the response.
$locator->setParameter('beginningRecord', '11');
$locator->setParameter('holdAtLocation', 'yes');
requestOption¶
1 | A list of locations |
8 | All available additional services |
16 | All available program types |
24 | All available additional services and program types |
32 | All available retail locations |
40 | All available retail locations and additional services |
48 | All available retail locations and program types |
56 | All available retail locations, program types, and additional services |
64 | UPS Access Point Search |