All Projects → arbazsiddiqui → A-song-of-ice-and-fire-API

arbazsiddiqui / A-song-of-ice-and-fire-API

Licence: MIT license
Javascript wrapper for the A song of ice and fire API

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to A-song-of-ice-and-fire-API

nimCEF
Nim wrapper for the Chromium Embedded Framework
Stars: ✭ 27 (+80%)
Mutual labels:  wrapper
v-cupertino
A Vue 3 Wrapper for Cupertino Pane Library
Stars: ✭ 17 (+13.33%)
Mutual labels:  wrapper
Invoke-Terraform
A cross-platform PowerShell module for downloading and invoking terraform binaries.
Stars: ✭ 14 (-6.67%)
Mutual labels:  wrapper
Discord-Netflix
A updated and improved version from the original Discord-Netflix from Nirewen.
Stars: ✭ 26 (+73.33%)
Mutual labels:  wrapper
FinMesh
A python package that brings together financial and economic data.
Stars: ✭ 20 (+33.33%)
Mutual labels:  wrapper
moGL
Modern OpenGL wrapper, thin C++14 header-only layer on top of the OpenGL 4.5+ API
Stars: ✭ 27 (+80%)
Mutual labels:  wrapper
mira
The fantastic Golang Reddit API wrapper for gophers
Stars: ✭ 54 (+260%)
Mutual labels:  wrapper
upx
Node.js cross-platform wrapper for UPX - the ultimate packer for eXecutables.
Stars: ✭ 27 (+80%)
Mutual labels:  wrapper
PSEventViewer
PSEventViewer (Get-Events) is really useful PowerShell wrapper around Get-WinEvent. One of the features you may be interested in is a simple way of getting “hidden” events data
Stars: ✭ 74 (+393.33%)
Mutual labels:  wrapper
google-workspace
A unofficial high level Python API wrapper for some of the productivity based Google APIs, that is focused on simplicity.
Stars: ✭ 74 (+393.33%)
Mutual labels:  wrapper
sdlpp
C++ wrapper for SDL2
Stars: ✭ 37 (+146.67%)
Mutual labels:  wrapper
XUSG
XUSG, XU's supreme graphics lib, is a handy wrapper currently for DirectX 12. It can be a good reference for designing your own DX12 wrapper APIs.
Stars: ✭ 57 (+280%)
Mutual labels:  wrapper
HerePy
A library that provides a Python interface to the HERE APIs.
Stars: ✭ 73 (+386.67%)
Mutual labels:  wrapper
routeros-client
Abstraction layer over the node-routeros API
Stars: ✭ 63 (+320%)
Mutual labels:  wrapper
uplot-wrappers
React and Vue.js wrappers for uPlot that allow you to work with charts declaratively inside your favorite framework
Stars: ✭ 37 (+146.67%)
Mutual labels:  wrapper
CallofDuty.py
Asynchronous, object-oriented Python wrapper for the Call of Duty API.
Stars: ✭ 86 (+473.33%)
Mutual labels:  wrapper
harfbuzz rs
A fully safe Rust wrapper for the harfbuzz text shaping library.
Stars: ✭ 26 (+73.33%)
Mutual labels:  wrapper
dinputto8
A dll module that is designed to improve compatibility in games using DirectInput 1-7 (dinput.dll) by converting all API calls to their equivalent DirectInput 8 (dinput8.dll) ones. This allows older games to be able to use newer tools and wrappers written for DirectInput 8.
Stars: ✭ 42 (+180%)
Mutual labels:  wrapper
liqui
liqui.io api wrapper
Stars: ✭ 22 (+46.67%)
Mutual labels:  wrapper
FivePD-API
A wrapper that allows you to create FivePD callouts/plugins.
Stars: ✭ 17 (+13.33%)
Mutual labels:  wrapper

A-song-of-ice-and-fire-API

Overview

A-song-of-ice-and-fire-API is a Node.js wrapper for accessing AnApiOfIceAndFire.

Installation

The current production release of A-song-of-ice-and-fire-API is available through npm:

npm install asoiaf-api

Usage

> var asoaif = require('asoiaf-api');
> asoaif.getCharacterByName("Jon Snow");


[ { url: 'http://www.anapioficeandfire.com/api/characters/583',
    name: 'Jon Snow',
    gender: 'Male',
    culture: 'Northmen',
    born: 'In 283 AC',
    died: '',
    titles: [ 'Lord Commander of the Night\'s Watch' ],
    aliases: 
     [ 'Lord Snow',
       'Ned Stark\'s Bastard',
       'The Snow of Winterfell',
       'The Crow-Come-Over',
       'The 998th Lord Commander of the Night\'s Watch',
       'The Bastard of Winterfell',
       'The Black Bastard of the Wall',
       'Lord Crow' ],
    father: '',
    mother: '',
    spouse: '',
    allegiances: [ 'http://www.anapioficeandfire.com/api/houses/362' ],
    books: [ 'http://www.anapioficeandfire.com/api/books/5' ],
    povBooks: 
     [ 'http://www.anapioficeandfire.com/api/books/1',
       'http://www.anapioficeandfire.com/api/books/2',
       'http://www.anapioficeandfire.com/api/books/3',
       'http://www.anapioficeandfire.com/api/books/8' ],
    tvSeries: [ 'Season 1', 'Season 2', 'Season 3', 'Season 4', 'Season 5' ],
    playedBy: [ 'Kit Harington' ] } ]

API

Characters

getCharacterByID

  • Accepts: A string or number representing a character ID.
  • Returns: An object containing the character's properties if the character exists.

getCharacterByName

  • Accepts: A string representing full name of the character.
  • Returns: An array of objects containing all the characters with given name.

getCharactersByCulture

  • Accepts: A string representing the culture of Character.
  • Returns: An array of objects containing all the characters with given culture.

getCharactersByGender

  • Accepts: A string representing the gender of Character.
  • Returns: An array of objects containing all the characters with given gender.

getAllCharacters

  • Returns: An array of objects containing all the characters.

Houses

getHouseByID

  • Accepts: A string or number representing a house ID.
  • Returns: An object containing the house's properties if the house exists.

getHouseByName

  • Accepts: A string representing full name of the house.
  • Returns: An array of objects containing all the houses with given name.

getHouseByRegion

  • Accepts: A string representing the region of the house.
  • Returns: An array of objects containing all the houses with given region.

getHouseByWords

  • Accepts: A string representing the words/saying of the house.
  • Returns: An array of objects containing all the houses with given words/saying.

getAllHouses

  • Returns: An array of objects containing all the houses.

Books

getBookByID

  • Accepts: A string or number representing a book ID.
  • Returns: An object containing the book's properties if the book exists.

getBookByName

  • Accepts: A string representing full name of the book.
  • Returns: An array of objects containing all the books with given name.

getAllBooks

  • Returns: An array of objects containing all the books.

FUN

getRandomCharacter

  • Returns: An object containing the properties of a random character.

getRandomHouse

  • Returns: An object containing the properties of a random house.

getRandomCharacterOfHouse

  • Accepts: A string representing full name of the house.
  • Returns: An object containing the properties of a random character from the given house
> var asoaif = require('asoiaf-api');
> asoaif.getRandomCharacterOfHouse("House Stark of Winterfell");

{ url: 'http://www.anapioficeandfire.com/api/characters/170',
  name: 'Barthogan Stark',
  gender: 'Male',
  culture: 'Northmen',
  born: '',
  died: '',
  titles: [ 'Lord of Winterfell', 'Warden of the North' ],
  aliases: [ 'Barth Blacksword' ],
  father: '',
  mother: '',
  spouse: '',
  allegiances: [ 'http://www.anapioficeandfire.com/api/houses/362' ],
  books: 
   [ 'http://www.anapioficeandfire.com/api/books/2',
     'http://www.anapioficeandfire.com/api/books/11' ],
  povBooks: [],
  tvSeries: [],
  playedBy: [] }
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].