How to fetch members' email id from trello api

I am working on slack bot that has access to a team's slack and trello workspace both. The bot needs to make a connection between slack member ids and trello member ids. The members may have their names different in each platform, the only matching attribute is their mail id. However, I can't fetch each member's email id from trello api calls. The documentation has a hint that it's probably not possible. In that case, is there any other solution? using python library 'trello' and 'slackclient' for making api calls in trello and slack respectively.

 

7 answers

This widget could not be displayed.
Gonchik Tsymzhitov Community Champion Nov 04, 2017

Hi! 

Kindly use this module 

https://github.com/sarumont/py-trello/blob/master/trello/member.py

Because in class member you can see useful methods for you.

 

Cheers,

Gonchik Tsymzhitov

This widget could not be displayed.
Oscar Triscon Community Champion Nov 04, 2017

What token are you using to retrieve this information? In order to be able to obtain the member's email, you need to have the user authorize your application and give permission to obtain their email address. 

This widget could not be displayed.

I have exactly the same query, to be able to message a Slack User based on activity in Trello I want to tie the two accounts together but I don't see the way to get their email address from the Trello user.

Also is it possible to get a Trello user from an email address (ie. the opposite way around)?

You can use the account scope when requesting token and get email from payload.

Use this API to get user email:


https://api.trello.com/1/members/me 

This widget could not be displayed.

Hello, 

I'm also facing this issue, please help & share if its possible.

This widget could not be displayed.

Use this API to get user details:
https://api.trello.com/1/members/me 

Make sure to add "account" scope when requesting user token.

The payload has an email field which contains user's email id.

This widget could not be displayed.

Use this API to get user details:


https://api.trello.com/1/members/me 


Make sure to add "account" scope when requesting user token.

The payload has an email field which contains user's email id.

This widget could not be displayed.

+1
please help with this problem!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Sep 11, 2018 in Trello

There’s a Power-up for That!

So you’re using Trello at work, at home and to track your new DIY crafts. The family and co-workers are all on board and everything is organized, color coded and has a due date. But still, there’s so...

259 views 1 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you