...
Code Block | ||
---|---|---|
| ||
# Request for refreshing the token curl -X -v -d "username=USERNAME&client_id=nbia&grant_type=refresh_token&refresh_token=YOUR_REFRESH_TOKEN" -X POST -k https://nbia.cancerimagingarchive.net/nbia-api/oauth/token |
In the following result, 119
is 7200
is the seconds before the token expires.
...
Code Block | ||
---|---|---|
| ||
# Request for logout curl -X -v -d "Authorization:Bearer YOUR_ACCESS_TOKEN" -k "https://services.cancerimagingarchive.net/nbia-api/logout" |
...