Skip to content

MohsinCoding/YuniteJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

Yunite Api Node-JS Wrapper

This is a node-js wrapper with access to all of the Yunite API endpoints.

Docs for official api: https://yunite.xyz/docs/developers/readme

Installation

npm install yunite

Code Example

const { YuniteApi } = require('yunite');
const apiToken = 'Your-Api-Token';
const client = new YuniteApi(apiToken);

// Gets linked users(s) from the specified guild
client.getUserLinks('guildId', {
    type: "DISCORD",
    userIds: [
        "12345678912345873",
        "23456567898765456"
    ]
}).then(response => {
    // log response
    console.log(response);
}).catch(err => {
    // log error
    console.log(err);
})

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published