$appid = "";
$appsecret = ""$url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=$appid&secret=$appsecret";
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt(FALSE);
curl_setopt();
$output = curl_exec($ch);
curl_close($jsoninfo = json_decode($output,1)">true$access_token = $jsoninfo["access_token"];
{"access_token":"N2L7KXa084WvelONYjkJ_traBMCCvy_UKmpUUzlrQ0EA2yNp3Iz6eSUrRG0bhaR_viswd50vDuPkY5nG43d1gbm-olT2KRMxOsVE08RfeD9lvK9lMguNG9kpIkKGZEjIf8Jv2m9fFhf8bnNa-yQH3g","expires_in":7200}