{
"carrier": "stamps",
"action": "SubmitShipment",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"notify": [
{
"email": "bob@email.com"
}
],
"packages": [
{
"weight": 5,
"length": 6,
"width": 7,
"height": 8,
"packaging_type": "Package"
}
],
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"ship_phone": "1231231234",
"to_name": "John Doe",
"to_addr1": "123 Dont ship",
"to_state": "MT",
"to_city": "Whitehall",
"to_code": "59759",
"test": true,
"service": "US-PM",
"reference_value": "asdf"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'stamps',
'action' => 'SubmitShipment',
'params' =>
array (
'username' => 'YOUR_USERNAME',
'password' => 'YOUR_PASSWORD',
'notify' =>
array (
0 =>
array (
'email' => 'bob@email.com',
),
),
'packages' =>
array (
0 =>
array (
'weight' => 5,
'length' => 6,
'width' => 7,
'height' => 8,
'packaging_type' => 'Package',
),
),
'shipper' => 'RocketShipIt',
'ship_addr1' => '123 Main St',
'ship_city' => 'Whitehall',
'ship_state' => 'MT',
'ship_code' => '59759',
'ship_phone' => '1231231234',
'to_name' => 'John Doe',
'to_addr1' => '123 Dont ship',
'to_state' => 'MT',
'to_city' => 'Whitehall',
'to_code' => '59759',
'test' => true,
'service' => 'US-PM',
'reference_value' => 'asdf',
),
)
);
rs.request(
{'action': 'SubmitShipment',
'carrier': 'stamps',
'params': {'notify': [{'email': 'bob@email.com'}],
'packages': [{'height': 8,
'length': 6,
'packaging_type': 'Package',
'weight': 5,
'width': 7}],
'password': 'YOUR_PASSWORD',
'reference_value': 'asdf',
'service': 'US-PM',
'ship_addr1': '123 Main St',
'ship_city': 'Whitehall',
'ship_code': '59759',
'ship_phone': '1231231234',
'ship_state': 'MT',
'shipper': 'RocketShipIt',
'test': True,
'to_addr1': '123 Dont ship',
'to_city': 'Whitehall',
'to_code': '59759',
'to_name': 'John Doe',
'to_state': 'MT',
'username': 'YOUR_USERNAME'}}
)
rs.request(
{"carrier"=>"stamps",
"action"=>"SubmitShipment",
"params"=>
{"username"=>"YOUR_USERNAME",
"password"=>"YOUR_PASSWORD",
"notify"=>[{"email"=>"bob@email.com"}],
"packages"=>
[{"weight"=>5,
"length"=>6,
"width"=>7,
"height"=>8,
"packaging_type"=>"Package"}],
"shipper"=>"RocketShipIt",
"ship_addr1"=>"123 Main St",
"ship_city"=>"Whitehall",
"ship_state"=>"MT",
"ship_code"=>"59759",
"ship_phone"=>"1231231234",
"to_name"=>"John Doe",
"to_addr1"=>"123 Dont ship",
"to_state"=>"MT",
"to_city"=>"Whitehall",
"to_code"=>"59759",
"test"=>true,
"service"=>"US-PM",
"reference_value"=>"asdf"}}
)
rocketshipit.request(
{
"carrier": "stamps",
"action": "SubmitShipment",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"notify": [
{
"email": "bob@email.com"
}
],
"packages": [
{
"weight": 5,
"length": 6,
"width": 7,
"height": 8,
"packaging_type": "Package"
}
],
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"ship_phone": "1231231234",
"to_name": "John Doe",
"to_addr1": "123 Dont ship",
"to_state": "MT",
"to_city": "Whitehall",
"to_code": "59759",
"test": true,
"service": "US-PM",
"reference_value": "asdf"
}
}
)