Skip to content

Instantly share code, notes, and snippets.

@willchis
willchis / gist:9e14a49df26034d60141586308084d65
Last active December 7, 2020 19:40
Google Sheets API and Service Account
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;
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;