Get user by email
GET
/api/v1/users/{email}Roles required:
Gets a user when provided with an email.
Parameters
Path Parameters
email*
Typestring
RequiredExample
user@example.com
Responses
OK
JSON
{
"email": "user@example.com",
"role": "annotator"
}
GET
/api/v1/users/{email}Samples
cURL
curl -X GET https://openfish.appspot.com/api/v1/users/{email}
JavaScript
fetch("https://openfish.appspot.com/api/v1/users/{email}")
.then(response => response.json())
.then(data => console.log(data));
PHP
file_get_contents("https://openfish.appspot.com/api/v1/users/{email}");
Python
import requests
response = requests.get("https://openfish.appspot.com/api/v1/users/{email}")
print(response.json())