{
"carrier": "FedEx-REST",
"action": "FindLocations",
"params": {
"key": "your-key-from-authenticate-request",
"attributes": [
"SATURDAY_DROPOFFS"
],
"locations": [
"FEDEX_OFFICE"
],
"results_requested": 4,
"radius": 50,
"ship_city": "Briggs",
"ship_state": "TX",
"ship_code": "78608-0001",
"ship_country": "US",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'FedEx-REST',
'action' => 'FindLocations',
'params' =>
array (
'key' => 'your-key-from-authenticate-request',
'attributes' =>
array (
0 => 'SATURDAY_DROPOFFS',
),
'locations' =>
array (
0 => 'FEDEX_OFFICE',
),
'results_requested' => 4,
'radius' => 50,
'ship_city' => 'Briggs',
'ship_state' => 'TX',
'ship_code' => '78608-0001',
'ship_country' => 'US',
'test' => true,
),
)
);
rs.request(
{'action': 'FindLocations',
'carrier': 'FedEx-REST',
'params': {'attributes': ['SATURDAY_DROPOFFS'],
'key': 'your-key-from-authenticate-request',
'locations': ['FEDEX_OFFICE'],
'radius': 50,
'results_requested': 4,
'ship_city': 'Briggs',
'ship_code': '78608-0001',
'ship_country': 'US',
'ship_state': 'TX',
'test': True}}
)
rs.request(
{"carrier"=>"FedEx-REST",
"action"=>"FindLocations",
"params"=>
{"key"=>"your-key-from-authenticate-request",
"attributes"=>["SATURDAY_DROPOFFS"],
"locations"=>["FEDEX_OFFICE"],
"results_requested"=>4,
"radius"=>50,
"ship_city"=>"Briggs",
"ship_state"=>"TX",
"ship_code"=>"78608-0001",
"ship_country"=>"US",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "FedEx-REST",
"action": "FindLocations",
"params": {
"key": "your-key-from-authenticate-request",
"attributes": [
"SATURDAY_DROPOFFS"
],
"locations": [
"FEDEX_OFFICE"
],
"results_requested": 4,
"radius": 50,
"ship_city": "Briggs",
"ship_state": "TX",
"ship_code": "78608-0001",
"ship_country": "US",
"test": true
}
}
)