有没有人有一个很好的C#示例用于使用v4 API更新单元格?
我在使用Google表格API v4的开发者网站上获得了获取单元格值c#示例.我试图修改示例以更新值为"Tom"的单元格.我坚持设置SpreadSheets.Values.Update.
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.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace GoogleSheetsAPI4_v1console
{
class Program
{
// If modifying these scopes, delete your previously saved credentials
// at ~/.credentials/sheets.googleapis.com-dotnet-quickstart.json
static string[] Scopes = { SheetsService.Scope.Spreadsheet };
static string ApplicationName = "TestSpreadsheet";
static void Main(string[] args)
{
UserCredential credential;
using (var stream =
new FileStream("client_secret.json", FileMode.Open, FileAccess.Read))
{
string credPath = …Run Code Online (Sandbox Code Playgroud) c# google-api google-sheets google-api-dotnet-client google-sheets-api