The tone() method of tone_analyzer_v3.py assumes that input will be a plain text string. But the service also accepts JSON and HTML input. Add a content_type parameter with a default of text/plain to preserve the current default functionality; also maintain the assignment of the plain text to JSON to preserve the current functionality. But now allow application/json and text/html to be passed to the method, as well. Adds a number of examples to demonstrate the new functionality.
The tone() method of tone_analyzer_v3.py assumes that input will be a plain text string. But the service also accepts JSON and HTML input. Add a content_type parameter with a default of text/plain to preserve the current default functionality; also maintain the assignment of the plain text to JSON to preserve the current functionality. But now allow application/json and text/html to be passed to the method, as well. Adds a number of examples to demonstrate the new functionality.