Microsoft Azure SDK for Node.js - Cognitive Services Content Moderator
This project provides a Node.js package that makes it easy to work with the Microsoft Azure Cognitive Services Content Moderator APIs. Right now it supports:
- Node.js version: 6.x or higher
How to Install
npm install azure-cognitiveservices-contentmoderator
How to use
Create a Cognitive Services Account(ex. Content Moderator)
const msRestAzure = ; const CognitiveServicesManagement = ; let client; let createAccount = msRestAzure;
List the keys from the created account
let serviceKey; createAccount;
Create credentials
const CognitiveServicesCredentials = CognitiveServicesCredentials; // Creating the Cognitive Services credentials// This requires a key corresponding to the service being used (i.e. text-analytics, etc)let credentials = serviceKey;
Content Moderator API
const ContentModeratorAPIClient = ; let client = credentials "westus.api.cognitive.microsoft.com";clienttextModeration;
More Detailed Information
https://azure.microsoft.com/en-us/try/cognitive-services/ under "Vision"