Get wiki page
The wiki.getWikiPage
method on a Client
instance makes a GET
request to the wiki/{locale}/{path}
endpoint and returns a wiki page.
Example
const wikiPage = await api.wiki.getWikiPage('en', 'Tournaments/OWC/2022');
Parameters
Parameter | Type | Optional | Description |
---|---|---|---|
locale | string | Two-letter language code of the wiki page | |
path | string | Path to the wiki page |
Returns
Promise<WikiPage>;
Types
Possible Exceptions
See the error handling documentation for more information.
invalid_json_syntax
network_error
unexpected_response
Notice that something is missing? Found a typo? Think something's incomplete? Or think that something can be explained better? Feel free to open a pull request or submit an issue on the library's Github repository .