Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hello everyone, please how do I get the user's email? #71

Closed
faelp22 opened this issue Feb 14, 2023 · 2 comments · Fixed by #74
Closed

Hello everyone, please how do I get the user's email? #71

faelp22 opened this issue Feb 14, 2023 · 2 comments · Fixed by #74

Comments

@faelp22
Copy link

faelp22 commented Feb 14, 2023

I'm migrating from the Java SDK to Go and one of the features I need is "getMember". I haven't found it or I don't know if it's implemented here.

In the Java SDK I do it this way
CompletableFuture<TeamsChannelAccount> member = TeamsInfo.getMember(turnContext, turnContext.getActivity().getFrom().getId()); if (member.get().getAadObjectId() != null) { profile.setName(member.get().getGivenName()); profile.setEmail(member.get().getEmail().toLowerCase()); }

I would like to know if it is possible to get the user's email using this package and if not, I would like to implement this functionality.

If it is to be implemented, I would like to know if this information already comes in the request or if I will need to consume an API to fetch it.

I thank the attention.

@pkosiec
Copy link
Contributor

pkosiec commented Oct 27, 2023

Hey @faelp22, this will be possible after merging PR #74. Once you have team ID + member ID, you'll be able to use this new Get method 👍

@faelp22
Copy link
Author

faelp22 commented Oct 30, 2023

Thank you very much, this will be very useful in my activities and I believe it will help other people too!

PrasadG193 pushed a commit that referenced this issue Nov 30, 2023
Hi,
First of all, awesome library! We were missing an ability to send
authenticated requests for team details. That's why I implemented such
functionality in the Connector Client.

This PR brings two improvements:
- Support of the `Get` method for Connector Client (to get channels,
team details, etc.)
- Read more:
https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/get-teams-context?tabs=json
- Remove unused `activity` for the Client `Delete` method

Let me know what you think!
Cheers!

Resolves #71
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants