This document provides detailed reference documentation for the raw protocol (XML and HTTP) for the Blogger Data API.
This document doesn't contain information about the programming-language client libraries. For client-library reference information, see the links from the programming-language-specific sections of the developer's guide.
Contents
1. Audience
2. Blogger feed types
3. Blogger query parameters reference
4. Blogger elements reference
1. Draft entries
2. Publication dates and updated dates
3. Linking comments to posts
5. Blogger Feeds Schema Reference
Audience
This document is intended for programmers who want to write client applications that can interact with Blogger.
It's a reference document; it assumes that you understand the concepts presented in the developer's guide, and the general ideas behind the Google Data APIs protocol.
Blogger feed types
Blogger provides two representations of blog content in feeds: full feeds and summary feeds. A full feed contains full blog posts, while a summary feed contains only a short snippet of each post.
A blog's owner can specify, using GUI settings, whether the blog supplies a full feed or a summary feed to syndicators and aggregators.
When your client app sends an unauthenticated request for a feed, it receives whichever type of feed the blog owner has specified.
When your client app sends an authenticated request, however, it always receives a full feed, regardless of what the blog owner has specified.
Blogger query parameters reference
The Blogger Data API supports almost all of the standard Google Data API query parameters.
Blogger does not support the q (text search) and author parameters.
The updated-min and updated-max query parameters are ignored unless the orderby parameter is set to updated. For example, the following URL retrieves all of the blog posts which have been updated from March 16, 2008 to March 24, 2008:
http://www.blogger.com/feeds/blogID/posts/default?updated-min=2008-03-16T00:00:00&updated-max=2008-03-24T23:59:59&orderby=updated
Blogger elements reference
The Blogger Data API uses only standard Atom elements; for more information, see the Atom 1.0 syndication format specification and the Atom Publishing Protocol.
The rest of this section provides a couple of specific notes about Blogger's use of some standard elements.
Draft entries
A draft blog entry is marked using the
...
If no
Publication dates and updated dates
The timestamp given in the standard Atom
When your client creates a new entry, if the client doesn't specify a value for
However, if your client does specify a value for the
Blogger uses the standard Atom
You can use the standard Google Data API published-min, published-max, updated-min, and updated-max query parameters to request entries based on their
Linking comments to posts
The Blogger export format contains both posts and comment entries in one Atom feed document. In order to differentiate between the two types of entries, Blogger utilizes the
Furthermore, linking the comment entry to the post entry it belong to is accomplished through the use of the Atom Threading Extension. In the example below, the
...
<-- A blog post entry -->
href="http://blogName.blogspot.com/2007/04/first-post.html">
...
<-- A comment to the blog post entry -->
type="text/html"/>
...
Blogger Feeds Schema Reference
1. Blogs List Feed
2. Blog Posts Feed
3. Blog Comments Feed
4. Blog Post Comments Feed
Nessun commento:
Posta un commento