📜  vivo.sx api获取文件信息php代码示例

📅  最后修改于: 2022-03-11 14:53:48.675000             🧑  作者: Mango

代码示例1
 $url,
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => $method,
  CURLOPT_POSTFIELDS => "",
  CURLOPT_HTTPHEADER => array(
    "cache-control: no-cache",
    "content-type: application/json",
    "X-AUTH: $api_key"
  ),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
      echo "cURL Error #:" . $err;
} else {
    echo $response;
}
//more info on https://vivo.sx/api
?>