Constructors
constructor
- new compendium(default_timeout?: number, url?: string): compendium
-
Parameters
-
default_timeout: number = 20000
-
url: string = "https://botw-compendium.herokuapp.com/api/v2"
Properties
Private default_timeout
default_timeout: number
Methods
download_entry_image
- download_entry_image(entry: entryName | entryId, output_file?: string, callback?: Function, timeout?: number, error_callback?: Function): void
-
Parameters
-
-
Optional output_file: string
-
callback: Function = ...
-
timeout: number = ...
-
error_callback: Function = ...
Returns void
get_all
- get_all(callback: AllCallback, timeout?: number, error_callback?: Function): void
-
Parameters
-
-
timeout: number = ...
-
error_callback: Function = ...
Returns void
get_category
- get_category(category: "creatures" | "equipment" | "materials" | "monsters" | "treasure", callback: CategoryCallback, timeout?: number, error_callback?: Function): void
-
Parameters
-
category: "creatures" | "equipment" | "materials" | "monsters" | "treasure"
-
-
timeout: number = ...
-
error_callback: Function = ...
Returns void
get_entry
-
Parameters
-
-
-
timeout: number = ...
-
error_callback: Function = ...
Returns void
Base class for hyrule-compendium
Base URL for API
Default milliseconds to wait for response for all API calling functions until error