Skip to content

Instantly share code, notes, and snippets.

@vman
Last active January 31, 2022 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vman/c71e0123e562ed11ba8c17597894be6c to your computer and use it in GitHub Desktop.
Save vman/c71e0123e562ed11ba8c17597894be6c to your computer and use it in GitHub Desktop.
import * as microsoftTeams from "@microsoft/teams-js";
useEffect(() => {
microsoftTeams.initialize();
microsoftTeams.getContext(async function (context: microsoftTeams.Context) {
const rawResponse = await fetch(`/Meeting?userId=${context.userObjectId}&meetingId=${context.meetingId}&tenantId=${context.tid}`, {
method: 'GET',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
}
});
});
}, []);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment