$auth = new \Http\Message\Authentication\BasicAuth('username', 'password');
$service = \IBM\Watson\ToneAnalyzer\Service::create($auth);
$analysis = $service->tone()->analyze('text to analyze');
// Now we can do
$analysis->getDocumentAnalysis();
$analysis->getSentenceAnalysis();
Checklist
[x] Updated CHANGELOG.md to describe BC breaks / deprecations | new feature | bugfix
[x] Documentation pull request created (if not simply a bugfix)
To Do
[ ] If the PR is not complete but you want to discuss the approach, list what remains to be done here
What's in this PR?
ToneAnalyzer service.
Example Usage
Checklist
To Do