1 | <?php |
||
8 | final class Client extends AbstractClient |
||
9 | { |
||
10 | /** |
||
11 | * Base tone analyzer uri |
||
12 | */ |
||
13 | const BASE_URI = 'https://gateway.watsonplatform.net/tone-analyzer'; |
||
14 | |||
15 | /** |
||
16 | * Create tone analyzer client with username and password |
||
17 | * |
||
18 | * @param string $username |
||
19 | * @param string $password |
||
20 | * |
||
21 | * @return \IBM\Watson\ToneAnalyzer\Client |
||
22 | * |
||
23 | * @throws \Http\Discovery\Exception\NotFoundException |
||
24 | * @throws \RuntimeException |
||
25 | * @throws \InvalidArgumentException |
||
26 | */ |
||
27 | public static function create($username, $password) |
||
36 | |||
37 | /** |
||
38 | * Create tone api request |
||
39 | * |
||
40 | * @return \IBM\Watson\ToneAnalyzer\Api\Tone |
||
41 | */ |
||
42 | public function tone() |
||
46 | |||
47 | /** |
||
48 | * Create tone chat api request |
||
49 | * |
||
50 | * @return \IBM\Watson\ToneAnalyzer\Api\ToneChat |
||
51 | */ |
||
52 | public function toneChat() |
||
56 | } |
||
57 |