{
"carrier": "USPS-REST",
"action": "GetAllRates",
"params": {
"test": true,
"price_type": "RETAIL",
"rate_indicator": "PA",
"service": "PRIORITY_MAIL_EXPRESS",
"packages": [
{
"weight": 6
}
],
"ship_code": "59759",
"to_code": "90210"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'USPS-REST',
'action' => 'GetAllRates',
'params' =>
array (
'test' => true,
'price_type' => 'RETAIL',
'rate_indicator' => 'PA',
'service' => 'PRIORITY_MAIL_EXPRESS',
'packages' =>
array (
0 =>
array (
'weight' => 6,
),
),
'ship_code' => '59759',
'to_code' => '90210',
),
)
);
rs.request(
{'action': 'GetAllRates',
'carrier': 'USPS-REST',
'params': {'packages': [{'weight': 6}],
'price_type': 'RETAIL',
'rate_indicator': 'PA',
'service': 'PRIORITY_MAIL_EXPRESS',
'ship_code': '59759',
'test': True,
'to_code': '90210'}}
)
rs.request(
{"carrier"=>"USPS-REST",
"action"=>"GetAllRates",
"params"=>
{"test"=>true,
"price_type"=>"RETAIL",
"rate_indicator"=>"PA",
"service"=>"PRIORITY_MAIL_EXPRESS",
"packages"=>[{"weight"=>6}],
"ship_code"=>"59759",
"to_code"=>"90210"}}
)
rocketshipit.request(
{
"carrier": "USPS-REST",
"action": "GetAllRates",
"params": {
"test": true,
"price_type": "RETAIL",
"rate_indicator": "PA",
"service": "PRIORITY_MAIL_EXPRESS",
"packages": [
{
"weight": 6
}
],
"ship_code": "59759",
"to_code": "90210"
}
}
)