This link has been bookmarked by 31 people . It was first bookmarked on 09 Sep 2006, by someone privately.
-
31 Dec 17
-
10 Dec 06
-
27 Nov 06
-
17 Nov 06
Alan DeanThe Blogger data API allows client applications to view and update Blogger content in the form of Google data API ("GData") feeds. Your client application can use GData to create new blog posts, edit or delete existing posts, and query for posts that matc
-
16 Nov 06
-
11 Nov 06
-
10 Nov 06
Gary BurgeThe Blogger data API allows client applications to view and update Blogger content in the form of Google data API ("GData") feeds. Your client application can use GData to create new blog posts, edit or delete existing posts, and query for posts that matc
Google GoogleBlogger Blogger APIs specifications documentation samples
-
02 Nov 06
-
28 Oct 06
-
Add a blog post manually (web client version)
This section is for use only with a multi-user web application client. If your client is an installed application, then skip this section and read Add a blog post manually (desktop client version) instead.
Adding a post to a blog is a little bit more complicated than getting a feed, because you need to create the XML code or client-library object representing the blog entry, and authentication is required.
Here's what you do at the protocol level:
First, create a blog post. For example, you might create the following post:
<entry xmlns='http://www.w3.org/2005/Atom'> <title type='text'>Marriage!</title> <content type='xhtml'> <div xmlns="http://www.w3.org/1999/xhtml"> <p>Mr. Darcy has <em>proposed marriage</em> to me!</p> <p>He is the last man on earth I would ever desire to marry.</p> <p>Whatever shall I do?</p> </div> </content> <author> <name>Elizabeth Bennet</name> <email>liz@gmail.com</email> </author> </entry>
Then authenticate the user, using the AuthSub authentication system.
Note: You can't use AuthSub with the current version of Blogger. If you're writing a web client for the current Blogger, use HTTP basic authentication. AuthSub is only for the Blogger version that's currently in beta.
To acquire an AuthSub token for a given Blogger user, your application must redirect the user to the AuthSubRequest URL, which prompts them to log into their Google account.
After the user logs in, the AuthSub system redirects them to the URL you specified in the
nextquery parameter of the AuthSubRequest URL. The AuthSub system appends an authentication token to that URL, as the value of thetokenquery parameter. Your application then uses that authentication token in subsequent interactions with Blogger.For details, including information on registering your application with Google and on exchanging a one-time token for a session token, see the AuthSub documentation.
Use the authentication token to create an Authorization header for a new
POSTrequest:Authorization: AuthSub token="yourAuthToken"
Note that the values in the Authorization header for AuthSub should be surrounded by quotation marks.
In the body of the new
POSTrequest, place the Atom<entry>element you created above, using theapplication/atom+xmlcontent type.Now send the
POSTrequest to the appropriate Blogger URL:POST http://www.blogger.com/feeds/blogID/posts/full
Blogger creates a blog post using the entry you sent, then returns an HTTP
201 CREATEDstatus code, along with a copy of the new post in the form of an<entry>element. The returned entry is similar to the one you sent, but the returned one contains various elements added by Blogger, such as an<id>element.If your request fails for some reason, Blogger may return a different status code; for information about the status codes, see the Protocol document.
-
-
25 Oct 06
-
23 Oct 06
-
22 Oct 06
-
03 Oct 06
-
14 Sep 06
Heinz Wittenbrink"The Blogger data API allows client applications to view and update Blogger content in the form of Google data API ("GData") feeds. Your client application can use GData to create new blog posts, edit or delete existing posts, and query for posts that mat
-
29 Aug 06
-
26 Aug 06
-
18 Aug 06
-
16 Aug 06
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.