Open dostro opened 7 years ago
The simple API documentation for the watson-api-client is available on http://rubydoc.info/gems/watson-api-client.
However, most of the classes and methods of this gem are not described in the above document because they are dynamically defined. Instead, by running the lib/watson-api-client.rb directly, we can output to the standard output the actual those list of classes and methods.
Concerning about ToneAnalyzer, lib/watson-api-client.rb outputs the following description:
... [WatsonAPIClient::ToneAnalyzer, "See https://watson-api-explorer.mybluemix.net/listings/tone-analyzer-v3.json",
{"GetTone"=>{"get"=>{"path"=>"/v3/tone", "summary"=>"Analyze general tone"}}, "tone"=>{"post"=>{"path"=>"/v3/tone", "summary"=>"Analyze general tone"}}, "toneChat"=> {"post"=> {"path"=>"/v3/tone_chat", "summary"=>"Analyze customer engagement tone"}}}] ...
The method corresponding to the Post action seems to be 'tone' rather than 'PostTone'
Hey suchowan! I'm not sure what happened in the last couple weeks but I'm getting this strange error that PostTone is an undefined method for ToneAnalyzer. Here's what I'm running:
NoMethodError (undefined method `PostTone' for #):
Any idea what's going on?