<?php
//Create a new CURL Resoource
$curl= curl_init();
//set URL and other appropriate option
curl_setopt_array($curl,[CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL =>'https://api.covid19india.org/state_district_wise.json']);
//grab URL and pass it to the browser
$response = curl_exec($curl);
echo $response;
//close
curl_close($curl);
?>

0 Comments