GithubHelp home page GithubHelp logo

reborg / applenews-api Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 2.0 168 KB

Java/Clojure library to talk to Apple Publisher API services

License: Eclipse Public License 1.0

Clojure 84.67% Java 15.33%

applenews-api's People

Contributors

danielzurawski avatar fredericoccedat avatar reborg avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

mailonline emidln

applenews-api's Issues

exception when running the main

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.