| 1 | <?php |
||
| 8 | class Analyze 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/analyze'; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * If set to false, will not extract article comments in a Discussion |
||
| 17 | * entity embedded in the Article / Product entity. By default, it will. |
||
| 18 | * @param bool $bool |
||
| 19 | * @return $this |
||
| 20 | */ |
||
| 21 | 2 | public function setDiscussion($bool = true) |
|
| 27 | |||
| 28 | /** |
||
| 29 | * By default the Analyze API will fully extract all pages that match an |
||
| 30 | * existing Automatic API -- articles, products or image pages. Set mode |
||
| 31 | * to a specific page-type (e.g., mode=article) to extract content only |
||
| 32 | * from that specific page-type. All other pages will simply return the |
||
| 33 | * default Analyze fields. |
||
| 34 | * |
||
| 35 | * @param string $mode article, product or image |
||
| 36 | * @return $this |
||
| 37 | */ |
||
| 38 | 52 | public function setMode($mode) |
|
| 48 | |||
| 49 | } |
||
| 50 |