public SharePointService GetSharePointService(APIUserAuthenticator auth) { // APIUserAuthenticator auth = getapiAuth(); return(new SharePointService(auth)); }
public APIUserAuthenticator getapiAuth() { APIUserAuthenticator auth = new APIUserAuthenticator("client_credentials", "c14c4618-f753-4693-bcd4-f236ad6d6dd3@9684067a-6190-4cbc-8a17-476c83670507", "cGO5UZrfAePpUjJnaayPoM+c+exzPK95AXCofn/iM0E=", "00000003-0000-0ff1-ce00-000000000000/docufan.sharepoint.com@9684067a-6190-4cbc-8a17-476c83670507", "https://accounts.accesscontrol.windows.net/9684067a-6190-4cbc-8a17-476c83670507/tokens/OAuth/2"); return(auth); }