1 | <?php |
||
15 | class LineNotify { |
||
16 | |||
17 | const API_URL = 'https://notify-api.line.me/api/notify'; |
||
18 | |||
19 | private $token = null; |
||
20 | private $http = null; |
||
21 | |||
22 | /** |
||
23 | * Initialize class with Line notify token string |
||
24 | * |
||
25 | * @param string $token the token of Line notify |
||
26 | */ |
||
27 | public function __construct($token) { |
||
32 | |||
33 | /** |
||
34 | * Set token Line notify that want to send message |
||
35 | * |
||
36 | * @param string $token the token of Line notify |
||
37 | */ |
||
38 | 1 | public function setToken($token) { |
|
41 | |||
42 | /** |
||
43 | * Get current token Line Notify |
||
44 | * |
||
45 | * @return string the token of Line notify |
||
46 | */ |
||
47 | 2 | public function getToken() { |
|
50 | |||
51 | /** |
||
52 | * Send text message, image or sticker on Line notify |
||
53 | * |
||
54 | * @param string $text text message on Line notify can not be empty |
||
55 | * @param string $imagePath image path you want to send on the local machine |
||
56 | * @param array() $sticker array of line sticker ['stickerPackageId' => PACKAGE_ID, 'stickerId' => STICKER_ID ] |
||
|
|||
57 | * more info https://devdocs.line.me/files/sticker_list.pdf |
||
58 | * @return boolean success or fail on send Line notify message |
||
59 | */ |
||
60 | public function send($text, $imagePath = null, $sticker = null) { |
||
131 | |||
132 | } |
||
133 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.