Liking cljdoc? Tell your friends :D

qitech-auth.core


signclj

(sign input)

Get either headers and body already secured with QI-TECH mechanism of authentication.

Example of an input data:

{:method "GET" :endpoint test-endpoint}

{:content-type "application/json" :method "POST" :client-api-key "string" :body {:testing "more-data"} :endpoint test-endpoint}

Get either headers and body already secured with QI-TECH mechanism of authentication.

Example of an input data:

{:method "GET"
 :endpoint test-endpoint}

{:content-type "application/json"
 :method "POST"
 :client-api-key "string"
 :body {:testing "more-data"}
 :endpoint test-endpoint}
sourceraw docstring

test-endpointsclj

(test-endpoints)
(test-endpoints client-api-key)

This function must guarantee that our sign methodology is correct.

It's done two requests to QI-Tech in their /test/{api-key} endpoint using GET and POST methods

:client-api-key Product-based key from QI-TECH.

This function must guarantee that our `sign` methodology is correct.

It's done two requests to QI-Tech in their /test/{api-key} endpoint using GET and POST methods

:client-api-key    Product-based key from QI-TECH.
sourceraw docstring

unsignclj

(unsign qi-response)
(unsign qi-response client-api-key)

Return the body informed by QI-TECH in their response object.

:qi-response Entire response map with headers and body received from QI-TECH :client-api-key Product-based key from QI-TECH.

Return the `body` informed by QI-TECH in their response object.

:qi-response     Entire response map with headers and body received from QI-TECH
:client-api-key  Product-based key from QI-TECH.
sourceraw docstring

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

× close