OD-REST - Authenticate

Carrier
OD-REST
Action
Authenticate
{
  "carrier": "OD-REST",
  "action": "authenticate",
  "params": {
    "username": "YOUR_ODFL_USERNAME",
    "password": "YOUR_ODFL_PASSWORD"
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'OD-REST',
  'action' => 'authenticate',
  'params' => 
  array (
    'username' => 'YOUR_ODFL_USERNAME',
    'password' => 'YOUR_ODFL_PASSWORD',
  ),
)
);

rs.request(
  {'action': 'authenticate',
 'carrier': 'OD-REST',
 'params': {'password': 'YOUR_ODFL_PASSWORD', 'username': 'YOUR_ODFL_USERNAME'}}

)

rs.request(
  {"carrier"=>"OD-REST",
 "action"=>"authenticate",
 "params"=>
  {"username"=>"YOUR_ODFL_USERNAME", "password"=>"YOUR_ODFL_PASSWORD"}}

)

rocketshipit.request(
  {
  "carrier": "OD-REST",
  "action": "authenticate",
  "params": {
    "username": "YOUR_ODFL_USERNAME",
    "password": "YOUR_ODFL_PASSWORD"
  }
}
)

← All OD-REST examples