Search This Site

Custom Search

Tuesday, November 16, 2010

[bloggerDev] Re: Service document missing app:categories for collections

Hi Brett - thanks for the response! Yes, all of the categories from
all posts is a perfect choice, and in fact this would correspond
exactly to how the 1.0 Blogger Atom API lists categories for each blog
listed in the "meta" feed.

Daniel

On Nov 15, 6:45 pm, Brett Morgan <brettmor...@google.com> wrote:
> Daniel,
>
> I've just had a quick squiz through the atom publishing spec, and I'm left
> wondering what you would be looking for here? Is a list of all the
> categories used on all the posts in a blog appropriate?
>
> brett
>
>
>
>
>
> On Mon, Nov 15, 2010 at 7:55 AM, Daniel Jalkut <jal...@gmail.com> wrote:
>
> > I'm trying to migrate my client from the older Atom API (GData 1.0) to
> > the newer, AtomPub compliant GData 2.0.
>
> > In my old code, I'm able to parse for the list of all known categories
> > (labels) in the service document results for the user. In the new
> > code, I'm trying to use the AtomPub specification that service
> > documents should contain an app:categories element, but the result
> > from Google doesn't contain any such element.
>
> > I'm using the ?alt=atom-service option on the normal /posts/default
> > URL, to get a service-document formatted result:
>
> >http://www.blogger.com/feeds/7979301850482338262/posts/default?alt=at...
>
> > This returns a valid response with legitimate workspace and collection
> > contents:
>
> > <?xml version='1.0' encoding='UTF-8'?><app:service xmlns:app='http://
> >www.w3.org/2007/app'><app:workspace><atom:title xmlns:atom='http://
> >www.w3.org/2005/Atom'>Blogger CLB Enabled</atom:title><app:collection
> > href='http://www.blogger.com/feeds/7979301850482338262/posts/
> > default'><atom:title xmlns:atom='http://www.w3.org/2005/Atom'>Blogger
> > CLB Enabled</atom:title><app:accept>application/atom+xml;type=entry</
> > app:accept></app:collection></app:workspace></app:service>
>
> > But there is no app:categories element.
>
> > If it's a bug that the categories are omitted from the service
> > document, is this something you might be able to fix soon? If it's not
> > a bug, what is the preferred method of getting a list of all
> > previously used labels for a particular Blogger blog?
>
> > Thanks!
> > Daniel
>
> > --
> > 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<bloggerdev%2Bunsubscribe@googlegrou ps.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/bloggerdev?hl=en.
>
> --
> Brett Morgan
>
> *Developer Programs Engineer, Blogger*

--
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.

No comments:

Post a Comment