Skip to content

Instantly share code, notes, and snippets.

@anchetaWern
Last active June 26, 2019 05:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anchetaWern/eeca537c1c3db158c2d7bce8f63e67e8 to your computer and use it in GitHub Desktop.
Save anchetaWern/eeca537c1c3db158c2d7bce8f63e67e8 to your computer and use it in GitHub Desktop.
React Native Stream Chat Profanity Filtering: Cognitive Service config
const COGNITIVE_SERVICES_API_KEY = process.env.COGNITIVE_SERVICES_API_KEY;
const axios_base_instance_opt = {
baseURL: `https://api.cognitive.microsofttranslator.com`,
timeout: 3000,
headers: {
'Content-Type': 'application/json',
'Ocp-Apim-Subscription-Key': COGNITIVE_SERVICES_API_KEY
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment