(aiContentDetector)
Methods related to AI Content Detector
- detect - Content detector api
Content detector api
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();
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. |
Promise<operations.DetectContentResponse>
Error Object | Status Code | Content Type |
---|---|---|
errors.FailResponse | 400,401,403,404,500 | application/json |
errors.SDKError | 4xx-5xx | / |