Forum Discussion
Enable Automatic Refresh with Basic Auth connection to an API
- 5 years ago
I found the solution! It was made via a blending of the relative path concept from Chris Webb's blog: Chris Webb's BI Blog: Using The RelativePath And Query Options With Web.Contents() In Power Query And Power BI M Code Chris Webb's BI Blog (crossjoin.co.uk) with a base 64 concept from the following blog: Encoding basic authentication in an url with Power Query/M language | Ambiguity vs Information (wordpress.com).
Essentially, you make the basic path for the api the main page of azure devops, then you add the specific API page you want to visit to the relative path. You specifcy basic connection, make the username blank and pass the api key into the password. You encode this in base64 with the code shown in the other article. Hope this helps anyone else who may need it.
I found the solution! It was made via a blending of the relative path concept from Chris Webb's blog: Chris Webb's BI Blog: Using The RelativePath And Query Options With Web.Contents() In Power Query And Power BI M Code Chris Webb's BI Blog (crossjoin.co.uk) with a base 64 concept from the following blog: Encoding basic authentication in an url with Power Query/M language | Ambiguity vs Information (wordpress.com).
Essentially, you make the basic path for the api the main page of azure devops, then you add the specific API page you want to visit to the relative path. You specifcy basic connection, make the username blank and pass the api key into the password. You encode this in base64 with the code shown in the other article. Hope this helps anyone else who may need it.