| 1 | <?php |
||
| 10 | class Broadcast extends AbstractAPI |
||
| 11 | { |
||
| 12 | const API_MESSAGE_SEND = 'https://qyapi.weixin.qq.com/cgi-bin/message/send'; |
||
| 13 | |||
| 14 | const MSG_TYPE_TEXT = 'text'; // 文本 |
||
| 15 | const MSG_TYPE_NEWS = 'news'; // 图文 |
||
| 16 | const MSG_TYPE_VOICE = 'voice'; // 语音 |
||
| 17 | const MSG_TYPE_IMAGE = 'image'; // 图片 |
||
| 18 | const MSG_TYPE_VIDEO = 'video'; // 视频 |
||
| 19 | const MSG_TYPE_CARD = 'card'; // 卡券 |
||
| 20 | const MSG_TYPE_FILE = 'file'; // 文件 |
||
| 21 | const MSG_TYPE_MPNEWS = 'mpnews'; // 图文 |
||
| 22 | const MSG_TYPE_TEXTCARD = 'textcard'; // 文本卡片 |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Get message builder. |
||
| 26 | * |
||
| 27 | * @param \EntWeChat\Message\AbstractMessage|string $message |
||
| 28 | * |
||
| 29 | * @throws \EntWeChat\Core\Exceptions\InvalidArgumentException |
||
| 30 | * |
||
| 31 | * @return MessageBuilder |
||
| 32 | */ |
||
| 33 | public function message($message) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Send a message. |
||
| 42 | * |
||
| 43 | * @param string|array $message |
||
| 44 | * |
||
| 45 | * @return \EntWeChat\Support\Collection |
||
| 46 | */ |
||
| 47 | public function send($message) |
||
| 51 | } |
||
| 52 |