A mi me funciona perfectamente, que más errores te da?
Prueba con SimpleXML
Código PHP:
Ver original<?php
$sxe = new SimpleXMLElement('https://api.twitter.com/1/statuses/user_timeline.rss?user_id=201519348&count=20', null, true);
foreach ($sxe->channel->item as $node) {
'title' => $node->title,
'date' => $node->pubDate
);
}
y con DOM esto me funciona:
Código PHP:
Ver original$rss = new DOMDocument();
$rss->load('https://api.twitter.com/1/statuses/user_timeline.rss?user_id=201519348&count=20');
foreach ($rss->getElementsByTagName('item') as $node) {
'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
'link' => $node->getElementsByTagName('link')->item(0)->nodeValue,
'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue,
);
}