有人可以告诉我如何使用 php 将 feedburner 订阅者计为文本吗?我正在尝试以下操作,但它不起作用,因为我认为 feedburner 已经更改了 xml 文件的内容。谢谢你的帮助。
$whaturl="https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=USERNAME";
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $whaturl);
$data = curl_exec($ch);
curl_close($ch);
$xml = new SimpleXMLElement($data);
$fb = $xml->feed->entry['circulation'];
echo $fb;