Skip to content

Instantly share code, notes, and snippets.

@furkankaracan
Created October 28, 2022 07:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save furkankaracan/5e400400e20dba153f8423e276ef9d2e to your computer and use it in GitHub Desktop.
Save furkankaracan/5e400400e20dba153f8423e276ef9d2e to your computer and use it in GitHub Desktop.
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