Liking cljdoc? Tell your friends :D

tentacles.core


api-callclj

(api-call method end-point)
(api-call method end-point positional)
(api-call method end-point positional query)
source

api-metaclj

(api-meta obj)
source

defaultsclj

source

environ-authclj

(environ-auth env)

Lookup :gh-username and :gh-password in environ (~/.lein/profiles.clj or .lein-env) and return a string auth. Usage: (users/me {:auth (environ-auth)})

Lookup :gh-username and :gh-password in environ (~/.lein/profiles.clj or .lein-env) and return a string auth.
Usage: (users/me {:auth (environ-auth)})
sourceraw docstring

extract-useful-metaclj

(extract-useful-meta h)
source

format-urlclj

(format-url end-point positional)

Creates a URL out of end-point and positional. Called URLEncoder/encode on the elements of positional and then formats them in.

Creates a URL out of end-point and positional. Called URLEncoder/encode on
the elements of positional and then formats them in.
sourceraw docstring

make-requestclj

(make-request method end-point positional query)
source

mercy-headerclj

(mercy-header m)

Required accept header for activating topics in the API, e.g.: https://developer.github.com/v3/repos/#list-all-topics-for-a-repository

Required accept header for activating topics in the API, e.g.:
https://developer.github.com/v3/repos/#list-all-topics-for-a-repository
sourceraw docstring

no-content?clj

(no-content? x)

Takes a response and returns true if it is a 204 response, false otherwise.

Takes a response and returns true if it is a 204 response, false otherwise.
sourceraw docstring

parse-jsonclj

(parse-json s)

Same as json/parse-string but handles nil gracefully.

Same as json/parse-string but handles nil gracefully.
sourceraw docstring

(parse-link link)
source

(parse-links link-body)

Takes the content of the link header from a github resp, returns a map of links

Takes the content of the link header from a github resp, returns a map of links
sourceraw docstring

query-mapclj

(query-map entries)

Turn keywords into strings, and replace hyphens with underscores.

Turn keywords into strings, and replace hyphens with underscores.
sourceraw docstring

rate-limitclj

(rate-limit)
(rate-limit opts)
source

raw-api-callclj

(raw-api-call method end-point)
(raw-api-call method end-point positional)
(raw-api-call method end-point positional query)
source

reactions-headerclj

(reactions-header m)
source

safe-parseclj

(safe-parse {:keys [headers status body] :as resp})

Takes a response and checks for certain status codes. If 204, return nil. If 400, 401, 204, 422, 403, 404 or 500, return the original response with the body parsed as json. Otherwise, parse and return the body if json, or return the body if not json

Takes a response and checks for certain status codes. If 204, return nil.
If 400, 401, 204, 422, 403, 404 or 500, return the original response with the body parsed
as json. Otherwise, parse and return the body if json, or return the body if not json
sourceraw docstring

update-reqclj

(update-req req url)

Given a clj-http request, and a 'next' url string, merge the next url into the request

Given a clj-http request, and a 'next' url string, merge the next url into the request
sourceraw docstring

urlclj

source

with-defaultscljmacro

(with-defaults options & body)
source

with-urlcljmacro

(with-url new-url & body)
source

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

× close