?

Log in

No account? Create an account

trv

AtomClient.pm LJ Atom posting Perl package

AtomClient.pm LJ Atom posting Perl package

Previous Entry Share Next Entry
I have good news. The LJ/Blogger Atom client I was coding is completed, and it works great in both Blogger and LJ blogs.

The package is called AtomClient.pm and I put it under the GNU LGPL.

Using it in your Perl code is simple, just do the following:

use AtomClient qw(postentry);

$result_msg = AtomClient::postentry("blog_url","username","password","title","content","method");


Notes:
- "method" is either "basic" for Basic HTTP Auth, or "digest" for Digest HTTP Auth. If no method is sent, basic will be tried first, then digest if basic fails.
- This does NOT support WSSE since neither Blogger or LJ support WSSE at this time.


いいニューズがある!ずっとプログラムしたライブジャーナル・ブラーガ―・アトム・クライントができた!ブラーガ―とライブジャーナルの両方で良く使える。

パッケージはAtomClient.pmと言う。GNU LGPLであげる。

あなたのPerlコードに入り方はすごく簡単だよ。コードでこちを入って:

use AtomClient qw(postentry);

$result_msg = AtomClient::postentry("blog_url","username","password","title","content","method");


ノート:
―"method"はベーシックHTTP公証の"basic"かダイジェストHTTP公証の"digest"だ。もし、"method"は真空になれば、ベーシックからダイジェストを使う。
―ブラーガやライブジャーナルはWSSEを使わないので今、このパッケージはWSSEを使わない。
  • backdating

    Is there any news on whether one can do backdating via the Atom API, i.e. put arbitrary times in the element as in blogger?
Powered by LiveJournal.com