1 | <?php |
||
32 | class MediaPress extends AbstractAPI |
||
33 | { |
||
34 | use ManageComments, ManageCommentReplies; |
||
35 | |||
36 | const API_OPEN_COMMENT = 'https://api.weixin.qq.com/cgi-bin/comment/open'; |
||
37 | const API_CLOSE_COMMENT = 'https://api.weixin.qq.com/cgi-bin/comment/close'; |
||
38 | const API_LIST_COMMENT = 'https://api.weixin.qq.com/cgi-bin/comment/list'; |
||
39 | const API_MARK_ELECT = 'https://api.weixin.qq.com/cgi-bin/comment/markelect'; |
||
40 | const API_UNMARK_ELECT = 'https://api.weixin.qq.com/cgi-bin/comment/unmarkelect'; |
||
41 | const API_DELETE_COMMENT = 'https://api.weixin.qq.com/cgi-bin/comment/delete'; |
||
42 | const API_REPLY_COMMENT = 'https://api.weixin.qq.com/cgi-bin/comment/reply/add'; |
||
43 | const API_DELETE_REPLY = 'https://api.weixin.qq.com/cgi-bin/comment/reply/delete'; |
||
44 | |||
45 | /** |
||
46 | * @var array |
||
47 | */ |
||
48 | protected $mediaPress; |
||
49 | |||
50 | /** |
||
51 | * Select an article. |
||
52 | * |
||
53 | * @param int $dataId |
||
54 | * @param int $index |
||
55 | * |
||
56 | * @return $this |
||
57 | */ |
||
58 | 8 | public function select($dataId, $index = null) |
|
67 | |||
68 | /** |
||
69 | * Return the media-press. |
||
70 | * |
||
71 | * @return array |
||
72 | * |
||
73 | * @throws \EasyWeChat\Core\Exceptions\InvalidArgumentException |
||
74 | */ |
||
75 | 8 | protected function mediaPress() |
|
83 | } |
||
84 |