"client_credentials","client_id"=>"5QX6Ntb1p****tvFInzGRn","client_secret"=>"ZfZU5XbBlmAFB*****8mAIzaviLOI");$url = 'https://aip.baidubce.com/oauth/2.0/token';// Now let's make a request!$request = Requests::post($url, array(),$data);echo "";var_dump($request);echo "";
官方SDK
$v ){ $o.= "$k=" . urlencode( $v ). "&" ;}$post_data = substr($o,0,-1);$res = request_post($url, $post_data);echo "";var_dump($res);echo "";