Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

With API 6.0 authentication and authorization is done trough OAuth 2.

...

Code Block
languagejava
{
    "statusCode": 401,
    "statusText": "Unauthorized",
    "message": "Token expired.",
    "date": "2019-11-13T06:26:01",
    "statusFamily": "CLIENT_ERROR",
    "method": "GET",
    "uri": "http://platform-dev.dataloy.com/ws/rest/Cargo?filter=subCargos.freight%28GTE%292500000"


The client should not ask for a new token for each call but using still use the same token as long as it is still valid.