{"id":39473,"date":"2020-06-02T09:00:38","date_gmt":"2020-06-02T16:00:38","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/premier-developer\/?p=39473"},"modified":"2020-05-11T10:20:14","modified_gmt":"2020-05-11T17:20:14","slug":"teams-presence-prototype-in-net","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/premier-developer\/teams-presence-prototype-in-net\/","title":{"rendered":"Teams Presence Prototype in .NET"},"content":{"rendered":"<p>Dev Consultant <a href=\"https:\/\/www.linkedin.com\/in\/bculver\/\" target=\"_blank\" rel=\"noopener noreferrer\">Brian Culver<\/a> explores Microsoft Teams Presence in .NET.<\/p>\n<hr \/>\n<p>This journey begins in a Visual Studio 2019 .Net Forms Application.\u00a0 Then, we need to install the Microsoft Graph client package into our project. So we go here to\u00a0<a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/sdks\/sdk-installation\" target=\"_blank\" rel=\"noreferrer noopener\">Install the SDK<\/a>.<\/p>\n<p>Earlier, we worked in the Microsoft Graph Explorer and completed the App Registration.<\/p>\n<ul>\n<li><a href=\"https:\/\/brianintech.wordpress.com\/2020\/04\/30\/using-the-microsoft-graph-explorer\/\" target=\"_blank\" rel=\"noreferrer noopener\">Using the Microsoft Graph Explorer<\/a><\/li>\n<li><a href=\"https:\/\/brianintech.wordpress.com\/2020\/05\/02\/net-app-registration-in-azure-ad\/\" target=\"_blank\" rel=\"noreferrer noopener\">App Registration of .Net Application in Azure AD<\/a><\/li>\n<\/ul>\n<p>There are great instructions for using the Microsoft (MS) Graph Beta libraries in your solutions at <a href=\"https:\/\/github.com\/microsoftgraph\/msgraph-beta-sdk-dotnet\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/microsoftgraph\/msgraph-beta-sdk-dotnet<\/a><\/p>\n<p>Be sure to note the instructions for using both the MS Graph v1.0 and Beta libraries and MS Graph endpoints (as they share the same namespace).<\/p>\n<p><a href=\"https:\/\/brianintech.wordpress.com\/2020\/05\/04\/teams-presence-prototype-in-net\/\">Continue reading on Brian&#8217;s blog.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this segment, my goal is to get the Teams presence in a stand-alone application. In this app, we will do the following:<br \/>\nConnect to the Graph Beta API programmatically.<br \/>\nUse the Client ID from my App Registration and validate the permissions.<br \/>\nRead my presence and display the presence retrieved.<br \/>\nVerify that the solution is displaying Status.<\/p>\n","protected":false},"author":582,"featured_media":39474,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[80],"tags":[106,1134,3],"class_list":["post-39473","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-net","tag-net","tag-microsoft-teams","tag-team"],"acf":[],"blog_post_summary":"<p>In this segment, my goal is to get the Teams presence in a stand-alone application. In this app, we will do the following:<br \/>\nConnect to the Graph Beta API programmatically.<br \/>\nUse the Client ID from my App Registration and validate the permissions.<br \/>\nRead my presence and display the presence retrieved.<br \/>\nVerify that the solution is displaying Status.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts\/39473","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/users\/582"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/comments?post=39473"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts\/39473\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/media\/39474"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/media?parent=39473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/categories?post=39473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/tags?post=39473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}