Created
October 8, 2023 18:14
-
-
Save bjulius/f82d3d11b1481a9992e1c4b7be97369e to your computer and use it in GitHub Desktop.
Download Gists from Github API to Power Query
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
// Your GitHub token for authentication | |
github_token = "Your Github Token Here", | |
// GitHub API URL for listing your gists | |
api_url = "https://api.github.com/gists", | |
// Make the API request | |
Source = Json.Document(Web.Contents(api_url, | |
[Headers=[#"Authorization"="token " & github_token]])), | |
// Transform the JSON to table (customize this part as needed) | |
ToTable = Table.FromList(Source, Splitter.SplitByNothing()) | |
in | |
ToTable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment