Get user details with authentication
|
getUserDetailsWithAuth |
|
|---|---|
|
URL |
/api/v1/getUserDetailsWithAuth |
|
Description |
Used by the IonReporterUploader plugin to return user details based on the API token. |
|
Method |
POST |
|
Request query parameters |
String. Mandatory. Valid user API token. |
|
Example request |
|
|
Request headers |
Content-Type: application/x-www-form-urlencoded |
|
Returns |
|
Response fields
|
Status code |
Response message |
|---|---|
|
200 |
Successful response |
|
400 |
Bad request |
|
404 |
Not found |
|
401 |
User is not authenticated |
|
500 |
Error occurred |
Curl command
curl -X POST -k https://<server name>/api/v1/getUserDetailsWithAuth -H "Content-Type:application/x-www-form-urlencoded" -d "auth=NDliYmU0OWE4MzA3YmE2MWVmMjhlZTlhOTEyMmE5ODM0NzU3NjQ4OGM5NzVjODU3YjdlMWM4Mjk3OGYzODE4Yw"
