test2.php
514 Bytes
<?php
$id = '20724818'; # 幾留 沙智
$feed = file_get_contents('https://api.researchmap.jp/opensearch/kakenid/' . $id . '?appid=nifs-k_lmvoxe7d10lm');
# $feed = file_get_contents('https://api.researchmap.jp/opensearch/kakenid/' . $id . '?appid=nifs-k_lmvoxe7d10lm&count=100&type=paper');
$feed = str_replace('rm:', 'rm-', $feed);
$feed = str_replace('xml:', 'xml-', $feed);
header('Content-Type: application/xml; charset=utf8');
header('Access-Control-Allow-Origin: https://www.nifs-k.ac.jp/');
echo $feed;
?>