{
"carrier": "USPS-REST",
"action": "Authenticate",
"params": {
"endpoint": "https://apis.usps.com",
"client_id": "abc123",
"client_secret": "def987"
}
}
<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
'carrier' => 'USPS-REST',
'action' => 'Authenticate',
'params' =>
array (
'endpoint' => 'https://apis.usps.com',
'client_id' => 'abc123',
'client_secret' => 'def987',
),
)
);
rs.request(
{'action': 'Authenticate',
'carrier': 'USPS-REST',
'params': {'client_id': 'abc123',
'client_secret': 'def987',
'endpoint': 'https://apis.usps.com'}}
)
rs.request(
{"carrier"=>"USPS-REST",
"action"=>"Authenticate",
"params"=>
{"endpoint"=>"https://apis.usps.com",
"client_id"=>"abc123",
"client_secret"=>"def987"}}
)
rocketshipit.request(
{
"carrier": "USPS-REST",
"action": "Authenticate",
"params": {
"endpoint": "https://apis.usps.com",
"client_id": "abc123",
"client_secret": "def987"
}
}
)