Using azure-sdk-for-js with azure.com

TypeScript integration

✓ Official SDK
Install
npm install azure-sdk-for-js
Quick start
import Azure_sdk_for_js from 'azure-sdk-for-js';

const client = new Azure_sdk_for_js({ apiKey: "YOUR_API_KEY" });
gets all the Term Lists
curl \
  -H "Ocp-Apim-Subscription-Key: $API_KEY" \
  /contentmoderator/lists/v1.0/termlists
Gets all the Image Lists.
curl \
  -H "Ocp-Apim-Subscription-Key: $API_KEY" \
  /contentmoderator/lists/v1.0/imagelists
Returns list Id details of the term list with list Id equal to list Id passed.
curl \
  -H "Ocp-Apim-Subscription-Key: $API_KEY" \
  /contentmoderator/lists/v1.0/termlists/{listId}
SDK on GitHub 📄 API Docs
SDK
azure-sdk-for-js
TypeScript
API
azure.com
azure.com:cognitiveservices-ContentModerator
At a glance
Language TypeScript
Endpoints35
✓ Official