-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Argument 1 passed to PrintNode\Request::__construct() must be an instance of PrintNode\Credentials #14
Comments
For the examples replace those lines with; $credentials = new PrintNode\Credentials(); |
This is indeed a problem. Why have an ApiKey object if it cannot be used? I think the Request object is wrong. |
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 and now get the following error Can anyone help? |
Sorry for false alarm. Just noticed that I accidentally altered the function name to agetComputers. |
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: