c# - 使用 C# 访问 Google 电子表格(无 API)
问题描述
是否可以像 Arduíno 那样开发 C# 代码?
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);
解决方案
推荐阅读
- python-3.x - 如果值在区间内,则将类别或整数分配给行
- php - Yii2 - 动态模型验证
- black-box-testing - 变量的初始化是否被视为决策表黑盒测试中的一项操作?
- amazon-web-services - AWS Pinpoint: AWS CLI create-segment 无法指定设备令牌
- r - 如何在使用 updateSelectizeInput 进行搜索时防止 selectInput 移动
- c++ - 打开类中的随机 LED
- javascript - 将对象数组中的所有值转换为字符串?
- unity3d - 在 Unity 中通过 Mirror 传输大数据 (>100 MB)
- matlab - 未识别的消息类型 simulink ros 消息
- powershell - Exchange 2016 使用 PowerShell 获取邮件正文内容