I have the following code to connect to SharePoint using clientID and ClientSecret:
string siteUrl = "https://****l.sharepoint.com/sites/DocumentApprovalProcess/";
string clientId = "***";
string clientSecret = "**";
using (var context = new AuthenticationManager().GetAppOnlyAuthenticatedContext(siteUrl, clientId, clientSecret))
But I am getting this error:
'AuthenticationManager' does not contain a constructor that takes 0 arguments