1.0.1 • Published 4 years ago
@f1sxher/bloxlinkapi v1.0.1
Bloxlink API
Bloxlink API, created by Fisher
Update Logs:
- v1.0.0
- Main code finished, bug fixes :) also v1 so thats cool
- v1.0.1
- Added README.md
- Changed
getUserIdForGuild()
-->getUserIdFromGuild()
Installation
You can install the package by running npm i @f1sxher/bloxlinkapi
Usage
We currently support 2 functions, getUserId(userId[string], additionalData[boolean])
& getUserIdFromGuild(userId[string], guildId[string], additionalData[boolean])
Example Code:
const BloxlinkAPI = require('@f1sxher/bloxlinkapi')
let cool_function = async function(){
let user = await BloxlinkAPI.getUserId('756614666066591836', true)
console.log(user)
}
cool_function()
Response:
{
status: 'ok',
primaryAccount: '531761235',
account: { username: 'F1sxher', id: '531761235', profile: {} }
}
OR
const BloxlinkAPI = require('@f1sxher/bloxlinkapi')
let cool_function = async function(){
let user = await BloxlinkAPI.getUserIdFromGuild('756614666066591836', '372036754078826496', true)
console.log(user)
}
cool_function()
Response:
{
status: 'ok',
primaryAccount: '531761235',
matchingAccount: '531761235',
account: { username: 'F1sxher', id: '531761235', profile: {} }
}
*Profile Field will have more data to it as this gets updated :)