Exposes ViralHeat's API in order to calculate the sentiment of a vector of text based on their predefined algorithms. Text is passed as a JSON parameter to the website, so internet connection is required for successful completion. Note that the maximum number of characters is 360 (due to ViralHeat constraints). An API key is required.
1 | classify.viralheat(text, api.key)
|
text |
a vector of sentences to classify |
api.key |
your API key for authentication |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.