अपना फ़ीडबैक साझा करें:
हम Microsoft Teams डेवलपर दस्तावेज़ों पर आपकी प्रतिक्रिया चाहते हैं। कृपया हमारे छोटे तीन-प्रश्न सर्वेक्षण का उत्तर दें।सर्वेक्षण करें
यह ब्राउज़र अब समर्थित नहीं है.
नवीनतम सुविधाओं, सुरक्षा अपडेट और तकनीकी सहायता का लाभ लेने के लिए Microsoft Edge में अपग्रेड करें.
Your app can fetch transcripts and recordings of a meeting using the meeting ID and the user ID of the meeting organizer, also known as organizer ID. The Graph REST APIs fetch transcripts and recordings based on the meeting ID and organizer ID that are passed as parameters in the API.
नोट
The meeting ID for scheduled meetings may expire in some days if it's unused. It can be revived by using the meeting URL to join the meeting. For more information about meeting expiration timeline for different meeting types, see meeting expiration.
To obtain meeting ID and organizer ID for fetching the transcript and recording, choose one of the two ways:
You can subscribe your app to receive change notifications for scheduled meeting events. When your app is notified about the subscribed meeting events, it can obtain transcripts and recordings, if it's authorized via required Microsoft Entra permissions.
Your app receives notification for the type of meeting events for which it's subscribed:
When your app is notified of a subscribed meeting event, it can retrieve the meeting ID and organizer ID from the notification message. Based on the meeting details obtained, your app can fetch the meeting transcripts and recordings after the meeting has ended.
Obtain meeting details using user-level notification
Choose to subscribe your app to user-level notifications for getting transcripts and recordings of a particular user's meeting event. When a meeting is scheduled for that user, your app is notified. Your app can receive meeting notifications using calendar events as well.
When your app is notified about a subscribed meeting event, it looks for calendar event ID in the notification. Use the event ID to get JoinWebUrl for retrieving a specific chat ID and subscribing to its messages. After your app has subscribed to the chat messages, follow the steps given for tenant-level notifications to obtain meeting ID and organizer ID.
To obtain meeting ID and organizer ID from user-level notification:
Get event ID: Your app gets the eventId property from the notification payload.
In this example, the eventID contained within resource is AAMkADY0NjM1MjRhLTNiNjAtNDBiOC1hYTQxLThkMjAxN2QzMjZhYQBGAAAAAAC03Gz8aL_JQp2Kxvw5a29SBwDFFWHjtoMRTqdrVyQ1h8yLAAAAAAENAADFFWHjtoMRTqdrVyQ1h8yLAAFwC7nAAAA=.
Get meeting URL: Use the event ID to retrieve joinUrl that contains the meeting URL.
Use the following example to request the meeting URL:
HTTP
GET https://graph.microsoft.com/v1.0/users/1273a016-201d-4f95-8083-1b7f99b3edeb/events/AAMkADY0NjM1MjRhLTNiNjAtNDBiOC1hYTQxLThkMjAxN2QzMjZhYQBGAAAAAAC03Gz8aL_JQp2Kxvw5a29SBwDFFWHjtoMRTqdrVyQ1h8yLAAAAAAENAADFFWHjtoMRTqdrVyQ1h8yLAAFwC7nAAAA=
Get chat thread ID: Use the meeting URL obtained in joinUrl to get the chat thread ID. Specify this meeting URL as value for the joinWebUrl parameter while fetching the related meeting.
Use the following example to request the thread ID:
HTTP
GET https://graph.microsoft.com/v1.0/users('14b779ae-cb64-47e7-a512-52fd50a4154d')/onlineMeetings?$filter=JoinWebUrl%20eq%20'https://teams.microsoft.com/l/meetup-join/19%3ameeting_MTM5OTY3MGUtNmY4Mi00Yjg4LTk2MDUtY2IyZGRlNmU1ZjA2%40thread.v2/0?context=%7b%22Tid%22%3a%222432b57b-0abd-43db-aa7b-16eadd115d34%22%2c%22Oid%22%3a%2214b779ae-cb64-47e7-a512-52fd50a4154d%22%7d'
The response payload contains the threadID member in the chatInfo property.
Subscribe to chat messages: Use chat ID to subscribe your app to receive chat messages for that particular meeting. For more information, see subscribe to messages in a chat.
Obtain meeting details using tenant-level notification
Tenant-level notifications are useful if your app is authorized to access all meeting transcripts and recordings across the tenant. Subscribe your app to be notified for events when transcription and recording starts or call ends for scheduled online Teams meetings. After the meeting ends, your app can access and retrieve the meeting transcript and recording.
Get chat entity: Your app can retrieve the chat entity using the chat ID obtained in Step 1. Use the chat entity to get the URL for joining the call. The joinWebUrl member of the onlineMeetingInfo property contains this URL, and is used to obtain meeting ID eventually. The organizer ID is also a part of the response payload.
For more information about chat entity, see get chat.
Use the following example to request chat entity based on the chat ID:
HTTP
GET https://graph.microsoft.com/v1.0/chats/19:meeting_NmU0NTkxYzMtM2Y2My00NzRlLWFmN2YtNTFiMGM5OWM3ZjY2@thread.v2
The response payload contains the following elements:
Organizer ID: It's contained in the id member of the organizer property in the response payload.
URL for meeting call: This URL is used to retrieve the meeting ID, and it's available in the response payload in one of the two scenarios:
If the meeting is an online Teams meeting, the joinWebUrl member of the onlineMeetingInfo property contains this URL.
If the meeting wasn't created as an online meeting from Teams client or Outlook client, it contains the calendarEventId member in the onlineMeetingInfo property. Your app can use the calendarEventId to obtain joinUrl, which is the same as joinWebUrl.
Use the following example to get joinWebUrl from the calendarEventId:
HTTP
GET https://graph.microsoft.com/beta/users/14b779ae-cb64-47e7-a512-52fd50a4154d/events/AAMkAGE3NjJhOTVhLTNkZDQtNDE2OS05ZjU0LTJmOGQ0YTY2YTdiZQBGAAAAAAD3AG5jNnlgQJvdCL_KgXJIBwBsww5BlIxtT7iFyYWrXV3AAAAAAAENAABsww5BlIxtT7iFyYWrXV3AAACSDwYdAAA=
In this example:
The organizer ID is 14b779ae-cb64-47e7-a512-52fd50a4154d.
The response payload of this request contains joinUrl in the onlineMeeting property.
नोट
joinUrl is the same as joinWebUrl.
Example: Response payload that contains the URL to join meeting
Get meeting ID: Now, your app can use joinWebUrl to get the meeting ID.
Use the following example to request the online meeting ID:
HTTP
GET https://graph.microsoft.com/beta/users('14b779ae-cb64-47e7-a512-52fd50a4154d')/onlineMeetings?$filter=JoinWebUrl%20eq%20'https://teams.microsoft.com/l/meetup-join/19%3ameeting_MTM5OTY3MGUtNmY4Mi00Yjg4LTk2MDUtY2IyZGRlNmU1ZjA2%40thread.v2/0?context=%7b%22Tid%22%3a%222432b57b-0abd-43db-aa7b-16eadd115d34%22%2c%22Oid%22%3a%2214b779ae-cb64-47e7-a512-52fd50a4154d%22%7d'
The response payload contains the meeting ID in the id member of the value property.
Fetch transcript or recording: The organizer ID and meeting ID obtained in the Steps 2 and 3 let your app fetch the transcripts or recordings for that particular meeting event.
To fetch transcripts, you'll need to:
Retrieve transcript ID based on organizer ID and meeting ID:
Use the following example to request the transcript ID:
HTTP
GET https://graph.microsoft.com/beta/users('14b779ae-cb64-47e7-a512-52fd50a4154d')/onlineMeetings('MSoxNGI3NzlhZS1jYjY0LTQ3ZTctYTUxMi01MmZkNTBhNDE1NGQqMCoqMTk6bWVldGluZ19ObVUwTlRreFl6TXRNMlkyTXkwME56UmxMV0ZtTjJZdE5URmlNR001T1dNM1pqWTJAdGhyZWFkLnYy')/transcripts
In this example:
The meeting ID is included as the value for onlineMeetings: MSoxNGI3NzlhZS1jYjY0LTQ3ZTctYTUxMi01MmZkNTBhNDE1NGQqMCoqMTk6bW
VldGluZ19ObVUwTlRreFl6TXRNMlkyTXkwME56UmxMV0ZtTjJZdE5URmlNR001T1dNM
1pqWTJAdGhyZWFkLnYy.
The organizer ID is 14b779ae-cb64-47e7-a512-52fd50a4154d.
The response payload contains the transcript ID for the meeting ID and organizer ID in the id member of the value property.
Example: Response payload for getting transcript ID
In this example, the transcript ID is MSMjMCMjMDEyNjJmNjgtOTc2Zi00MzIxLTlhNDQtYThmMmY4ZjQ1ZjVh.
Access and get meeting transcript based on the transcript ID:
Use the following example to request the transcripts for a specific meeting in the .vtt format:
HTTP
GET https://graph.microsoft.com/beta/users('14b779ae-cb64-47e7-a512-52fd50a4154d')/onlineMeetings('MSoxNGI3NzlhZS1jYjY0LTQ3ZTctYTUxMi01MmZkNTBhNDE1NGQqMCoqMTk6bWVldGluZ19ObVUwTlRreFl6TXRNMlkyTXkwME56UmxMV0ZtTjJZdE5URmlNR001T1dNM1pqWTJAdGhyZWFkLnYy')/transcripts('MSMjMCMjMDEyNjJmNjgtOTc2Zi00MzIxLTlhNDQtYThmMmY4ZjQ1ZjVh')/content?$format=text/vtt
The response payload contains the transcripts in the .vtt format.
To fetch recordings, you'll need to:
Retrieve recording ID based on organizer ID and meeting ID:
Use the following example to request the recording ID:
HTTP
GET https://graph.microsoft.com/beta/users/b935e675-5e67-48b9-8d45-249d5f88e964/onlineMeetings/MSpiOTM1ZTY3NS01ZTY3LTQ4YjktOGQ0NS0yNDlkNWY4OGU5NjQqMCoqMTk6bWVldGluZ19ZbU0zTnpJNU9USXRZakU0WlMwME1tUTNMVGt6TVRRdFkyWm1PRGRtWmpsaVptRTNAdGhyZWFkLnYy/recordings/
In this example:
The meeting ID is included as the value for onlineMeetings: MSpiOTM1ZTY3NS01ZTY3LTQ4YjktOGQ0NS0yNDlkNWY4OGU5NjQqMCoqMTk6bWVl
dGluZ19ZbU0zTnpJNU9USXRZakU0WlMwME1tUTNMVGt6TVRRdFkyWm1
PRGRtWmpsaVptRTNAdGhyZWFkLnYy.
The organizer ID is b935e675-5e67-48b9-8d45-249d5f88e964.
The response payload contains the recording ID for the meeting ID and organizer ID in the id member of the value property.
Example: Response payload for getting recording ID
In this example, the recording ID is 7e31db25-bc6e-4fd8-96c7-e01264e9b6fc.
Access and get meeting recording based on the recording ID:
Use the following example to request the recordings for a specific meeting in the .mp4 format:
HTTP
GET https://graph.microsoft.com/beta/users/b935e675-5e67-48b9-8d45-249d5f88e964/onlineMeetings/MSpiOTM1ZTY3NS01ZTY3LTQ4YjktOGQ0NS0yNDlkNWY4OGU5NjQqMCoqMTk6bWVldGluZ19ZbU0zTnpJNU9USXRZakU0WlMwME1tUTNMVGt6TVRRdFkyWm1PRGRtWmpsaVptRTNAdGhyZWFkLnYy/recordings/7e31db25-bc6e-4fd8-96c7-e01264e9b6fc/content?$format=video/mp4
The response payload contains the recordings in the .mp4 format.
Use Bot Framework to get meeting ID and organizer ID
Your app can use the Bot Framework for obtaining meeting ID and organizer ID. The bot can receive meeting start or end events automatically from all the scheduled online meetings.
Use the following example to obtain meeting ID and organizer ID using a bot app:
JSON
GET /v1/meetings/{meetingId}
The response payload contains:
The meeting ID in the msGraphResourceId member of the details property.
The organizer ID in the id member of the organizer property.
Example: Response payload for getting meeting details
The meeting ID is included as the value for msGraphResourceId: MSo2NzAyYWZiNi0xMDliLTRjMzItYTE0MS02ZTY1NDY5NTAyYjkqMCoqMTk6bWVl
dGluZ19OV00xTVRJNU56TXROamd6TXkwMFlXUTRMVGhtT1dRdFpUZzNNVEJtT1RnM
1ltVXpAdGhyZWFkLnYy.
The organizer ID is contained as the value for aadObjectId for organizer: 6702afb6-109b-4c32-a141-6e65469502b9.
After your app obtains the meeting ID and the organizer ID, it triggers the Graph APIs to fetch transcript content and recording using these meeting details.
Code samples
You can try the following code sample for a bot app:
Sample name
Description
.NET
Node.js
Meeting transcription
This is a sample application which demonstrates how to get meeting transcript using Graph API and show it in the dialog (referred as task module in TeamsJS v1.x).
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.
Platform Docs प्रतिक्रिया
Platform Docs एक ओपन सोर्स प्रोजेक्ट है. प्रतिक्रिया प्रदान करने के लिए लिंक का चयन करें:
Learn how to authenticate users with Microsoft identity platform, configure permissions, and retrieve user data for your Microsoft Teams app using the Microsoft Graph API.
Create an online meeting with a custom specified external ID. If the external ID already exists, this API will return the **onlineMeeting** object with that external ID.