Hi all,
I have a JSON generated from API, but when I try to save, it shows that txt file. https://eutils.ncbi.nlm.nih.gov/entr...ed-univ.edu.vn
I write a short code to get the abstract in this link.
But the result is nothing appear.
Please help to get the "abstract" part.
Thank you very much
I have a JSON generated from API, but when I try to save, it shows that txt file. https://eutils.ncbi.nlm.nih.gov/entr...ed-univ.edu.vn
I write a short code to get the abstract in this link.
Code:
$api_json_url2 = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&id=3321921&tool=my_tool&email=nhbach@huemed-univ.edu.vn"; $json2 = file_get_contents($api_json_url2); $data2 = json_decode($json2, TRUE); $abstract = $data['medent']['abstract'];
Please help to get the "abstract" part.
Thank you very much
Comment