{
"carrier": "canada",
"action": "GetAllRates",
"params": {
"packages": [
{
"weight": 5,
"length": 5,
"width": 5,
"height": 5,
"insured_value": 700
}
],
"customs": [],
"ship_city": "BELLEVILLE",
"ship_code": "K8N5W6",
"to_country": "US",
"to_code": "90210"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'canada',
'action' => 'GetAllRates',
'params' =>
array (
'packages' =>
array (
0 =>
array (
'weight' => 5,
'length' => 5,
'width' => 5,
'height' => 5,
'insured_value' => 700,
),
),
'customs' =>
array (
),
'ship_city' => 'BELLEVILLE',
'ship_code' => 'K8N5W6',
'to_country' => 'US',
'to_code' => '90210',
),
)
);
rs.request(
{'action': 'GetAllRates',
'carrier': 'canada',
'params': {'customs': [],
'packages': [{'height': 5,
'insured_value': 700,
'length': 5,
'weight': 5,
'width': 5}],
'ship_city': 'BELLEVILLE',
'ship_code': 'K8N5W6',
'to_code': '90210',
'to_country': 'US'}}
)
rs.request(
{"carrier"=>"canada",
"action"=>"GetAllRates",
"params"=>
{"packages"=>
[{"weight"=>5,
"length"=>5,
"width"=>5,
"height"=>5,
"insured_value"=>700}],
"customs"=>[],
"ship_city"=>"BELLEVILLE",
"ship_code"=>"K8N5W6",
"to_country"=>"US",
"to_code"=>"90210"}}
)
rocketshipit.request(
{
"carrier": "canada",
"action": "GetAllRates",
"params": {
"packages": [
{
"weight": 5,
"length": 5,
"width": 5,
"height": 5,
"insured_value": 700
}
],
"customs": [],
"ship_city": "BELLEVILLE",
"ship_code": "K8N5W6",
"to_country": "US",
"to_code": "90210"
}
}
)