reborg / applenews-api Goto Github PK
View Code? Open in Web Editor NEWJava/Clojure library to talk to Apple Publisher API services
License: Eclipse Public License 1.0
Java/Clojure library to talk to Apple Publisher API services
License: Eclipse Public License 1.0
Hi, I imported this project in Eclipse,updated the channel info in config.edn, and tried to run the Main.java under sample-java/src/main/java/net/reborg/sample:
import clojure.lang.Keyword;
import net.reborg.AppleNews;
import java.util.Map;
import static net.reborg.AppleNews.*;
public class Main {
private static Map<Keyword, Object> resp;
public static void main(String[] args) {
resp = AppleNews.createArticle(loadSampleBundle());
printResponse("createArticle 1-arg", resp);
String id = getId(resp);
resp = getArticle(id);
printResponse("getArticle 1-arg", resp);
}
}
and run it as java app:
I got
Reflection warning, net/reborg/applenews_api/image.clj:41:25 - call to static method read on javax.imageio.ImageIO can't be resolved (argument types: unknown).
Reflection warning, net/reborg/applenews_api/image.clj:42:25 - reference to field getWidth can't be resolved.
Reflection warning, net/reborg/applenews_api/image.clj:43:26 - reference to field getHeight can't be resolved.
Reflection warning, net/reborg/applenews_api/image.clj:45:21 - call to static method resize on org.imgscalr.Scalr can't be resolved (argument types: unknown, org.imgscalr.Scalr$Mode, unknown, unknown, unknown).
Reflection warning, net/reborg/applenews_api/image.clj:47:19 - call to static method write on javax.imageio.ImageIO can't be resolved (argument types: unknown, unknown, unknown).
Exception in thread "main" java.lang.IllegalArgumentException: No implementation of method: :make-reader of protocol: #'clojure.java.io/IOFactory found for class: nil
at clojure.core$_cache_protocol_fn.invoke(core_deftype.clj:554)
at clojure.java.io$fn__9115$G__9091__9122.invoke(io.clj:69)
at clojure.java.io$reader.doInvoke(io.clj:102)
at clojure.lang.RestFn.invoke(RestFn.java:410)
at clojure.lang.AFn.applyToHelper(AFn.java:154)
at clojure.lang.RestFn.applyTo(RestFn.java:132)
at clojure.core$apply.invoke(core.clj:632)
at clojure.core$slurp.doInvoke(core.clj:6653)
at clojure.lang.RestFn.invoke(RestFn.java:410)
at net.reborg.applenews_api.bundle$load_edn.invoke(bundle.clj:8)
at clojure.lang.Var.invoke(Var.java:379)
at net.reborg.AppleNews.withConfig(AppleNews.java:32)
at net.reborg.AppleNews.createArticle(AppleNews.java:78)
at net.reborg.sample.Main.main(Main.java:16)
Is anything I need to config more?
Thanks,
Wei
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.