{
"carrier": "UPS",
"action": "SubmitShipment",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"key": "YOUR_KEY",
"test": true,
"packages": [
{
"weight": 6,
"length": 7
}
],
"dry_ice": {
"regulation_set": "CFR",
"weight": 2,
"medical_use": true
},
"currency": "USD",
"service": "02",
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"ship_phone": "1231231234",
"ship_country": "US",
"to_name": "John Doe",
"to_addr1": "940 Presidio Ave",
"to_addr2": "#103",
"to_state": "CA",
"to_city": "San Francisco",
"to_code": "94115",
"to_country": "US",
"image_type": "PNG"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'UPS',
'action' => 'SubmitShipment',
'params' =>
array (
'username' => 'YOUR_USERNAME',
'password' => 'YOUR_PASSWORD',
'key' => 'YOUR_KEY',
'test' => true,
'packages' =>
array (
0 =>
array (
'weight' => 6,
'length' => 7,
),
),
'dry_ice' =>
array (
'regulation_set' => 'CFR',
'weight' => 2,
'medical_use' => true,
),
'currency' => 'USD',
'service' => '02',
'shipper' => 'RocketShipIt',
'ship_addr1' => '123 Main St',
'ship_city' => 'Whitehall',
'ship_state' => 'MT',
'ship_code' => '59759',
'ship_phone' => '1231231234',
'ship_country' => 'US',
'to_name' => 'John Doe',
'to_addr1' => '940 Presidio Ave',
'to_addr2' => '#103',
'to_state' => 'CA',
'to_city' => 'San Francisco',
'to_code' => '94115',
'to_country' => 'US',
'image_type' => 'PNG',
),
)
);
rs.request(
{'action': 'SubmitShipment',
'carrier': 'UPS',
'params': {'currency': 'USD',
'dry_ice': {'medical_use': True,
'regulation_set': 'CFR',
'weight': 2},
'image_type': 'PNG',
'key': 'YOUR_KEY',
'packages': [{'length': 7, 'weight': 6}],
'password': 'YOUR_PASSWORD',
'service': '02',
'ship_addr1': '123 Main St',
'ship_city': 'Whitehall',
'ship_code': '59759',
'ship_country': 'US',
'ship_phone': '1231231234',
'ship_state': 'MT',
'shipper': 'RocketShipIt',
'test': True,
'to_addr1': '940 Presidio Ave',
'to_addr2': '#103',
'to_city': 'San Francisco',
'to_code': '94115',
'to_country': 'US',
'to_name': 'John Doe',
'to_state': 'CA',
'username': 'YOUR_USERNAME'}}
)
rs.request(
{"carrier"=>"UPS",
"action"=>"SubmitShipment",
"params"=>
{"username"=>"YOUR_USERNAME",
"password"=>"YOUR_PASSWORD",
"key"=>"YOUR_KEY",
"test"=>true,
"packages"=>[{"weight"=>6, "length"=>7}],
"dry_ice"=>{"regulation_set"=>"CFR", "weight"=>2, "medical_use"=>true},
"currency"=>"USD",
"service"=>"02",
"shipper"=>"RocketShipIt",
"ship_addr1"=>"123 Main St",
"ship_city"=>"Whitehall",
"ship_state"=>"MT",
"ship_code"=>"59759",
"ship_phone"=>"1231231234",
"ship_country"=>"US",
"to_name"=>"John Doe",
"to_addr1"=>"940 Presidio Ave",
"to_addr2"=>"#103",
"to_state"=>"CA",
"to_city"=>"San Francisco",
"to_code"=>"94115",
"to_country"=>"US",
"image_type"=>"PNG"}}
)
rocketshipit.request(
{
"carrier": "UPS",
"action": "SubmitShipment",
"params": {
"username": "YOUR_USERNAME",
"password": "YOUR_PASSWORD",
"key": "YOUR_KEY",
"test": true,
"packages": [
{
"weight": 6,
"length": 7
}
],
"dry_ice": {
"regulation_set": "CFR",
"weight": 2,
"medical_use": true
},
"currency": "USD",
"service": "02",
"shipper": "RocketShipIt",
"ship_addr1": "123 Main St",
"ship_city": "Whitehall",
"ship_state": "MT",
"ship_code": "59759",
"ship_phone": "1231231234",
"ship_country": "US",
"to_name": "John Doe",
"to_addr1": "940 Presidio Ave",
"to_addr2": "#103",
"to_state": "CA",
"to_city": "San Francisco",
"to_code": "94115",
"to_country": "US",
"image_type": "PNG"
}
}
)