将标题与Google Community Connector结合使用

编写Google Community Connector时如何使用授权标头?

例如在getData()中调用URL时,会像这样简单:

var response = JSON.parse(UrlFetchApp。“ https://api_example.com”,{ “ method”:“ GET”, “标题”:{ “主机”:*********, “密钥”:************} ))。root.station;

我在Google Data Studio中不断收到数据连接错误,但是我不能确定是否是由于诸如上述的错误授权,或者我的getData()格式不正确。

yyb4051 回答:将标题与Google Community Connector结合使用

是的,支持KEY身份验证类型:https://developers.google.com/datastudio/connector/reference#authtype

本文链接:https://www.f2er.com/2427813.html

大家都在问