Skip to content

💫 Api wrapper for the steam game Splitgate

Notifications You must be signed in to change notification settings

47PADO47/Splitgate.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Splitgate.js

Api wrapper for the steam game Splitgate

Installation

npm install splitgate.js

Example

    const Splitgate = require('splitgate.js');
    const v1 = new Splitgate.v1();
    const v2 = new Splitgate.v2();

    (async () => {
        await v1.login('platformAuthToken', 'authToken');
        await v2.login('platformToken');

        const status = await v1.getServerStatus();
        console.log(`Servers are ${status.isLive ? 'online' : 'offline'}`);

        const pass = await v2.getSeasonPass();
        console.log(`The season pass will end on ${new Date(pass.end).toLocaleDateString()}`);
    })();