1.3.0 • Published 2 years ago

cardinaljs v1.3.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

cardinaljs

The javascript library to interact with cardinal API.

About

cardinaljs is a Node.js module that allows you to interact with Cardinal API.

Installation

With the npm package:

npm install cardinaljs

Usage

const { Client } = require('cardinaljs');
const client = new Client();

//check the token validity
client.login('token')
  .then(token => console.log('Connected!'))
  .catch(err => console.error('Unable to connect: ' + err));

// Fetch a guild
client.guilds.resolve('guildID')
  .then(guild => {
    if (guild != undefined)
      console.log('Fetched guild ' + guild.guildName );
    else
      console.log('Guild wiht id guildID is not in Cardinal database.');
  })
  .catch(err => console.error('Could not resolve guild guildID: ' + err));
1.3.0

2 years ago

1.2.35

3 years ago

1.2.38

3 years ago

1.2.39

3 years ago

1.2.36

3 years ago

1.2.37

3 years ago

1.2.34

3 years ago

1.2.32

3 years ago

1.2.33

3 years ago

1.2.201

3 years ago

1.2.30

3 years ago

1.2.31

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago