oterlu-api

An unofficial API wrapper for Oterlu.

Usage no npm install needed!

<script type="module">
  import oterluApi from 'https://cdn.skypack.dev/oterlu-api';
</script>

README

Oterlu API

An unofficial wrapper for the Oterlu API.

Features

  • Written in TypeScript
  • Super fast ⚡
  • Simple API

Usage

Since the library only has two functions, usage is straightforward:

import { setApiKey, classifyContent } from 'oterlu-api';

// First, set your API key.
// - Note: Make sure this is set before you execute any functions relating to Oterlu, as you will get a "forbidden" error thrown.
setApiKey('my_api_key');

// Now that it's set, we can process messages:
const content = 'Classify me :)';
const response = await classifyContent(content);

if (response.isFlagged) console.log('Message is flagged!');

Support

If support is needed, please submit an issue.