Independentsoft
Professional software libraries for developers
Home
Purchase
Support
Company
Contact
Graph .NET
>
Tutorial
> Get meeting transcripts
The following example shows you how to get transcripts for an online meeting.
C# example
using System; using System.Collections.Generic; using System.IO; using System.Threading.Tasks; using Independentsoft.Graph; using Independentsoft.Graph.Users; using Independentsoft.Graph.Calendars; namespace Sample { class Program { static async Task Main(string[] args) { try { GraphClient client = new GraphClient(); client.ClientId = "63333333-209e-454e-b7bd-55a4d201270f"; client.Tenant = "independentsoft.onmicrosoft.com"; client.ClientSecret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; UserId userId = new UserId("info@independentsoft.onmicrosoft.com"); string meetingId = "meeting-id-123"; IList<CallTranscript> transcripts = await client.GetOnlineMeetingTranscripts(meetingId, userId); for (int i = 0; i < transcripts.Count; i++) { Console.WriteLine("Id = " + transcripts[i].Id); Console.WriteLine("CreatedDateTime = " + transcripts[i].CreatedDateTime); byte[] content = await client.GetOnlineMeetingTranscriptContent(meetingId, transcripts[i].Id, userId); File.WriteAllBytes("Transcript_" + i + ".vtt", content); Console.WriteLine("Saved transcript to file."); Console.WriteLine(""); } Console.Read(); } catch (GraphException ex) { Console.WriteLine("Error: " + ex.Code); Console.WriteLine("Message: " + ex.Message); Console.Read(); } } } }
VB example
Imports System.Collections.Generic Imports System.IO Imports Independentsoft.Graph Imports Independentsoft.Graph.Users Imports Independentsoft.Graph.Calendars Namespace Sample Class Module1 Shared Sub Main(ByVal args As String()) Dim task = New Task(AddressOf Run) task.Start() Console.Read() End Sub Shared Async Sub Run() Try Dim client As GraphClient = New GraphClient() client.ClientId = "63333333-209e-454e-b7bd-55a4d201270f" client.Tenant = "independentsoft.onmicrosoft.com" client.ClientSecret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" Dim userId As UserId = New UserId("info@independentsoft.onmicrosoft.com") Dim meetingId As String = "meeting-id-123" Dim transcripts As IList(Of CallTranscript) = Await client.GetOnlineMeetingTranscripts(meetingId, userId) For i As Integer = 0 To transcripts.Count - 1 Console.WriteLine("Id = " & transcripts(i).Id) Console.WriteLine("CreatedDateTime = " & transcripts(i).CreatedDateTime) Dim content As Byte() = Await client.GetOnlineMeetingTranscriptContent(meetingId, transcripts(i).Id, userId) File.WriteAllBytes("Transcript_" & i & ".vtt", content) Console.WriteLine("Saved transcript to file.") Console.WriteLine("") Next Catch ex As GraphException Console.WriteLine("Error: " + ex.Code) Console.WriteLine("Error: " + ex.Message) Console.Read() End Try End Sub End Class End Namespace
Need help? Ask our developers:
Name*
Email*
Message*