2.0.0 • Published 5 months ago

sesame-api v2.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

Sesame API Package

This package was created by Naflouille Creations.

Instructions for use

*Documentation will be available on SesAPI shortly.

Installing the package

To install this package, you first need to have NodeJS and NPM installed. Then you can install the package.

npm install sesame-api

To use the Sesame API, you must first define sesame in your NodeJS script

const sesame = require("sesame-api");

Once this is done, you can use the API functions to search the Sesame database.

Usage/Examples

const sesame = require("sesame-api");
let data = sesame.search.SearchInDatabase("Rithy", "users");
console.log(data);

The data variable normally contains :

[
  {
    name: 'Rithy',
    description: 'A guy.',
    links: [...],
    about: {
      isStaff: false,
      isModder: false,
      isUCP: false,
      isContrib: false,
      isSesame: true
    },
    sesameID: 'usr-RTY-bDEO1zR7Gx',
    templateImage: 'https://github.com/rithyn/rithy-archive/blob/main/pictures/ucp/rithy.png?raw=true'
  }
]

The search function is normally sesame.search.SearchInDatabase(KEYWORDS, TYPE);

TYPE can be "users", "ships", "mods", "codes" and "communities".

KEYWORDS is your keyword.

Links

Sesame

Sesame API Package

Authors

@naflouille

@rithy

2.0.0

5 months ago

1.3.3

5 months ago

1.3.2

5 months ago

1.3.1

5 months ago

1.2.7

5 months ago

1.2.6

5 months ago

1.2.5

5 months ago

1.2.4

5 months ago

1.2.0

5 months ago

1.1.5

5 months ago

1.1.4

5 months ago

1.1.3

5 months ago

0.1.5

5 months ago

0.1.4

5 months ago

0.1.3

5 months ago

0.0.2

5 months ago

0.0.1

5 months ago