-
-
Save vman/c71e0123e562ed11ba8c17597894be6c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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