Skip to content
This repository was archived by the owner on Oct 17, 2022. It is now read-only.

:New & :Change Functions

ayden edited this page Feb 14, 2022 · 2 revisions

The :New function

The :New function allows you to begin using the module itself. This function should be used before ANY of the API is called.

Usage is as follows:

Module:New("<API KEY>","<API ENDPOINT>")

After you have called this function, you are ready to use the rest of the functions.

The :Change function

This function is used generally when you are accessing the same database, collection, or data source multiple times.

Usage is as follows:

Module:Change("<STATIC SOURCE>","<STATIC DATABASE>","<STATIC COLLECTION>")

You can use this function to make them automatically passed into the request without having to specify them. However, you may be constantly changing collections, sources, or databases. Don’t worry as passed in collections/databases/sources are prioritized over the static one.

Clone this wiki locally