-
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
Setting Id to getPrinters #13
Comments
If you're using the "release/2.0.0" branch then you can use the method viewPrinters and specify a list of printers that you want to return as the third parameter. https://github.com/PrintNode/PrintNode-PHP/blob/release/2.0.0/src/PrintNode/Client.php#L167 |
I have also just checked, the main branch code also allows you to return one printer only exactly as you state above. Only thing is the parameter is a string: |
Just a short note on thomas very useful contribution, it should be:
and then it worked perfectly, thank you very much Thomas! |
We're trying to use PrintNode as a hub on our web projct. Each user's default printer is recorded onto DB and we would like to call this printer directly.
However, getPrinter lists all printers and I have to select inside it. Instead of that, it should be like "getPrinters(123456)" and only printer with id :123456 may be detailed.
Thanks.
The text was updated successfully, but these errors were encountered: