{
"carrier": "USPS",
"action": "AddressValidate",
"params": {
"username": "YOURUSERNAME",
"to_name": "John Doe",
"to_addr1": "2920 Zoo Drive",
"to_state": "CA",
"to_city": "San Diego",
"to_code": "92101",
"to_country": "US",
"test": true
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'USPS',
'action' => 'AddressValidate',
'params' =>
array (
'username' => 'YOURUSERNAME',
'to_name' => 'John Doe',
'to_addr1' => '2920 Zoo Drive',
'to_state' => 'CA',
'to_city' => 'San Diego',
'to_code' => '92101',
'to_country' => 'US',
'test' => true,
),
)
);
rs.request(
{'action': 'AddressValidate',
'carrier': 'USPS',
'params': {'test': True,
'to_addr1': '2920 Zoo Drive',
'to_city': 'San Diego',
'to_code': '92101',
'to_country': 'US',
'to_name': 'John Doe',
'to_state': 'CA',
'username': 'YOURUSERNAME'}}
)
rs.request(
{"carrier"=>"USPS",
"action"=>"AddressValidate",
"params"=>
{"username"=>"YOURUSERNAME",
"to_name"=>"John Doe",
"to_addr1"=>"2920 Zoo Drive",
"to_state"=>"CA",
"to_city"=>"San Diego",
"to_code"=>"92101",
"to_country"=>"US",
"test"=>true}}
)
rocketshipit.request(
{
"carrier": "USPS",
"action": "AddressValidate",
"params": {
"username": "YOURUSERNAME",
"to_name": "John Doe",
"to_addr1": "2920 Zoo Drive",
"to_state": "CA",
"to_city": "San Diego",
"to_code": "92101",
"to_country": "US",
"test": true
}
}
)