Last active
June 26, 2019 05:57
-
-
Save anchetaWern/eeca537c1c3db158c2d7bce8f63e67e8 to your computer and use it in GitHub Desktop.
React Native Stream Chat Profanity Filtering: Cognitive Service config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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