FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

lotrcfc

v1.0.1 Modules

lotrcfc

A CFML wrapper for The Lord of the Rings API.
One API to rule them all - and this is the wrapper to use them. Just kidding. It's a CFML wrapper for all the Lord of the Rings goodness you need.

Feel free to use the issue tracker to report bugs or suggest improvements!

Acknowledgements

This project borrows heavily from the API frameworks built by jcberquist, such as xero-cfml and aws-cfml. Because it draws on those projects, it is also licensed under the terms of the MIT license.

Table of Contents

Quick Start

The following is a minimal example of doing something helpful.

lotr = new path.to.lotrcfc.lordoftheringsapi( apiKey = 'xxx' );

lotr.listQuotes();

Reference Manual

listBooks()

List movies.

listMovies()

List movies.

listQuotes()

List quotes - there are a lot of them.

listCharacters()

List characters - again, very extensive, with in-depth information.

getBook( required string id )

Get a book by id. Returns the same information as seen in the list method.

getMovie( required string id )

Get a movie by id. Returns the same information as seen in the list method.

getQuote( required string id )

Get a quote by id. Returns the same information as seen in the list method. Includes the ID of the movie and character.

getCharacter( required string id )

Get a character by id. Returns the same information as seen in the list method.

getChapter( required string id )

Get a chapter by id. Currently does not include much information.

listChaptersByBook( required string id )

Lists all chapters in a book. Currently does not include much information.

listQuotesByMovie( required string id )

Lists all quotes in a movie.

listQuotesByCharacter( required string id )

Lists all quotes in a character.


  •   Matthew Clemente
  • Published
  • 1.0.1 is the latest of 2 release(s)
    Published
  • Published on {{ getFullDate("2020-02-26T20:30:29Z") }}
  • Licensed on OSI-approved terms MIT

$ box install lotrcfc

No collaborators yet.
 
  • {{ getFullDate("2020-02-26T20:26:38Z") }}
  • {{ getFullDate("2020-02-26T20:30:29Z") }}
  • 1,305
  • 3