You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm sure you've worked past this by now, but based on your parameter naming it looks like this was because you were trying to authenticate with a key, but passing a token instead. Your code would have needed to be more like this:
<?php
include $_ENV["ROOT"] . "vendor/autoload.php";
$token = new Cloudflare\API\Auth\APIToken($_ENV["MAIL"], $_ENV["TOKEN"]);
$adapter = new Cloudflare\API\Adapter\Guzzle($token);
//print_r($adapter);
$user = new Cloudflare\API\Endpoints\User($adapter);
$zones = new Cloudflare\API\Endpoints\Zones($adapter);
$zoneID = $zones->listZones("[domain]");
echo $zoneID;
I have this error since some days ago, and I don't know what to do!!!
Code:
Error:
The text was updated successfully, but these errors were encountered: