Get presence does not work

%3CLINGO-SUB%20id%3D%22lingo-sub-1503783%22%20slang%3D%22en-US%22%3EGet%20presence%20does%20not%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1503783%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22votecell%20post-layout--left%22%3E%3CDIV%20class%3D%22js-voting-container%20grid%20fd-column%20ai-stretch%20gs4%20fc-black-200%22%3E%3CSPAN%3EI%20tried%20to%20call%20Getpresence%20graph%20Api%26nbsp%3B%20method%20in%20.net%20%2C%20but%20it%20doesn%E2%80%99t%20recognize%20Presence.i%20think%20it%20does%20not%20appear%20to%20give%20the%20method%20in%20the%20SDK%20i%20used%20%2C%20why%20%2CI%20have%20no%20idea.%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22js-voting-container%20grid%20fd-column%20ai-stretch%20gs4%20fc-black-200%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22postcell%20post-layout--right%22%3E%3CDIV%20class%3D%22post-text%22%3E%3CP%3EGraphServiceClient%20graphClient%20%3D%20new%20GraphServiceClient(authProvider)%3B%3C%2FP%3E%3CP%3Evar%20presence%20%3D%20await%20graphClient.Me.presence.Request().GetAsync%20()%3B%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1503783%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHow-to%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor
I tried to call Getpresence graph Api  method in .net , but it doesn’t recognize Presence.i think it does not appear to give the method in the SDK i used , why ,I have no idea.
 

GraphServiceClient graphClient = new GraphServiceClient(authProvider);

var presence = await graphClient.Me.presence.Request().GetAsync ();

1 Reply

@saraefaf Presence APIs are in beta, and beta APIs are in a different SDK. They are here: https://github.com/microsoftgraph/msgraph-beta-sdk-dotnet - installation instructions here: https://github.com/microsoftgraph/msgraph-beta-sdk-dotnet#installation-via-nuget