0.0.18 • Published 5 years ago

tibia-api v0.0.18

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

NodeJS Promise bassed API.

Easy to use Tibia API.

Get started

npm install tibia-api

How to use it.

import TibiaAPI from 'tibia-api';

const tibiaAPI = new TibiaAPI({ worldName: 'Funera' });

tibiaAPI.getOnlinePlayers().then((result) => {
  console.log(result);
})

Methods.

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

NOTE

Tibia is taking some minutes to refresh the online list, so better use getCharacterInformation

Example response

 {
   { name: String, level: String, vocation: String },
 }

`getCharacterInformation(characterName)` - Method to get the whole character information by a giving name, like kills and online

**Example response**

{ info: { name: String, vocation: String, level: String, joiningDate: String, status: String, isOnline: false }, kills: { name: String, timeAgo: String, killedBy: String }, ...deaths , characters: { name: String, world: String, isOnline: Boolean } }

`getGuildInformation({ guildUrl })` - Method to get the guild information by a giving guild URL or guild name.

**Example response**

[ members: { rank: ' ', name: String, vocation: String, level: String, joiningDate: String, status: String, isOnline: Boolean }, invitedMembers: { name: String, invitationDate: String }, guildMembersOnline: Number, guildInformation: String ]

## TODO

- [ ] Tests
0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

7 years ago

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