invoke-webrequest
$url = "https://webapi.area23.at/api/bearertest"
$headers = @{}
$headers.Add("Accept","application/json")
$headers.Add("Authorization", "bearer myBearer")
invoke-webrequest -Uri $url -Headers $headers
invoke-webrequest -Uri $url -Method GET -Headers $headers
curl
curl -X GET \
-H "accept: application/json" \
-H "Authorization: bearer myBearer" \
"https://webapi.area23.at/api/bearertest"
wget
wget \
--header="Authorization: Bearer myBearer" \
--header="Content-Type: application/json" \
--no-check-certificate \
https://webapi.area23.at/api/bearertest
Postman
Keine Kommentare:
Kommentar veröffentlichen