{
"carrier": "canada-rest",
"action": "getallrates",
"params": {
"client_id": "YOUR_CLIENT_ID",
"client_secret": "YOUR_CLIENT_SECRET",
"account_number": "YOUR_CUSTOMER_NUMBER",
"ship_code": "K2B8J6",
"to_country": "CA",
"to_code": "J0E1X0",
"packages": [
{
"weight": 1.5,
"length": 30,
"width": 20,
"height": 10
}
]
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'canada-rest',
'action' => 'getallrates',
'params' =>
array (
'client_id' => 'YOUR_CLIENT_ID',
'client_secret' => 'YOUR_CLIENT_SECRET',
'account_number' => 'YOUR_CUSTOMER_NUMBER',
'ship_code' => 'K2B8J6',
'to_country' => 'CA',
'to_code' => 'J0E1X0',
'packages' =>
array (
0 =>
array (
'weight' => 1.5,
'length' => 30,
'width' => 20,
'height' => 10,
),
),
),
)
);
rs.request(
{'action': 'getallrates',
'carrier': 'canada-rest',
'params': {'account_number': 'YOUR_CUSTOMER_NUMBER',
'client_id': 'YOUR_CLIENT_ID',
'client_secret': 'YOUR_CLIENT_SECRET',
'packages': [{'height': 10,
'length': 30,
'weight': 1.5,
'width': 20}],
'ship_code': 'K2B8J6',
'to_code': 'J0E1X0',
'to_country': 'CA'}}
)
rs.request(
{"carrier"=>"canada-rest",
"action"=>"getallrates",
"params"=>
{"client_id"=>"YOUR_CLIENT_ID",
"client_secret"=>"YOUR_CLIENT_SECRET",
"account_number"=>"YOUR_CUSTOMER_NUMBER",
"ship_code"=>"K2B8J6",
"to_country"=>"CA",
"to_code"=>"J0E1X0",
"packages"=>[{"weight"=>1.5, "length"=>30, "width"=>20, "height"=>10}]}}
)
rocketshipit.request(
{
"carrier": "canada-rest",
"action": "getallrates",
"params": {
"client_id": "YOUR_CLIENT_ID",
"client_secret": "YOUR_CLIENT_SECRET",
"account_number": "YOUR_CUSTOMER_NUMBER",
"ship_code": "K2B8J6",
"to_country": "CA",
"to_code": "J0E1X0",
"packages": [
{
"weight": 1.5,
"length": 30,
"width": 20,
"height": 10
}
]
}
}
)