-
-
Save furkankaracan/5e400400e20dba153f8423e276ef9d2e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string siteUrl = "https://contoso.sharepoint.com/sites/demo"; | |
using (var cc = new AuthenticationManager().GetACSAppOnlyContext(siteUrl, "[Your Client ID]", "[Your Client Secret]")) | |
{ | |
cc.Load(cc.Web, p => p.Title); | |
cc.ExecuteQuery(); | |
Console.WriteLine(cc.Web.Title); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment