I somehow missed this section when previously reviewing the
documentation. This definitely sheds light on the issue. The Feed
Importer functionality I was referring to before requests a feed from
a URL, but has no way of authenticating the blog user. But even if I
could authenticate and grab the XML feed, the out-of-the-box Feed
Importer still would not work. I tested this by saving the feed to a
local file and then copying and pasting it into a template within the
CMS that the importer could request without authentication.
Unfortunately, as mentioned before, the importer doesn't differentiate
between posts and comments in this feed, treating all entries as
posts.
So I either need to stick to using the out-of-the-box Feed Importer to
import the posts and comments separately, and then using custom code
to associate the comments with the posts, or write my own custom feed
importer from scratch that does everything needed. If I was starting
out knowing what I know now, I would probably go with the completely
custom solution. But since I already write the code to associate
comments with posts, I'll probably stick with it for now.
Jeremy
On Sep 30, 12:39 am, Aratina Cage <aratina.c...@gmail.com> wrote:
> Oh, so you have already gone through all that. Hmmm... I took another
> quick look and found this:http://code.google.com/apis/blogger/docs/2.0/developers_guide_protoco...
>
> which says,"Neither of the [archive] URLs... above support query
> parameters." So scratch that. It continues, "Both requests must also
> contain authentication information and only blog administrators will
> be able to import/export the blog using these [archive] feed URLs."
> That makes it more difficult to do, and perhaps you were trying to get
> the archive feeds without authenticating first?
> --Aratina
>
> On Sep 30, 12:13 am, Jeremy <jeremyle...@yahoo.com> wrote:
>
> > That's essentially what I did, though there were some complexities due
> > to working within the framework of the web content management system
> > I'm using. It has a Feed Importer that imports the feed entries as
> > blog posts (whether posts or comments). I first import the posts,
> > then the comments, and then use an event listener (custom Java) to
> > associate the comments with the posts - again made more difficult
> > because the Feed Importer only imports the blog ID and comment ID for
> > comments, not the post ID. Anyhow, my custom solution works, but I
> > was hoping to get everything in a single feed that the Feed Importer
> > could use without needing custom code to associate the comments with
> > posts.
>
> > Thanks again for the help!
>
> > Jeremy
>
> > On Sep 29, 10:29 pm, Aratina Cage <aratina.c...@gmail.com> wrote:
>
> > > I see. If you continue running into dead ends trying to get it all at
> > > once through an archive, it should be easy enough to create a coupler
> > > function that associates all comments with their respective posts. For
> > > example, if you were using JSON feeds, you would match a single
> > > comment's entry["thr$in-reply-to"].source with a single post's
> > > entry.link[i].href where link[i] has a "rel" attribute of "self". Good
> > > luck!
>
>
--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To post to this group, send email to bloggerdev@googlegroups.com.
To unsubscribe from this group, send email to bloggerdev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bloggerdev?hl=en.