List contentSharingSessions
Article
03/02/2023
2 contributors
Feedback
In this article
Namespace: microsoft.graph
Retrieve a list of contentSharingSession objects in a call.
Permissions
Permission type
Permissions (from least to most privileged)
Delegated (work or school account)
Not supported.
Delegated (personal Microsoft account)
Not supported.
Application
Calls.JoinGroupCallAsGuest.All, Calls.JoinGroupCall.All, Calls.Initiate.All, Calls.InitiateGroupCall.All
HTTP request
GET /communications/calls/{id}/contentSharingSessions
Name
Description
Authorization
Bearer {token}. Required.
Request body
Do not supply a request body for this method.
Response
If successful, this method returns a 200 OK
response code and a collection of contentSharingSession objects in the response body.
Example
Request
The following is an example of a request.
GET https://graph.microsoft.com/v1.0/communications/calls/7531d31f-d10d-44de-802f-c569dbca451c/contentSharingSessions
// Code snippets are only available for the latest version. Current version is 5.x
var graphClient = new GraphServiceClient(requestAdapter);
var result = await graphClient.Communications.Calls["{call-id}"].ContentSharingSessions.GetAsync();
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation .
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go"
//other-imports
)
graphClient := msgraphsdk.NewGraphServiceClientWithCredentials(cred, scopes)
result, err := graphClient.Communications().Calls().ByCallId("call-id").ContentSharingSessions().Get(context.Background(), nil)
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation .
GraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
ContentSharingSessionCollectionPage contentSharingSessions = graphClient.communications().calls("7531d31f-d10d-44de-802f-c569dbca451c").contentSharingSessions()
.buildRequest()
.get();
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation .
const options = {
authProvider,
};
const client = Client.init(options);
let contentSharingSessions = await client.api('/communications/calls/7531d31f-d10d-44de-802f-c569dbca451c/contentSharingSessions')
.get();
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation .
<?php
// THIS SNIPPET IS A PREVIEW FOR THE KIOTA BASED SDK. NON-PRODUCTION USE ONLY
$graphServiceClient = new GraphServiceClient($requestAdapter);
$result = $graphServiceClient->communications()->calls()->byCallId('call-id')->contentSharingSessions()->get();
For details about how to add the SDK to your project and create an authProvider instance, see the SDK documentation .
Response
The following is an example of the response.
HTTP/1.1 200 OK
Content-Type: application/json
{
"value":[
{
"@odata.type":"#microsoft.graph.contentSharingSession",
"id":"a7ebfb2d-871e-419c-87af-27290b22e8db"
},
{
"@odata.type":"#microsoft.graph.contentSharingSession",
"id":"278405a3-f568-4b3e-b684-009193463064"
}
],
"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#communications/calls('7531d31f-d10d-44de-802f-c569dbca451c')/contentSharingSessions"
}