Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Latest commit

 

History

History
26 lines (21 loc) · 881 Bytes

File metadata and controls

26 lines (21 loc) · 881 Bytes

SC Network Public API

What is this?

This package is built to allow us to fetch publicly available information from users registered in the SC Network Dashboard. We also support fetching data from BetterGlobal.

Should I use this?

Probably not, we only use this module in our systems and won't provide support for using it.

Usage

Run: npm i --save @scnetwork/api

const api = require('@scnetwork/api');

// Get an array of all users who have autoSync enabled
console.log(await api.getAutoSyncMembers())
// Get an user by ID
console.log(await api.getUser('413429490342035466'))

// --- BetterGlobal ---
// Get a guild by ID
console.log(await api.getBetterGlobalGuild('489786377261678592'))
// Get a user by ID
console.log(await api.getBetterGlobalUser('413429490342035466'))

© Simon Csaba, 2021