UNPKG

albion-api

Version:

A basic API implementation for Albion online using the limited gameinfo API.

2,122 lines (570 loc) 25.7 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> <title>Global - Documentation</title> <script src="scripts/prettify/prettify.js"></script> <script src="scripts/prettify/lang-css.js"></script> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"> <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css"> <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css"> </head> <body> <input type="checkbox" id="nav-trigger" class="nav-trigger" /> <label for="nav-trigger" class="navicon-button x"> <div class="navicon"></div> </label> <label for="nav-trigger" class="overlay"></label> <nav> <li class="nav-link nav-home-link"><a href="index.html">Home</a></li><li class="nav-heading"><a href="global.html">Globals</a></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#getEventDetails">getEventDetails</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#getEventsBetween">getEventsBetween</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#getGuildData">getGuildData</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#getGuildFued">getGuildFued</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#getGuildInfo">getGuildInfo</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#getGuildMembers">getGuildMembers</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#getGuildStats">getGuildStats</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#getGuildTopKills">getGuildTopKills</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#getPlayerInfo">getPlayerInfo</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#getRecentEvents">getRecentEvents</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#getServerStatus">getServerStatus</a></span></li><li class="nav-item"><span class="nav-item-type type-function">F</span><span class="nav-item-name"><a href="global.html#search">search</a></span></li> </nav> <div id="main"> <h1 class="page-title">Global</h1> <section> <header> <h2> </h2> </header> <article> <div class="container-overview"> <dl class="details"> </dl> </div> <h3 class="subsection-title">Methods</h3> <div class="section-method"> <h4 class="name" id="getEventDetails"><span class="type-signature"></span>getEventDetails<span class="signature">(eventId, cb)</span><span class="type-signature"></span></h4> <div class="description"> <p>getEventDetails - description</p> </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line109">line 109</a> </li></ul></dd> </dl> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>eventId</code></td> <td class="type"> <span class="param-type"><code>string</code></span> </td> <td class="description last"> <p>description</p> </td> </tr> <tr> <td class="name"><code>cb</code></td> <td class="type"> <span class="param-type"><code>callback</code></span> </td> <td class="description last"> <p>description</p> </td> </tr> </tbody> </table> </div> <div class="section-method"> <h4 class="name" id="getEventsBetween"><span class="type-signature"></span>getEventsBetween<span class="signature">(eventId1, eventId2, cb)</span><span class="type-signature"></span></h4> <div class="description"> <p>getEventsBetween - description</p> </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line122">line 122</a> </li></ul></dd> </dl> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>eventId1</code></td> <td class="type"> <span class="param-type"><code>string</code></span> </td> <td class="description last"> <p>description</p> </td> </tr> <tr> <td class="name"><code>eventId2</code></td> <td class="type"> <span class="param-type"><code>string</code></span> </td> <td class="description last"> <p>description</p> </td> </tr> <tr> <td class="name"><code>cb</code></td> <td class="type"> <span class="param-type"><code>callback</code></span> </td> <td class="description last"> <p>description</p> </td> </tr> </tbody> </table> </div> <div class="section-method"> <h4 class="name" id="getGuildData"><span class="type-signature"></span>getGuildData<span class="signature">(guildId, cb)</span><span class="type-signature"></span></h4> <div class="description"> <p>getGuildData - description</p> </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line148">line 148</a> </li></ul></dd> </dl> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>guildId</code></td> <td class="type"> <span class="param-type"><code>string</code></span> </td> <td class="description last"> <p>description</p> </td> </tr> <tr> <td class="name"><code>cb</code></td> <td class="type"> <span class="param-type"><code>callback</code></span> </td> <td class="description last"> <p>description</p> </td> </tr> </tbody> </table> </div> <div class="section-method"> <h4 class="name" id="getGuildFued"><span class="type-signature"></span>getGuildFued<span class="signature">(guildId1, guildId2, cb)</span><span class="type-signature"></span></h4> <div class="description"> <p>getGuildFued - description</p> </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line205">line 205</a> </li></ul></dd> </dl> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>guildId1</code></td> <td class="type"> <span class="param-type"><code>string</code></span> </td> <td class="description last"> <p>description</p> </td> </tr> <tr> <td class="name"><code>guildId2</code></td> <td class="type"> <span class="param-type"><code>string</code></span> </td> <td class="description last"> <p>description</p> </td> </tr> <tr> <td class="name"><code>cb</code></td> <td class="type"> <span class="param-type"><code>callback</code></span> </td> <td class="description last"> <p>description</p> </td> </tr> </tbody> </table> </div> <div class="section-method"> <h4 class="name" id="getGuildInfo"><span class="type-signature"></span>getGuildInfo<span class="signature">(guildId, cb)</span><span class="type-signature"></span></h4> <div class="description"> <p>getGuildInfo - description</p> </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line137">line 137</a> </li></ul></dd> </dl> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>guildId</code></td> <td class="type"> <span class="param-type"><code>string</code></span> </td> <td class="description last"> <p>description</p> </td> </tr> <tr> <td class="name"><code>cb</code></td> <td class="type"> <span class="param-type"><code>callback</code></span> </td> <td class="description last"> <p>description</p> </td> </tr> </tbody> </table> </div> <div class="section-method"> <h4 class="name" id="getGuildMembers"><span class="type-signature"></span>getGuildMembers<span class="signature">(guildId, cb)</span><span class="type-signature"></span></h4> <div class="description"> <p>getGuildMembers - description</p> </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line193">line 193</a> </li></ul></dd> </dl> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>guildId</code></td> <td class="type"> <span class="param-type"><code>string</code></span> </td> <td class="description last"> <p>description</p> </td> </tr> <tr> <td class="name"><code>cb</code></td> <td class="type"> <span class="param-type"><code>callback</code></span> </td> <td class="description last"> <p>description</p> </td> </tr> </tbody> </table> </div> <div class="section-method"> <h4 class="name" id="getGuildStats"><span class="type-signature"></span>getGuildStats<span class="signature">(guildId, cb)</span><span class="type-signature"></span></h4> <div class="description"> <p>getGuildStats - description</p> </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line182">line 182</a> </li></ul></dd> </dl> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>guildId</code></td> <td class="type"> <span class="param-type"><code>string</code></span> </td> <td class="description last"> <p>description</p> </td> </tr> <tr> <td class="name"><code>cb</code></td> <td class="type"> <span class="param-type"><code>callback</code></span> </td> <td class="description last"> <p>description</p> </td> </tr> </tbody> </table> </div> <div class="section-method"> <h4 class="name" id="getGuildTopKills"><span class="type-signature"></span>getGuildTopKills<span class="signature">(guildId, opts, cb)</span><span class="type-signature"></span></h4> <div class="description"> <p>getGuildTopKills - description</p> </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line160">line 160</a> </li></ul></dd> </dl> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>guildId</code></td> <td class="type"> <span class="param-type"><code>string</code></span> </td> <td class="description last"> <p>description</p> </td> </tr> <tr> <td class="name"><code>opts</code></td> <td class="type"> <span class="param-type"><code>object</code></span> </td> <td class="description last"> <p>description</p> </td> </tr> <tr> <td class="name"><code>cb</code></td> <td class="type"> <span class="param-type"><code>callback</code></span> </td> <td class="description last"> <p>description</p> </td> </tr> </tbody> </table> </div> <div class="section-method"> <h4 class="name" id="getPlayerInfo"><span class="type-signature"></span>getPlayerInfo<span class="signature">(playerId, cb)</span><span class="type-signature"></span></h4> <div class="description"> <p>getPlayerInfo - description</p> </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line219">line 219</a> </li></ul></dd> </dl> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>playerId</code></td> <td class="type"> <span class="param-type"><code>string</code></span> </td> <td class="description last"> <p>description</p> </td> </tr> <tr> <td class="name"><code>cb</code></td> <td class="type"> <span class="param-type"><code>callback</code></span> </td> <td class="description last"> <p>description</p> </td> </tr> </tbody> </table> </div> <div class="section-method"> <h4 class="name" id="getRecentEvents"><span class="type-signature"></span>getRecentEvents<span class="signature">(opts, cb)</span><span class="type-signature"></span></h4> <div class="description"> <p>getRecentEvents - description</p> </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line89">line 89</a> </li></ul></dd> </dl> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>opts</code></td> <td class="type"> <span class="param-type"><code>object</code></span> </td> <td class="description last"> <p>description</p> </td> </tr> <tr> <td class="name"><code>cb</code></td> <td class="type"> <span class="param-type"><code>callback</code></span> </td> <td class="description last"> <p>description</p> </td> </tr> </tbody> </table> </div> <div class="section-method"> <h4 class="name" id="getServerStatus"><span class="type-signature"></span>getServerStatus<span class="signature">(cb)</span><span class="type-signature"></span></h4> <div class="description"> <p>getServerStatus - description</p> </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line30">line 30</a> </li></ul></dd> </dl> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>cb</code></td> <td class="type"> <span class="param-type"><code>callback</code></span> </td> <td class="description last"> <p>description</p> </td> </tr> </tbody> </table> </div> <div class="section-method"> <h4 class="name" id="search"><span class="type-signature"></span>search<span class="signature">(query, cb)</span><span class="type-signature"></span></h4> <div class="description"> <p>search - description</p> </div> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="index.js.html">index.js</a>, <a href="index.js.html#line75">line 75</a> </li></ul></dd> </dl> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>query</code></td> <td class="type"> <span class="param-type"><code>string</code></span> </td> <td class="description last"> <p>description</p> </td> </tr> <tr> <td class="name"><code>cb</code></td> <td class="type"> <span class="param-type"><code>callback</code></span> </td> <td class="description last"> <p>description</p> </td> </tr> </tbody> </table> </div> </article> </section> </div> <br class="clear"> <footer> Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.1</a> on Sat Jul 29 2017 18:19:30 GMT+0100 (GMT Summer Time) using the Minami theme. </footer> <script>prettyPrint();</script> <script src="scripts/linenumber.js"></script> </body> </html>