/clj-omdb

Primary LanguageClojureEclipse Public License 1.0EPL-1.0

OMDB Wrapper for Clojure

A simple wrapper to access the OMDb API. There is one function: search and it returns map with :keywords.

Usage

The search function four parameters: search-by, search-term, api-key and options-map.

ParametersOptions
search-byString: title, id, term
search-termString: movie name, imdb id, term
api-keyString: api-key provided by OMDb
options-mapMap: various options can be found on the OMDb site. See example below.

Example

(ns great-app.core
  (:require '[omdb-wrapper.core :as omdb]))

(def api-key "xyz1234")

;;; No options.
(omdb/search "title" "Casablanca" api-key {})

;;; With options.
(omdb/search "title" "Casablanca" api-key {:plot "full"})