如何从Excel功能查询访问Smartsheet API ?

你好,

我有Excel的ODBC连接器,但需要在这个实例中使用API。

我想创建一个API连接,可以由任何人访问Excel文档运行。

我有一个安全令牌,但无法配置电源查询中的参数,以便智能表API能够正常工作并提供访问。

我目前有:

数据源设置:https://api.smartsheet.com/

凭证:匿名

隐私级别:组织

然后,我尝试将我的查询配置为web源。

在URL部分我已经尝试过了https://api.smartsheet.com/2.0/sheets/ (sheetid)

我想看一份报告我想是https://api.smartsheet.com/2.0/reports /

我尝试过“ApiKeyName”和“值”作为具有适当值的请求标头。

我还尝试在全局设置中插入API密钥。

有人能告诉我如何配置这些设置访问API提取报告数据到Excel通过电源查询?

谢谢

image.png


最佳答案

答案

Hi @Fabrice<\/a> <\/p>

I have also identified such a problem when importing a grouped Excel sheet into Smartsheet using the API and specifying a Header Row.<\/p>

Here is the Python function code to fix this problem<\/p>