我正在尝试更新 smartsheets 中的单元格,但它返回错误 -
Error 1 The type name 'UpdateRowCellsBuilder' does not exist in the type 'Tannery_Data.Cell'
命名空间称为 Tannery_Data?
我正在使用这些参考资料:
using Smartsheet.Api;
using Smartsheet.Api.Models;
using Smartsheet.Api.OAuth;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
这是代码
namespace Tannery_Data
{
class smartsheetQuery
{
public Token token;
String API = "XXXXXXX";
SmartsheetClient smartsheet;
long sheetID;
long workspaceID;
public smartsheetQuery()
{
token = new Token();
token.AccessToken = API;
smartsheet = new SmartsheetBuilder().SetAccessToken(token.AccessToken).Build(); /
sheetID = 1378721379706756;
workspaceID = 4196096982443908;
}
public void updateCell()
{
IList<Cell> cells = new Cell.UpdateRowCellsBuilder().AddCell(7735727405459332L, "TESTING").Build();
smartsheet.Rows().UpdateCells(7602661257176964L, cells);
}
完全不知道这里发生了什么?