I want to get current user email address on Miro board load using Miro object. Please help me which object we have to use to get current user email.
Answered
How to get currentUser email using Miro object
Best answer by Anthony Roux
Hi
You can use the Get Current User REST API.
A cURL example would be (don’t forget to replace {access_token} by your access_token)
Query:
curl --request GET \
--url https://api.miro.com/v1/users/me \
--header 'Authorization: Bearer {access_token}'
Response:
{
"type" : "user",
"id" : "xxx",
"name" : "Anthony Roux",
"createdAt" : "2021-04-01T09:35:41Z",
"company" : "Miro",
"role" : "developer",
"industry" : null,
"email" : "xx@miro.com",
"state" : "registered",
"picture" : {
"type" : "picture",
"imageUrl" : "xxx",
"id" : "xxx"
}
}
Regards,
Anthony
This topic has been closed for comments
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.