unable to get local issuer certificate
黄心波 发布于2016-06 浏览:1822 回复:1
0
收藏

SSL certificate problem: unable to get local issuer certificate{"err_msg":"parameters error.","err_no":3300,"sn":"692829770891466090117"} array(3) { ["err_msg"]=> string(17) "parameters error." ["err_no"]=> int(3300) ["sn"]=> string(21) "692829770891466090117" }


define('AUDIO_FILE', "test.pcm");


//put your params here

$cuid = "黄心波";

$apiKey = "jUwORNxxxx0BoBAU1";

$secretKey = "e5cb5cbxxxx5d81a5237162f90e";


$auth_url = "https://openapi.baidu.com/oauth/2.0/token?grant_type=client_credentials&client_id=".$apiKey."&client_secret=".$secretKey;

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, $auth_url);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);

$response = curl_exec($ch);

if(curl_errno($ch))

{

    print curl_error($ch);

}

curl_close($ch);

$response = json_decode($response, true);

//该地方返回NULL

$token = $response['access_token'];



收藏
点赞
0
个赞
共1条回复 最后由用户已被禁言回复于2022-04
#2mosal4hi回复于2016-06

麻烦提供下请求时间

0
TOP
切换版块