(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
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
(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
(get-student-data & [{:keys [service param netid] :or {service :records}}])
(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
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
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close