Liking cljdoc? Tell your friends :D

byu-ws.core


DATE-FORMATclj

source

get-http-authorization-headerclj

(get-http-authorization-header
  &
  [{:keys [api-key shared-secret key-type encoding-type url request-body actor
           content-type http-method actor-in-hash current-timestamp]
    :or {key-type "API"
         encoding-type "Nonce"
         url (SERVICE-URLS :records)
         request-body ""
         content-type "application/json"
         http-method "GET"
         actor-in-hash true
         current-timestamp (.format DATE-FORMAT (new java.util.Date))}
    :as var-map}])
Get the authorization header necessary for use of some BYU web services. See
https://byuapi.atlassian.net/wiki/display/OITCoreDeveloperResources/Web+Service+using+Nonce-Encoded+HMAC+Signed+by+an+API+Key+Tutorial
sourceraw docstring

get-nonceclj

(get-nonce api-key actor)

Retrieve the body of the nonce, which will contain a key and a value

Retrieve the body of the nonce, which will contain a key and a value
sourceraw docstring

get-standard-wsclj

(get-standard-ws m)
source

get-student-dataclj

(get-student-data & [{:keys [service param netid] :or {service :records}}])
source

make-sha512-hmacclj

(make-sha512-hmac shared-secret item-to-encode)
Produce a base-64 encoded sha512 hmac, as per https://byuapi.atlassian.net/wiki/display/OITCoreDeveloperResources/Web+Service+using+Nonce-Encoded+HMAC+Signed+by+an+API+Key+Tutorial
sourceraw docstring

nonce-encodeclj

(nonce-encode shared-secret nonce-value)
source

SERVICE-URLSclj

source

url-encodeclj

(url-encode [{:keys [shared-secret current-timestamp url request-body
                     content-type http-method actor actor-in-hash]}])

Encode for URL validation

Encode for URL validation
sourceraw docstring

VALID-KEY-TYPESclj

source

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

× close