Select allOpen in new window
© 1996-2023 Experts Exchange, LLC. All rights reserved. Covered by US Patent
What you need to do is construct a POST request to https://api.ltl.xpo.com/token
You will need to set the header of the request to include an Authorization: basic header with your security token
Authorization: Basic <token>
Where token is made up of the base64 encoded result of your consumer key and consumer secret concatenated to each other.
You then send as the body of the request the url encoded grant_type, username and password values
Open in new window
This would typically be done from a server side process (PHP CUrl for example).
If all checks out you should get back a JSON response which contains a property access_token the value of which must be used in all other API calls - it is a temporary access token - if it expires you need to repeat the above process to refresh it.