An unofficial wrapper for the Oterlu API.
- Written in TypeScript
- Super fast ⚡
- Simple API
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!');
If support is needed, please submit an issue.