Liking cljdoc? Tell your friends :D

twitter.callbacks.handlers


bodypart-printclj

(bodypart-print response baos)

prints out the data received from the streaming callback

prints out the data received from the streaming callback
sourceraw docstring

exception-printclj

(exception-print response throwable)

prints the string version of the throwable object

prints the string version of the throwable object
sourceraw docstring

exception-rethrowclj

(exception-rethrow response throwable)

prints the string version of the throwable object

prints the string version of the throwable object
sourceraw docstring

format-rate-limit-errorclj

(format-rate-limit-error response)
source

get-twitter-error-messageclj

(get-twitter-error-message response)

interrogates a response for its twitter error message

interrogates a response for its twitter error message
sourceraw docstring

handle-responseclj

(handle-response response
                 callbacks
                 &
                 {:keys [events] :or {events #{:on-success :on-failure}}})

takes a response and reacts to success or error. 'events' should be a set of keywords like #{:on-success :on-failure}

takes a response and reacts to success or error.
'events' should be a set of keywords like #{:on-success :on-failure}
sourceraw docstring

rate-limit-error?clj

(rate-limit-error? status)

returns true if the given response contains a rate limit error

returns true if the given response contains a rate limit error
sourceraw docstring

response-return-bodyclj

(response-return-body response)

this takes a response and returns the json-parsed body

this takes a response and returns the json-parsed body
sourceraw docstring

response-return-everythingclj

(response-return-everything response & {:keys [to-json?] :or {to-json? true}})

this takes a response and returns a map of the headers and the json-parsed body

this takes a response and returns a map of the headers and the json-parsed body
sourceraw docstring

response-throw-errorclj

(response-throw-error response)

throws the supplied error in an exception

throws the supplied error in an exception
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close