File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change
1
+ let
2
+ // Replace <YOUR-TOKEN> and <ENTERPRISE> with your actual token and enterprise name.
3
+ url = "https://api.github.com/enterprises/<ENTERPRISE>/copilot/usage",
4
+ headers = [
5
+ #"Accept" = "application/vnd.github+json",
6
+ #"Authorization" = "Bearer <YOUR-TOKEN>",
7
+ #"X-GitHub-Api-Version" = "2022-11-28"
8
+ ],
9
+ Source = Json.Document(Web.Contents(url, [Headers=headers]))
10
+ in
11
+ Source
Original file line number Diff line number Diff line change
1
+ let
2
+ // Replace <YOUR-TOKEN> and <ORG> with your actual token and org name.
3
+ url = "https://api.github.com/orgs/<ORG>/copilot/usage",
4
+ headers = [
5
+ #"Accept" = "application/vnd.github+json",
6
+ #"Authorization" = "Bearer <YOUR-TOKEN>",
7
+ #"X-GitHub-Api-Version" = "2022-11-28"
8
+ ],
9
+ Source = Json.Document(Web.Contents(url, [Headers=headers]))
10
+ in
11
+ Source
You can’t perform that action at this time.
0 commit comments