| 1 | <?php |
||
| 30 | class Material extends AbstractAPI |
||
| 31 | { |
||
| 32 | const API_MATERIAL_ADD = 'https://api.weixin.qq.com/shakearound/material/add'; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Upload image material. |
||
| 36 | * |
||
| 37 | * @param string $path |
||
| 38 | * @param string $type |
||
| 39 | * |
||
| 40 | * @return string |
||
| 41 | * |
||
| 42 | * @throws InvalidArgumentException |
||
| 43 | */ |
||
| 44 | 1 | public function uploadImage($path, $type = 'icon') |
|
| 54 | } |
||
| 55 |