![](/img/trans.png)
[英]Trello rest api as a data source for Power Bi - authentication issue
[英]Connect Power BI to MOCO Web API with Authentication
我正在尝试将 Power BI 连接到 MOCO Web API
MOCO 提供以下 curl 获取所有活动数据以及 API 密钥
curl -X GET
'https://{domain}.mocoapp.com/api/v1/activities?from=2018-06-01&to=2018-06-30&project_id=4242'
-H '授权:令牌令牌 = YOUR_API_KEY'
我在 Power BI Query 中使用高级对话框 windows。
There I provide: URL parts - https://.mocoapp.com/api/v1/activities?from=2021-01-15&to=2021-01-16 HTTP request header paramethers - ApiKeyName:
我收到错误消息“我们无法使用提供的凭据进行身份验证。
我应该在哪里插入 API 密钥?
非常感谢!
您可以使用Get data from Web和Advanced Option 。
您在 HTTP 下方有两个字段请求 header 参数(可选)
在URL 零件中发布您的链接,例如https://{domain}.mocoapp.com/api/v1/projects
在左侧字段中写入授权,在右侧字段中写入Token token={enteryourtokenhere}
然后将建立连接。
打招呼,玩得开心。
您没有通过此请求传递您的 header 密钥。 目前您的请求 header 密钥为Authorization
,值为Token token=YOUR_API_KEY
。
curl request in terminal
中使用postman
或 curl 请求检查此请求以进行调试,然后使用您的工具进行测试
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.