首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Podio & Power BI

Podio & Power BI
EN

Stack Overflow用户
提问于 2022-03-15 17:53:37
回答 2查看 152关注 0票数 0

有没有人让Podio和Power BI一起工作。我设法让令牌进程在Power中工作。我可以得到单一记录的结果来工作,但当使用列表拉,我不能让它工作。

Podio令牌部分:工作

代码语言:javascript
复制
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
  token

Podio抓取列表(这里需要帮助):

代码语言:javascript
复制
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个坏请求。

EN

回答 2

Stack Overflow用户

发布于 2022-03-15 21:41:07

看起来您正在尝试通过过滤应用程序来返回数据。当使用/filter过滤应用程序中的项时,这不是GET命令,而是POST命令。

因为这是POST命令,所以需要在Content函数中使用Web.Contents参数。下面的示例将限制对前10条记录的响应:

代码语言:javascript
复制
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
票数 0
EN

Stack Overflow用户

发布于 2022-04-20 21:19:41

如果使用GlobiFlow,您可以创建一个JSON提要,您可以直接从PowerBI导入该提要。而不是选择JSON文件,而是粘贴GlobiFlow提供的JSON。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71486846

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档