A simple, single namespace Clojure library to wrap the uNoGS API to enable easy access to Netflix information.
The latest release version of the clunogs library is hosted on Clojars.
Leiningen and Boot
[clunogs "0.1.0"]
deps.edn
clunogs {:mvn/version "0.1.0"}
Require the package:
(ns example
(:require [clunogs.core :as clunogs]))You can specify your API key and make a request in one of three ways.
Pass your API key as a keyword argument to the request function:
(clunogs/new-releases 1 "US" :api-key "secret-key")
Set the API key globally:
(clunogs/set-api-key "secret-key")
(clunogs/new-releases 1 "US")Set the API key via the headers using the with-headers macro:
(clunogs/with-headers
{:accept "application/json"
:x-rapidapi-key "secret-key"}
(clunogs/new-releases 1 "US"))All three method practically equivalent. This library is not opinionated and allows you to use what best fits your use case. However, an API key passed as an argument will overwrite a value set by the macro or globally.
For more information, please see the Using clunogs with samples for all requests as well as the complete namespace documentation.
Copyright © 2019 Henry Blevins
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.