1 | <?php |
||
8 | class Image 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/image'; |
||
14 | |||
15 | /** |
||
16 | * Tells the API call to return the mentions field |
||
17 | * @see https://www.diffbot.com/dev/docs/image/ |
||
18 | * @param bool|mixed $bool |
||
19 | * @return $this |
||
20 | */ |
||
21 | 1 | public function setMentions($bool) |
|
26 | |||
27 | /** |
||
28 | * Sets the API call to return the faces field |
||
29 | * @see https://www.diffbot.com/dev/docs/image/ |
||
30 | * @param bool|mixed $bool |
||
31 | * @return $this |
||
32 | */ |
||
33 | 1 | public function setFaces($bool) |
|
38 | |||
39 | /** |
||
40 | * Sets the API call to return the ocr field. |
||
41 | * @see https://www.diffbot.com/dev/docs/image/ |
||
42 | * @param bool|mixed $bool |
||
43 | * @return $this |
||
44 | */ |
||
45 | 1 | public function setOcr($bool) |
|
50 | } |
||
51 |