使用C#访问Google电子表格(无API)

时间:2018-10-15 18:01:07

标签: c# spreadsheet

是否可以像Arduíno一样开发C#代码?

Arduíno与Google Script通信,而Google Script与Google Spreadsheet通信。

Arduíno代码:

const char* host = "script.google.com";
const int httpsPort = 443;
const char *GScriptId = "AKfycbwd9YkXXXXXXXXXXXXXXXXXXX";
String urlCal = String("/macros/s/") + GScriptId + "/exec?xxx";
String payload =  "{\"command\": \"appendRow\", \
                    \"sheet_name\": \"Sheet1\", \
                    \"values\": ";

client = new HTTPSRedirect(httpsPort);
client->setContentTypeHeader("application/json");
client->connect(host, httpsPort);
client->POST(urlCal, host, payload);

0 个答案:

没有答案