Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 5.2 KB

File metadata and controls

59 lines (40 loc) · 5.2 KB

AIContentDetector

(aiContentDetector)

Overview

Methods related to AI Content Detector

Available Operations

  • detect - Content detector api

detect

Content detector api

Example Usage

import { Writer } from "@writerai/writer-sdk";

const writer = new Writer({
  apiKey: "<YOUR_API_KEY_HERE>",
  organizationId: 496531,
});

async function run() {
  const contentDetectorRequest = {
    input: "<value>",
  };
  const organizationId = 592237;
  
  const result = await writer.aiContentDetector.detect(contentDetectorRequest, organizationId);

  // Handle the result
  console.log(result)
}

run();

Parameters

Parameter Type Required Description
contentDetectorRequest shared.ContentDetectorRequest ✔️ N/A
organizationId number N/A
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.

Response

Promise<operations.DetectContentResponse>

Errors

Error Object Status Code Content Type
errors.FailResponse 400,401,403,404,500 application/json
errors.SDKError 4xx-5xx /