Forum Discussion
Trello rest api as a data source authentication issue
- 7 years ago
The first parameter to Web.Contents must be static
In your case try setting it to "https://api.trello.com/", then use the relative path option to add "1/boards/cExjoJEB/cards", and query option for the paremeters "key=<my key>a&token=<my token>"
The below reference helped me out quite a bit
Good luck
Just to add onto what blopez11 said (so it does work)
Ive managed to get this working with Authentication
I have setup parameters in powerbi for
- The API Key
- The API Token
- The board key you want to get information from
This is an example of the code block for the M code
let
Source = Json.Document(Web.Contents("https://api.trello.com/1/boards/"&TrelloBoardKey&"/cards?key="&TrelloAPIKey&"&token="&TrelloAPIToken&"")),
#"Converted to Table" = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
If you want to get Card information you can use the
https://api.trello.com/1/boards/"&TrelloBoardKey&"/cards?
and for lists..
https://api.trello.com/1/boards/"&TrelloBoardKey&"/lists?
and there are others.
To get your API Key go to https://trello.com/app-key
To get your API Token, you get this once you have an API Key you can get a token from the same page
This sums it up.. https://developers.trello.com/page/authorization