Get current user
GET
/api/v1/auth/meGets information about the current user.
Responses
OK
JSON
{
"email": "user@example.com",
"role": "annotator"
}
GET
/api/v1/auth/meSamples
cURL
curl -X GET https://openfish.appspot.com/api/v1/auth/me
JavaScript
fetch("https://openfish.appspot.com/api/v1/auth/me")
.then(response => response.json())
.then(data => console.log(data));
PHP
file_get_contents("https://openfish.appspot.com/api/v1/auth/me");
Python
import requests
response = requests.get("https://openfish.appspot.com/api/v1/auth/me")
print(response.json())