JavaScript SDK
Our JavaScript SDK is the easiest way to start making requests to the Topsort API.
Installation
The SDK works in any modern JavaScript environment, meaning browsers and most javascript runtimes (we are yet to support Deno).
Start by adding it to your dependencies:
Usage
Now, let’s import the library and make a request.
It’s important to keep in mind that the api key is something you generally want to keep confidential. If you are making calls from the frontend, this cannot be avoided. In some cases, such as loading banners client-side this is not possible, but in most cases you should try to make auctions server-side.
This will create an auction with the given details. You can find more information about the available options in the documentation.
We work continuously on improving the SDK. If you find issues or have feature suggestions, open an issue!