Home > Mobile >  Number of public access to temporary material interface successfully returns null result?
Number of public access to temporary material interface successfully returns null result?

Time:10-23

As title, please, to reassure; Success, signature will also be able to get to the temporary material id but get empty


Get the code attached
 
$token_url="HTTP://https://api.weixin.qq.com/cgi-bin/media/get? Access_token=". $access_token. "& amp; Media_id=". $mediaID;
$TMP=file_get_contents ($token_url);
$token=json_decode ($TMP);
//$access_token=$token - & gt; Access_token.

//return the material content
$arr=array (" mime=& gt; "" Audio/amr ", "data"=& gt; $token, "yuanshi"=& gt; $TMP);
$arr_r=array (" c "=& gt;=0, "m" & gt;" ", "v"=& gt; $arr, "atoken=& gt;" $access_token);
$tmp_json=json_encode ($arr_r);
Echo $tmp_json;

CodePudding user response:

No one answer... Your top up...

CodePudding user response:

I need redesign it under my content;
1. I want to know what WeChat download returns the format of the audio format; Document flow? Binary stream? Or they are a? (I don't understand it, the warrior laugh)
2. Access to the content of the I want to change to base64 format need how to deal with?
Himself for not understanding this, ask everybody the warrior, grateful
  • Related