?

Log in

No account? Create an account
Just released version 0.11 of LJ::Simple; this release has two… - LiveJournal Client Discussions — LiveJournal [entries|archive|friends|userinfo]
LiveJournal Client Discussions

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

[Apr. 14th, 2004|01:40 pm]
LiveJournal Client Discussions

lj_clients

[simonb]
[mood |accomplishedaccomplished]

Just released version 0.11 of LJ::Simple; this release has two changes:



  • The test harness has been adjusted for the test username being removed from the LiveJournal servers due to abuse. The test.pl script has been built so that if you use the test username (which you can still log in as) then it will use a small sub-set of the tests. However if you provide it with a different username and password the entire test suite will be used. I'm not going to guarentee that the test.pl script won't do unpleasant things to the LJ you do point it at

  • The DefaultPicURL() routine has been added which returns the URL of the default icon for the logged in user.
linkReply

Comments:
[User Picture]From: halkeye
2004-04-16 10:27 pm (UTC)
my @data = $lj->PostEntry($event) || undef;
my ($item_id,$anum,$html_id) = @data;
die Dumper(@data);

$VAR1 = 20841;

thats the anum (http://www.livejournal.com/users/halkeyedotnet/20841.html)

Has something major changed?
(Reply) (Thread)
[User Picture]From: simonb
2004-04-17 09:06 am (UTC)

Nope; it works fine if you call it correctly. Take off the || undef and everything works as expected Personally I prefer to call PostEntry() in the following way:

my ($item_id,$anum,$html_id)=$lj->PostEntry($event);
(defined $item_id) || die "$0: Failed to post entry - $LJ::Simple::error\n";

The above being basically what is shown in the example bit of code for PostEntry() within the LJ::Simple documentation.

(Reply) (Parent) (Thread)