1.0.5 • Published 5 years ago

habinfojs v1.0.5

Weekly downloads
6
License
ISC
Repository
github
Last release
5 years ago

Features

  • Create a API instance in the available Hotels
  • Get User Data
  • Get Profile Data
  • Get Badges Data
  • Get Friends Data
  • Get Groups Data
  • Get Rooms Data
  • Get Photos Data

####Installing module

$ npm install habinfojs

####Create instance of API const HabboAPI = require('habinfojs')

####Get Data from specified user

const HabboAPI = require('habinfojs')

module.exports = {

    getAPI: function(hotel, name) {
        const api = new HabboAPI(hotel)
        return api
    },

    getUserID: async function(api, name) {
        let d
        await api.getHabbo(name)
        .then(user => {
            d = user
        })
        return d._data.uniqueId
    },

    getHabbo: async function(api, name) {
        let d
        await api.getHabbo(name)
        .then(user => {
            d = user
        })
        return d._data
    },

    getProfile: async function(api, id) {
        let d
        await api.getProfile(id)
        .then(profile => {
            d = profile
        })
        return d._data
    },

    getPhotos: async function(api, id) {
        let d
        await api.getPhotos(id)
        .then(photos => {
            d = photos
        })
        
        return d
    },

    getAchievements: async function(api, id) {
        let d
        await api.getAchievements(id)
        .then(achievements => {
            d = achievements
        })
        return d
    }
}
1.0.5

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago