<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>benjamingolub.com - Latest Comments in How to Use the RSSmeme API to Pull Notes into Wordpress</title><link>http://benjamingolub.disqus.com/</link><description></description><language>en</language><lastBuildDate>Mon, 12 May 2008 07:40:03 -0000</lastBuildDate><item><title>Re: How to Use the RSSmeme API to Pull Notes into Wordpress</title><link>http://benjamingolub.com/2008/05/09/how-to-use-the-rssmeme-api-to-pull-notes-into-wordpress/#comment-449479</link><description>Glad you were able to get it working.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bgolub</dc:creator><pubDate>Mon, 12 May 2008 07:40:03 -0000</pubDate></item><item><title>Re: How to Use the RSSmeme API to Pull Notes into Wordpress</title><link>http://benjamingolub.com/2008/05/09/how-to-use-the-rssmeme-api-to-pull-notes-into-wordpress/#comment-448690</link><description>Thanks! I just had to change a few things, but you gave me the right direction. &lt;br&gt;&lt;br&gt;foreach($json['entries'] as $entry) {&lt;br&gt;	foreach($entry['notes'] as $note) {&lt;br&gt;		echo $note['feed']['name'];&lt;br&gt;		echo " - ".$note['content'];&lt;br&gt;		}&lt;br&gt;	}</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">paularterburn</dc:creator><pubDate>Mon, 12 May 2008 01:57:52 -0000</pubDate></item><item><title>Re: How to Use the RSSmeme API to Pull Notes into Wordpress</title><link>http://benjamingolub.com/2008/05/09/how-to-use-the-rssmeme-api-to-pull-notes-into-wordpress/#comment-445603</link><description>Another cool application of RSSmeme, I like!&lt;br&gt;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.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">eng1ne</dc:creator><pubDate>Sun, 11 May 2008 10:07:20 -0000</pubDate></item><item><title>Re: How to Use the RSSmeme API to Pull Notes into Wordpress</title><link>http://benjamingolub.com/2008/05/09/how-to-use-the-rssmeme-api-to-pull-notes-into-wordpress/#comment-445355</link><description>Sigh; Disqus messes with the whitespace but you get the idea.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bgolub</dc:creator><pubDate>Sun, 11 May 2008 07:54:23 -0000</pubDate></item><item><title>Re: How to Use the RSSmeme API to Pull Notes into Wordpress</title><link>http://benjamingolub.com/2008/05/09/how-to-use-the-rssmeme-api-to-pull-notes-into-wordpress/#comment-445315</link><description>No that won't work.  Remember that entries is a list, feeds is a lit, and&lt;br&gt;notes is a list.  So you have to iterate over each of them.  But you've also&lt;br&gt;got the heirarchy wrong.  It looks like this:&lt;br&gt;&lt;br&gt;{&lt;br&gt;  'entries':&lt;br&gt;    [&lt;br&gt;        {&lt;br&gt;           'feeds': []&lt;br&gt;           'notes':&lt;br&gt;             [&lt;br&gt;                {&lt;br&gt;                  'feed':&lt;br&gt;                   'content':&lt;br&gt;                }&lt;br&gt;             ]&lt;br&gt;        },&lt;br&gt;        {&lt;br&gt;            'feeds': []&lt;br&gt;        },&lt;br&gt;    ]&lt;br&gt;}&lt;br&gt;&lt;br&gt;My PHP is rusty but it'll be something like this:&lt;br&gt;&lt;br&gt;foreach($entry in $json['entries]) {&lt;br&gt;  foreach($note in $entry['notes'])&lt;br&gt;      $name = $note['feed']['name'];&lt;br&gt;      $content = $note['content']&lt;br&gt;}&lt;br&gt;&lt;br&gt;Makes sense?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bgolub</dc:creator><pubDate>Sun, 11 May 2008 07:28:02 -0000</pubDate></item><item><title>Re: How to Use the RSSmeme API to Pull Notes into Wordpress</title><link>http://benjamingolub.com/2008/05/09/how-to-use-the-rssmeme-api-to-pull-notes-into-wordpress/#comment-443757</link><description>I'm trying to put something together that pulls in the name &amp; comment. My JSON to PHP skills are weak so I could use some help if you know how...&lt;br&gt;&lt;br&gt;Disqus won't allow the code so I threw it on &lt;a href="http://www.shorttext.com/mesmfpw" rel="nofollow"&gt;http://www.shorttext.com/mesmfpw&lt;/a&gt;&lt;br&gt;&lt;br&gt;I don't think the $comments = $obj5-&amp;gt;{'entries'}-&amp;gt;{'feeds'}-&amp;gt;{'notes'}-&amp;gt;{'content'}; is correct at grabbing all the notes.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">paularterburn</dc:creator><pubDate>Sat, 10 May 2008 16:27:17 -0000</pubDate></item></channel></rss>