We are logging a lot of errors in Bugsnag and i want to get these errors with an api endpoint call.
I have tried
$apiKey = <api_key>
$endpoint = "https://YOUR_SUBDOMAIN.bugsnag.com/errors.json"
$base64AuthInfo = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(("{0}:{1}" -f $apiKey, "")))
$headers = @{ "Authorization" = ("Basic {0}" -f $base64AuthInfo) }
$response = Invoke-RestMethod -Uri $endpoint -Headers $headers -Method Get # Output the response $response
Problem is what is the endpoint ? How do i get the subdomain ?
New contributor
Jenny is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.