Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
linenumberstrue
curl --header api-key:abcdef0123456789abcdef0123456789 \
     --header Accept:application/json \
     --request GET https://library.cdisc.org/api/mdr/products

...

Code Block
linenumberstrue
$headers = @{}
$headers.Add('api-key','key:abcdef0123456789abcdef0123456789')
$headers.Add('Accept','application/json')
$url = "https://library.cdisc.org/api/mdr/products"

$result = Invoke-WebRequest -Uri $url -Headers $headers -Method GET

Write-Output $result

...