I'm trying to write a Google Sheet from an C# Azure function using Google Sheets Api. The problem may be silly but I don't seem to be able to find a way to add reference to it.
Following documentation, I've set my function as:
using Google.Apis.Auth.OAuth2;
using Google.Apis.Sheets.v4;
using Google.Apis.Sheets.v4.Data;
using Google.Apis.Services;
using Google.Apis.Util.Store;
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading;
public static void Run(TimerInfo myTimer, TraceWriter log)
{
log.Info($"C# Timer trigger function executed at: {DateTime.Now}");
}
I get errors on the 'using' lines for Google.Apis. What I get is:
...error CS0246: The type or namespace name 'Google' could not be found (are you missing a using directive or an assembly reference?)
I understand I have to add a reference like #r "Google" at the very start, but I can't actually find which one exactly; I didn't even find if this is something possible to do.
How should I set it up to work with Google Sheet API?