Send a request, and retrieve the
This function retrieves the results from the analyzeSentiment method.
The text string to send to the API.
A list containing two elements:
TRUE, then the
documentSentiment element is converted to a data frame.
1 2 3 4 5 6 7 8 9 10
## Not run: sample_sentiment <- analyze_sentiment(text_body = "Google, headquartered in Mountain View, unveiled the new Android phone at the Consumer Electronic Show. Sundar Pichai said in his keynote that users love their new Android phones.", flatten = TRUE) sample_sentiment$documentSentiment sample_sentiment$language ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.