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
public class SpreadSheetConnector { | |
private string[] _scopes = { SheetsService.Scope.Spreadsheets }; // Change this if you're accessing Drive or Docs | |
private string _applicationName = "My Application Name from Google API Project "; | |
private string _spreadsheetId = "xdMsqBc3wblahblahblahblahkeygoeshere"; | |
private SheetsService _sheetsService; | |
private void ConnectToGoogle() { | |
GoogleCredential credential; |
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
namespace Sitecore.Forms.Mvc.Pipelines.Error | |
{ | |
public class FormatErrorMessage : FormProcessorBase<IFormModel> | |
{ | |
public override void Process(FormProcessorArgs<IFormModel> args) | |
{ | |
Assert.ArgumentNotNull((object) args, nameof (args)); | |
IFormModel model = args.Model; | |
if (model == null) | |
return; |