ianbarber / clj-gapi Goto Github PK
View Code? Open in Web Editor NEWClojure Google Web Service API Client
Clojure Google Web Service API Client
Hello Ian,
I tried to follow the instructions of the README.
After supplying my API key:
(def auth (gapi.auth/create-auth "YOUR_API_KEY"))
Any method I try result in this error:
IllegalArgumentException No method in multimethod 'callfn' for dispatch value:\| clojure.lang.AFn.applyToHelper (AFn.java:159)
DELETE clojure.lang.MultiFn.getFn (MultiFn.java:121)
I tried
(im auth "plus.activities/search" {"query" "clojure"})
and this
(api-ns auth "https://www.googleapis.com/discovery/v1/apis/plus/v1/rest")
What am I missing?
Note: (list-apis)
returns normally with the json.
After generating namespaced methods (for analytics, in my case), I started type the name of one of the methods into the REPL and got slapped with this as soon as finish typing the full method name or click on it in Emacs:
java.lang.Thread.run Thread.java: 745
java.util.concurrent.ThreadPoolExecutor$Worker.run ThreadPoolExecutor.java: 617
java.util.concurrent.ThreadPoolExecutor.runWorker ThreadPoolExecutor.java: 1142
java.util.concurrent.FutureTask.run FutureTask.java: 266
...
clojure.core/binding-conveyor-fn/fn core.clj: 1910
clojure.tools.nrepl.server/handle/fn server.clj: 28
clojure.tools.nrepl.server/handle* server.clj: 19
clojure.tools.nrepl.middleware/wrap-conj-descriptor/fn middleware.clj: 24
cider.nrepl.middleware.complete/wrap-complete/fn complete.clj: 47
clojure.tools.nrepl.middleware/wrap-conj-descriptor/fn middleware.clj: 24
cider.nrepl.middleware.info/wrap-info/fn info.clj: 261
cider.nrepl.middleware.info/eldoc-reply info.clj: 248
clojure.tools.nrepl.transport.FnTransport/send transport.clj: 28
clojure.walk/stringify-keys walk.clj: 107
clojure.walk/postwalk walk.clj: 58
clojure.walk/walk walk.clj: 49
clojure.core/into core.clj: 6341
clojure.core/reduce core.clj: 6289
clojure.core.protocols/fn/G protocols.clj: 13
clojure.core.protocols/fn protocols.clj: 54
clojure.core.protocols/seq-reduce protocols.clj: 31
clojure.core.protocols/fn/G protocols.clj: 19
clojure.core.protocols/fn protocols.clj: 146
clojure.core/next core.clj: 64
...
clojure.core/map/fn core.clj: 2559
...
clojure.core/partial/fn core.clj: 2468
clojure.core/apply core.clj: 626
...
clojure.walk/postwalk walk.clj: 58
clojure.walk/walk walk.clj: 45
clojure.core/vec core.clj: 354
...
clojure.core/map/fn core.clj: 2557
...
clojure.core/partial/fn core.clj: 2468
clojure.core/apply core.clj: 626
...
clojure.walk/postwalk walk.clj: 58
clojure.walk/walk walk.clj: 46
clojure.core/doall core.clj: 2871
clojure.core/dorun core.clj: 2855
clojure.core/seq core.clj: 133
...
clojure.core/map/fn core.clj: 2551
clojure.core/seq core.clj: 133
...
clojure.core/map/fn core.clj: 2557
cider.nrepl.middleware.info/format-eldoc/fn info.clj: 236
clojure.core/mapv core.clj: 6353
clojure.core/reduce core.clj: 6289
clojure.core.protocols/fn/G protocols.clj: 13
clojure.core.protocols/fn protocols.clj: 42
clojure.core.protocols/seq-reduce protocols.clj: 30
clojure.core/seq core.clj: 133
...
java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Symbol
Any idea what's going on?
There have been a few merged pull requests over the last new few months, but Clojars still has 1.0.2 from March. A 1.0.3 or 1.1.0 would be great.
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.