Skip to content

Blevs/clunogs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clunogs

https://img.shields.io/clojars/v/clunogs.svg

A simple, single namespace Clojure library to wrap the uNoGS API to enable easy access to Netflix information.

./logo.png

Latest version

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"}

Basic Usage

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.

Documentation

For more information, please see the Using clunogs with samples for all requests as well as the complete namespace documentation.

License

Copyright © 2019 Henry Blevins

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

A Clojure library to wrap the uNoGS API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors