Header Ads Widget

Responsive Advertisement

Ticker

6/recent/ticker-posts

how to call api

 



<?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);

?>

Post a Comment

0 Comments