Skip to content

Commit

Permalink
Update snippets/cloudflare-domain-rank-top/cloudflare-domain-rank-top…
Browse files Browse the repository at this point in the history
….storm

Co-authored-by: Cisphyx <[email protected]>
  • Loading branch information
reign-git and Cisphyx authored Nov 14, 2023
1 parent 3f5b27d commit ecbc190
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ $datasets = (["top_200", "top_500", "top_1000", "top_2000", "top_5000", "top_100
// Query Cloudflare Radar for each top dataset.
for $dataset in $datasets {
$url = `https://api.cloudflare.com/client/v4/radar/datasets/ranking_{$dataset}`
$headers = $lib.dict(
"Accept"="application/json",
"Authorization"= `Bearer {$lib.globals.get(cloudflare:apikey)}` //added Bearer
)
$headers = ({
"Accept": "application/json",
"Authorization": `Bearer {$lib.globals.get(cloudflare:apikey)}` //added Bearer
})

$resp = $lib.inet.http.get($url, $headers)

Expand Down

0 comments on commit ecbc190

Please sign in to comment.