Megumi is our public API wrapper for Sayonika.
Unlike most official API wrappers, Megumi is a zero-dependency, Promise-based API wrapper, so that means we get the benefit of lesser maintenance while keeping up with Node.js versions as seamless as possible.
yarn add sayonika or npm i -S sayonika.
The main API class that handles Sayonika requests.
| Parameter | Type | Description |
|---|---|---|
token |
String |
Your API key for Sayonika. This can be get via checking your request headers in browser. Look for the parameter Authorization. |
api_base_url |
String |
The base URL that API calls are made to, with a trailing slash. Default is https://sayonika.maidcafe.cf/api/v1/ |
Returns: Promise<Object>
Gets users listed in the database.
| Parameter | Type | Description |
|---|---|---|
page |
Number |
The page of the list you plan to check. |
Returns: Promise<Object>
Gets mods listed in the database.
| Parameter | Type | Description |
|---|---|---|
page |
Number |
The page of the list you plan to check. |
Returns: Promise<Object>
Gets user registered in the database via ID.
| Parameter | Type | Description |
|---|---|---|
id |
String |
The id of the specific user to get query to. |
Returns: Promise<Object>
Gets mod listed in the database via ID.
| Parameter | Type | Description |
|---|---|---|
id |
String |
The id of the specific mod to get query to. |
Copyright 2019 © Clarity Operations LLC. Licensed under Apache 2.0.