{
"carrier": "USPS-REST",
"action": "GetAllRates",
"params": {
"test": true,
"key": "your-key-from-authenticate-request",
"account_number": "1000005549",
"service": "USPS_GROUND_ADVANTAGE",
"price_type": "CONTRACT",
"packages": [
{
"weight": 0.75
}
],
"ship_code": "65556",
"to_code": "90210"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'USPS-REST',
'action' => 'GetAllRates',
'params' =>
array (
'test' => true,
'key' => 'your-key-from-authenticate-request',
'account_number' => '1000005549',
'service' => 'USPS_GROUND_ADVANTAGE',
'price_type' => 'CONTRACT',
'packages' =>
array (
0 =>
array (
'weight' => 0.75,
),
),
'ship_code' => '65556',
'to_code' => '90210',
),
)
);
rs.request(
{'action': 'GetAllRates',
'carrier': 'USPS-REST',
'params': {'account_number': '1000005549',
'key': 'your-key-from-authenticate-request',
'packages': [{'weight': 0.75}],
'price_type': 'CONTRACT',
'service': 'USPS_GROUND_ADVANTAGE',
'ship_code': '65556',
'test': True,
'to_code': '90210'}}
)
rs.request(
{"carrier"=>"USPS-REST",
"action"=>"GetAllRates",
"params"=>
{"test"=>true,
"key"=>"your-key-from-authenticate-request",
"account_number"=>"1000005549",
"service"=>"USPS_GROUND_ADVANTAGE",
"price_type"=>"CONTRACT",
"packages"=>[{"weight"=>0.75}],
"ship_code"=>"65556",
"to_code"=>"90210"}}
)
rocketshipit.request(
{
"carrier": "USPS-REST",
"action": "GetAllRates",
"params": {
"test": true,
"key": "your-key-from-authenticate-request",
"account_number": "1000005549",
"service": "USPS_GROUND_ADVANTAGE",
"price_type": "CONTRACT",
"packages": [
{
"weight": 0.75
}
],
"ship_code": "65556",
"to_code": "90210"
}
}
)