Connection object has connection information to call kintone API
Connection object has connection information to call kintone API
(new-connection {:keys [auth domain guest-space-id handler error-handler
connection-timeout socket-timeout timeout headers]})
Make a new connection object.
:auth - kintone.authentication/Auth object required
:domain - kintone domain name string required(Clojure), optional(ClojureScript) e.g. sample.kintone.com or sample.cybozu.com, etc..
:guest-space-id - kintone guest space id integer, optional
:handler - The handler function for successful operation should accept a single parameter which is the response. If you do not provide this, the default-handler above will be called instead. The value it returns will put into the channel, which is the return value. function, optional
:error-handler - The handler function for error operation should accept a single parameter which is the response. If you do not provide this, the default-error-handler above will be called instead. The value it returns will put into the channel, which is the return value. function, optional
See: https://github.com/dakrone/clj-http or https://github.com/JulianBirch/cljs-ajax
:connection-timeout - The time to wait for establishing the connection with the remote host. integer, milliseconds, Only for Clojure optional, default 10s
:socket-timeout - The time to wait for getting data after the connection established. integer, milliseconds, Only for Clojure optional, default 30s
:timeout - The ajax call's timeout. integer, milliseconds optional, default 30s, Only for ClojureScript
:headers - map, optional
Make a new connection object. :auth - kintone.authentication/Auth object required :domain - kintone domain name string required(Clojure), optional(ClojureScript) e.g. sample.kintone.com or sample.cybozu.com, etc.. :guest-space-id - kintone guest space id integer, optional :handler - The handler function for successful operation should accept a single parameter which is the response. If you do not provide this, the default-handler above will be called instead. The value it returns will put into the channel, which is the return value. function, optional :error-handler - The handler function for error operation should accept a single parameter which is the response. If you do not provide this, the default-error-handler above will be called instead. The value it returns will put into the channel, which is the return value. function, optional See: https://github.com/dakrone/clj-http or https://github.com/JulianBirch/cljs-ajax :connection-timeout - The time to wait for establishing the connection with the remote host. integer, milliseconds, Only for Clojure optional, default 10s :socket-timeout - The time to wait for getting data after the connection established. integer, milliseconds, Only for Clojure optional, default 30s :timeout - The ajax call's timeout. integer, milliseconds optional, default 30s, Only for ClojureScript :headers - map, optional
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close