For Developers
People
These endpoints help you retrieve details about users who have logged into your platform with Edlink. For more details on the data model, visit the Person document on the Graph API. The information retrieved from these endpoints will be identical to the corresponding user objects in the Graph API. This makes it very simple to match up a user after their login with a pre-imported user.
Fetch Your Own Profile Data
GET https://ed.link/api/v1/my/profile
This endpoint retrieves the personal information of the user that corresponds to the provided bearer token. There are no special permissions required to access this endpoint, as a user can always retrieve their own details. This endpoint returns a standard user object.
Sample Request
const user = await axios.get('https://ed.link/api/v1/my/profile', {
headers: {
Authorization: `Bearer ${user_access_token}`
}
});
Sample Response
{
"$data": {
"id": "af40a896-5f96-41ca-8031-84cdf72e3559",
"created_date": "2019-11-19T17:13:43.655Z",
"updated_date": "2020-02-11T02:57:11.106Z",
"first_name": "John",
"middle_name": "",
"last_name": "Doe",
"display_name": "John Doe",
"picture_url": "",
"birthday": null,
"gender": null,
"email": "jdoe@ed.link",
"phone": "",
"locale": "",
"time_zone": ""
}
}