第一次连接到API。我正在尝试使用我的API令牌从Toggl中提取数据,但是我无法获得凭据。我试图复制Chris Webb(https://blog.crossjoin.co.uk/2014/03/26/working-with-web-services-in-power-query/)的方法,但是无法正常工作。这是我的M代码:
let
Source = Web.Contents(
"https://toggl.com/reports/api/v2/details?workspace_id=xxxxx&client=xxxxxx6&billable=yes&user_agent=xxxxxxx",[
Query=[ #"filter"="",#"orderBy"=""],ApiKeyName="api-token"
])
in
Source
在那之后,我将我的API令牌输入到access Web内容窗口中的Web API方法中,但是收到一个错误,提示无法对凭据进行身份验证。这是Toggl API规范: https://github.com/toggl/toggl_api_docs/blob/master/reports.md