test1.php
557 Bytes
<?php
$id = '10578496'; # 青木 竜
$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/');
header('Access-Control-Allow-Origin: *');
echo $feed;
?>