0.0.7 • Published 7 years ago

medivia-api v0.0.7

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

Medivia.org NodeJS Promise bassed API.

Easy to use Medivia API.

Get started

npm install medivia-api;

How to use it.

import MediviaAPI from 'medivia-api';

const mediviaAPI = new MediviaAPI({ worldName: 'Destiny' });

mediviaAPI.getOnlinePlayers().then((result) => {
  console.log(result); // Array bassed online players to Destiny
}).catch((error) => {
  console.log(error);
})

Methods.

getOnlinePlayers() - Method to get all the online players worldName is optional, but be sure to pass a worldName when you initialize the function.

Example response

 {
   { name, level, vocation, lastLogin, },
   ...more,
 }

getCharacterInformation({ characterName: 'Ethan pump' }) - Method to get the whole character information

Example response

{
  'name:': 'Ethan pump ',
  'sex:': 'male',
  'vocation:': 'Royal Paladin',
  ...
}

getCharacterDeathInformation({ characterName: 'Ethan pump' }) - Method to get the whole character death information by a giving name

Example response

[
  { timeago: '1 minute', killedBy: 'Ethan pump' },
  ...deaths
]

getGuildInformation({ guildUrl: 'https://medivia.online/community/guilds/show/5847' }) - Method to get the guild information by a giving guild URL or guild name.

Example response

{
  members: [{
      name: 'Wingzter',
    }, ...more]
}
0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago