| 1 | <?php |
||
| 8 | class Discussion extends Api |
||
| 9 | {
|
||
| 10 | use StandardApi; |
||
| 11 | |||
| 12 | /** @var string API URL to which to send the request */ |
||
| 13 | protected $apiUrl = 'https://api.diffbot.com/v3/discussion'; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Set the maximum number of pages in a thread to automatically concatenate |
||
| 17 | * in a single response. Default = 1 (no concatenation). Set maxPages=all |
||
| 18 | * to retrieve all pages of a thread regardless of length. Each individual |
||
| 19 | * page will count as a separate API call. |
||
| 20 | * |
||
| 21 | * @param int|string $max Integer or "all" |
||
| 22 | * @return $this |
||
| 23 | */ |
||
| 24 | 2 | public function setMaxPages($max = 1) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @see Swader\Diffbot\Entity\Discussion::getSentiment() |
||
| 35 | * @param bool|mixed $bool |
||
| 36 | * @return $this |
||
| 37 | */ |
||
| 38 | 1 | public function setSentiment($bool) |
|
| 44 | |||
| 45 | } |
||
| 46 |