You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 lines
397 B

  1. <?php
  2. namespace Kuxin\Weixin;
  3. use Kuxin\Helper\Http;
  4. class Resource extends Weixin{
  5. const API_MEDIA_GET="https://api.weixin.qq.com/cgi-bin/media/get";
  6. public function getMedia($media_id)
  7. {
  8. $params=[
  9. 'access_token'=>$this->getToken(),
  10. 'media_id'=>$media_id,
  11. ];
  12. return Http::get(self::API_MEDIA_GET,http_build_query($params));
  13. }
  14. }