printnode / printnode-java Goto Github PK
View Code? Open in Web Editor NEWJava Library For PrintNode Remote Printing Service
Home Page: https://www.printnode.com
License: MIT License
Java Library For PrintNode Remote Printing Service
Home Page: https://www.printnode.com
License: MIT License
APIClient.java has a method called "createPrintJob" which passes PrintJobJson as a parameter. This file (PrintJobJson.java) has a varible qty = -1 which was sending the requests twice.
I changed it to 1 and now I'm getting only one copy.
Hi there and thank you for this SDK. We are integrating your API and noticed there are no packages for public use.
Would you be willing to publish packages for this library?
Thank you!
The printer's name is not parsed on the JSON response. Attaching suggested change on Printer.java:
public Printer(final JsonObject response) {
if (!response.get("id").isJsonNull()) {
id = response.get("id").getAsInt();
}
if (!response.get("computer").isJsonNull()) {
computer = new Computer(response.get("computer").getAsJsonObject());
}
if (!response.get("description").isJsonNull()) {
description = response.get("description").getAsString();
}
if (!response.get("name").isJsonNull()) {
name = response.get("name").getAsString();
}
if (!response.get("capabilities").isJsonNull()) {
capabilities = new Capabilities(response.get("capabilities").getAsJsonObject());
}
if (!response.get("default").isJsonNull()) {
defaults = response.get("default").getAsString();
}
if (!response.get("createTimestamp").isJsonNull()) {
createTimestamp = response.get("createTimestamp").getAsString();
}
if (!response.get("state").isJsonNull()) {
state = response.get("state").getAsString();
}
json = response.toString();
}
in class com.printnode.api.Options there is a private Boolean fitToPage; which maps by default to "fitToPage" json field, not "fit_to_page" as PrintNode api expected
According to the Json docs i found that you need use annotation like:
@SerializedName("fit_to_page") instead plain field declaration
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.