A bunch of glue for Nim applications to query PonyAPI.
Procs
proc newest(): Episode {.raises: [ValueError, OSError, HttpRequestError, OverflowError, TimeoutError, ProtocolError, Exception, JsonParsingError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect].}
- returns information on the newest episode of My Little Pony: Friendship is Magic.
proc random(): Episode {.raises: [ValueError, OSError, HttpRequestError, OverflowError, TimeoutError, ProtocolError, Exception, JsonParsingError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect].}
- returns information on a random episode.
proc get_episode(season, episode: int): Episode {.raises: [ValueError, OSError, HttpRequestError, OverflowError, TimeoutError, ProtocolError, Exception, JsonParsingError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect].}
- return an arbitrary episode by season, episode pair.
proc all_episodes(): seq[Episode] {.raises: [ValueError, OSError, HttpRequestError, OverflowError, TimeoutError, ProtocolError, Exception, JsonParsingError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect].}
- return all information on all episodes.
proc get_season(season: int): seq[Episode] {.raises: [ValueError, OSError, HttpRequestError, OverflowError, TimeoutError, ProtocolError, Exception, JsonParsingError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect].}
- return all information on a single season.
proc search(term: string): seq[Episode] {.raises: [ValueError, OSError, HttpRequestError, OverflowError, TimeoutError, ProtocolError, Exception, JsonParsingError], tags: [ReadIOEffect, WriteIOEffect, TimeEffect].}
- searches for episodes by the given query term.