This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

oterlu-api
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

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.

Package Sidebar

Install

npm i oterlu-api

Weekly Downloads

7

Version

0.0.6

License

MIT

Unpacked Size

8.84 kB

Total Files

10

Last publish

Collaborators

  • axisiscool