Community Page
- benjamingolub.com/ Jump to website »
-
Subscribe -
Community
-
Top Commenters
-
Popular Threads
-
Recent Comments
- Nice work and keep it up mate
- What I can say is very nice and helpful as well as informative post...really help me very much more!! Thanks.. Cheers, <a href="http://sain-web.com" rel="nofollow">Buat...
- That's a great tip. Thanks for sharing. Darek from <a href="http://www.informationex.com">Free ad web service</a>
- Just testing
- Great post Thanks
Jump to original thread »
I’d like for someone to write a Wordpress plugin that will pull all of the notes for an article out of RSSmeme. The JSON API is now ready for it. Here’s a quick “how to” to get your rolling:
Build your URL. You want to operate on http://www.rssmeme.com/recent/ so you have no “built in” filter on [...] ... Continue reading »
Build your URL. You want to operate on http://www.rssmeme.com/recent/ so you have no “built in” filter on [...] ... Continue reading »
1 year ago
Disqus won't allow the code so I threw it on http://www.shorttext.com/mesmfpw
I don't think the $comments = $obj5->{'entries'}->{'feeds'}->{'notes'}->{'content'}; is correct at grabbing all the notes.
1 year ago
notes is a list. So you have to iterate over each of them. But you've also
got the heirarchy wrong. It looks like this:
{
'entries':
[
{
'feeds': []
'notes':
[
{
'feed':
'content':
}
]
},
{
'feeds': []
},
]
}
My PHP is rusty but it'll be something like this:
foreach($entry in $json['entries]) {
foreach($note in $entry['notes'])
$name = $note['feed']['name'];
$content = $note['content']
}
Makes sense?
1 year ago
1 year ago
Do you guys know if anyone has made the request to put a code tag in Disqus yet? It shouldn't be that hard. I'll tweet Daniel.
1 year ago
foreach($json['entries'] as $entry) {
foreach($entry['notes'] as $note) {
echo $note['feed']['name'];
echo " - ".$note['content'];
}
}
1 year ago