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
One of the examples show the following however it doesn't work:
$credentials = new PrintNode\ApiKey(
PRINTNODE_APIKEY
);
$request = new PrintNode\Request($credentials);
Error:
Catchable Fatal Error: Argument 1 passed to PrintNode\Request::__construct() must be an instance of PrintNode\Credentials, instance of PrintNode\ApiKey given
The text was updated successfully, but these errors were encountered:
After adding this , we see [17-Apr-2020 11:10:27 UTC] PHP Fatal error: Call to a member function setApiKey() on a non-object in /home/u/public_html/print/example-1-submitting-a-printjob.php on line 13
I replaced $credentials = new PrintNode\ApiKey(
"xxxx"
);
with $credentials = new PrintNode\Credentials();
$credentials->setApiKey("xxxx");
and now get the following error Fatal error: Uncaught BadMethodCallException: Method PrintNode\Request::agetComputers does not exist in C:\xampp\htdocs\test\vendor\printnode\printnode-php\src\PrintNode\Request.php:144
One of the examples show the following however it doesn't work:
$credentials = new PrintNode\ApiKey(
PRINTNODE_APIKEY
);
$request = new PrintNode\Request($credentials);
Error:
Catchable Fatal Error: Argument 1 passed to PrintNode\Request::__construct() must be an instance of PrintNode\Credentials, instance of PrintNode\ApiKey given
The text was updated successfully, but these errors were encountered: