Retrieving applicants account data
Retrieving applicants account data
The /me endpoint returns relevant applicant account data.
By sending the following GET-request, you can retrieve an ApplicantData-object:
1 2 |
curl -i -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X GET "https://api.softgarden.io/api/rest/v2/frontend/me" |
with TOKEN being a user access token. It is used to determine the validity of this request.
Path parameters
– none –
Query parameters
– none –
Response values
Upon | Returned value | Description |
---|---|---|
success | JSON-encoded ApplicantData-object | Look at the ApplicantData-page for more information. The passwort-attribute will be null, since you are never allowed to extract the users password out of the database. |
failure | 500 – INTERNAL SERVER ERROR | When an error appears while processing your request, e.g. when the eventId was wrong |
authorization error | 401 / 403 | See here for details. |
Example response value
1 2 3 4 5 6 7 8 9 10 11 12 13 |
{ "salutation": "1", "firstname": "Joe", "lastname": "doe", "email": "joe.doe@randomprovider.com", "workEmail": null, "username": "jdoe64", "password": null, "policyAccepted": true, "locale": null, "creatorIp": null, "internal": false } |