有没有人让Podio和Power BI一起工作。我设法让令牌进程在Power中工作。我可以得到单一记录的结果来工作,但当使用列表拉,我不能让它工作。
Podio令牌部分:工作
let
token_url = "https://podio.com/oauth/token",
client_id = "####",
client_secret = "000####",
grant_type = "password",
username = "user@user.com",
password = "###",
body = "client_id="&client_id&"&client_secret="&client_secret&"&grant_type="&grant_type&"&username="&username&"&password="&password,
Source = Json.Document(Web.Contents(token_url, [
[
Headers = [#"Content-Type"="application/x-www-form-urlencoded"],
Content = Text.ToBinary(body)
])
),
token = "bearer " & Source[access_token]
in
tokenPodio抓取列表(这里需要帮助):
let
url = "https://api.podio.com/item/app/0000000/filter/",
token = #"Podio Token",
headers = [Headers = [#"Authorization" = token,
#"Content-Type"="application/json"]],
Source = Json.Document(Web.Contents(url,headers))
in
Source我一直收到的都是400个坏请求。
发布于 2022-03-15 21:41:07
看起来您正在尝试通过过滤应用程序来返回数据。当使用/filter过滤应用程序中的项时,这不是GET命令,而是POST命令。
因为这是POST命令,所以需要在Content函数中使用Web.Contents参数。下面的示例将限制对前10条记录的响应:
let
url = "https://api.podio.com/item/app/0000000/filter/",
token = #"Podio Token",
headers = [Headers = [#"Authorization" = token,
#"Content-Type"="application/json"]],
postData = Json.FromValue([limit = 10, offset = 0]),
response = Web.Contents(url,
[Headers = headers,
Content = postData]),
jsonResponse = Json.Document(response)
in
jsonResponse发布于 2022-04-20 21:19:41
如果使用GlobiFlow,您可以创建一个JSON提要,您可以直接从PowerBI导入该提要。而不是选择JSON文件,而是粘贴GlobiFlow提供的JSON。
https://stackoverflow.com/questions/71486846
复制相似问题