Created
August 14, 2016 14:56
-
-
Save MNie/85aebd24f5e1d14c3a7c744e661995f8 to your computer and use it in GitHub Desktop.
AzureTextAnalytics, sentiment function
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
let getSentimentScore json = | |
let serializeJson = JsonConvert.SerializeObject json | |
let response = Http.RequestString("https://westus.api.cognitive.microsoft.com/text/analytics/v2.0/sentiment", | |
body = TextRequest serializeJson, | |
headers = [ContentType HttpContentTypes.Json; "Ocp-Apim-Subscription-Key", "api_key"]) | |
response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment