?

Log in

No account? Create an account
For those of you that have developed ATOM-based posting clients, I… - LiveJournal Client Discussions [entries|archive|friends|userinfo]
LiveJournal Client Discussions

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

[May. 26th, 2005|03:16 pm]
LiveJournal Client Discussions

lj_clients

[int]
For those of you that have developed ATOM-based posting clients, I was just wondering what documentation you referred to? Have you found anything more in-depth (with examples) than the draft spec?
linkReply

Comments:
[User Picture]From: clayfoot
2005-05-26 10:14 pm (UTC)
I don't think there's a protocol to "post" in Atom format. Atom format is only good for the other direction: fetching a summarized list of posts from LiveJournal.
(Reply) (Thread)
[User Picture]From: int
2005-05-26 10:27 pm (UTC)
http://www.atomenabled.org/developers/api/atom-api-spec.php#Post

But I want something more in-depth than the draft spec.
(Reply) (Parent) (Thread)
[User Picture]From: jdstroy
2005-06-06 02:42 pm (UTC)
LiveJournal uses HTTP Digest authorization. I used the examples I found on XML.com to post using AtomAPI. You can use AtomAPI to retrieve, edit, and post. There are different URLs for each; use Introspection and/or the link element in the HTML documents for each journal to find them.
(Reply) (Thread)
From: trevmex
2005-06-14 04:35 am (UTC)
All you need to know is that you have to post your atom like this:

<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="http://purl.org/atom/ns#">
<generator url="http://trevreport.org/blogForm.shtml">AtomClient</generator>
<title mode="escaped" type="text/html">$title</title>
<issued>$now</issued>
<content mode="escaped" type="text/html">$entry</content>
</entry>

Also you have to know how to send a HTTP Digest Auth.
The formula is:
KD(H(A1), nonce:nc:cnonce:qop:H(A2))
Where A1 = username:realm:password
A2 = Method:uri
H(data) = MD5(data)
KD(secret, data) = H(secret:data)

That is straight from RFC 2617, and it works fine in LJ.

I actually implemented an atom posting client package in Perl, and it works with both LJ and Blogger. You can read about it on my blog.

I've been using it for a few days now, and it works great. If you have any questions, just ask.
(Reply) (Parent) (Thread)