cloudflare / cloudflare-php

PHP library for the Cloudflare v4 API
BSD 3-Clause "New" or "Revised" License
621 stars 222 forks source link

Update APIKey.php #218

Open josuamarcelc opened 2 years ago

josuamarcelc commented 2 years ago

X-Auth-Key make PHP error invalid

Type: Cloudflare\API\Adapter\ResponseException

Message: Invalid request headers

Filename: /var/www/xxx/application/vendor/cloudflare/sdk/src/Adapter/ResponseException.php

Line Number: 38
curl -X GET "https://api.cloudflare.com/client/v4/user" \
-H "X-Auth-Email: xxxxxx@gmail.com" \
-H "Authorization:Bearer xxxxxx" \
-H "Content-Type: application/json"