You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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.
The text was updated successfully, but these errors were encountered: