LJ::Simple 0.15 review

Download
by rbytes.net on

LJ::Simple is a Perl module to provide a simple OOP-based API for accessing the LiveJournal system. Here are some key features of

License: BSD License
File size: 43K
Developer: Simes
0 stars award from rbytes.net

LJ::Simple is a Perl module to provide a simple OOP-based API for accessing the LiveJournal system.

Here are some key features of "LJ Simple":
Log into LiveJournal
Post a journal entry
Edit a journal entry
Delete a journal entry

Example

The following example posts a simple message into the test LiveJournal using the LJ::Simple::QuickPost method.

use LJ::Simple;

LJ::Simple::QuickPost(
user => "test",
pass => "test",
entry => "Just a simple entry",
) || die "$0: Failed to post entry: $LJ::Simple::errorn";

The next example shows how to post an entry into the test LiveJournal using the complete, object-based, interface:

use LJ::Simple;

my $lj = new LJ::Simple ({
user => "test",
pass => "test",
});
(defined $lj)
|| die "$0: Failed to log into LiveJournal: $LJ::Simple::errorn";

my %Event=();

$lj->NewEntry(%Event) ||
die "$0: Failed to create new entry: $LJ::Simple::errorn";

my $entry=SetMood(%Event,"happy")
|| die "$0: Failed to set mood: $LJ::Simple::errorn";

$lj->Setprop_nocomments(%Event,1);

my ($item_id,$anum,$html_id)=$lj->PostEntry(%Event);
(defined $item_id)
|| die "$0: Failed to post journal entry: $LJ::Simple::errorn";

Requirements:
Perl

What's New in This Release:
Added tags support to QuickPost()
Added ability to return of results of posting to QuickPost()
Added the GetTags() method to return the list of existing tags available for use

LJ::Simple 0.15 keywords