Versions Compared

Key

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

...

A request for a token takes the following structure. Refer to the table below for the correct username and password to pass in the callNote that USERNAME should be your TCIA username and PASSWORD should be your TCIA password.

Code Block
titleStructure of a Request for a Token
curl -d "username=<username>USERNAME&password=<password>PASSWORD&client_id=<theClientIDFromHelpDesk>&client_secret=<theClientSecretFromHelpDesk>&NBIA&grant_type=password" -X POST -k https://services.cancerimagingarchive.net/nbia-api/oauth/token

...

Code Block
titleNBIA REST API Call for Testing an API without a Token
curl -d "username=nbia_guest&password=&client_id=NBIA&grant_type=password" -X POST -k https://services.cancerimagingarchive.net/nbia-api/oauth/token

...