I get my bearer token from an API end point and set the following:
$authorization = \"Bearer 080042cad6356ad5dc0a720c18b53b8e53d4c274\"
Nex
If you are working with a private token instead (like Gitlab API), you should replace:
$authorization = "Authorization: Bearer 080042cad6356ad5dc0a720c18b53b8e53d4c274"
with:
$authorization = "PRIVATE-TOKEN 080042cad6356ad5dc0a720c18b53b8e53d4c274";