Log in

LiveJournal Development [entries|archive|friends|userinfo]
LiveJournal Development

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

LiveJournal API for Node [May. 5th, 2015|01:01 pm]
LiveJournal Development

Hey. I maintain the node-livejournal - LiveJournal API for Node (via XMLRPC), plus some utility methods.

XMLRPC currently even supports OAuth 1.0, but you need to talk to LJ devs to get the API key. There is a working prototype app with OAuth support here http://en.ljreader.com/, if anyone is interested I can merge the auth code into node-livejournal.

Also feel free to contribute.
link3 comments|post comment

LiveJournal Source Code Archive [May. 3rd, 2015|05:50 pm]
LiveJournal Development


The official LiveJournal source repository at code.livejournal.org has been closed to those who don't work for LiveJournal since early 2014.

As a way of preserving (part of) the history of LiveJournal for posterity, I've created an archive repository, converted from Subversion to git so it's more usable with modern tools, that reflects every change from the LJ Subversion repository up to the end of March 2014.

After a considerable amount of history spelunking (with the help of burr86) I've been able to preserve the authorship information for many of the committers during the coversion to git, where possible using current email addresses to allow the commits to be attributed to each person's current github account.

I doubt anyone wants to run this code anymore (for that, the Dreamwidth code fork is probably an easier starting point) but I personally think LiveJournal made a significant contribution to the disciplines of collaborative development, scalable web application deployment and the social web, and thus I think its history (of which this codebase is a significant part) is worth preserving.

I hope someone finds this useful or interesting someday.

link4 comments|post comment

ЖЖ на телефоне обновился и сдох( [Oct. 21st, 2014|12:29 pm]
LiveJournal Development

Смотрю - а телефон вдруг решил обновления качнуть! С Андроидом 2.3 - обновления надо выключать, но я освобождал место в памяти и снёс параметры Google Play... И в благодарность, почуяв исчезновение запрета на обновление, телефон стал качать новые версии софтин...

Так и пала ЖЖчка 0.4.1 на моём телефоне, заменившись на 1.0, которая запускается, сообщает о том, что не работает на андроиде версиями ниже 4, и всё - ничего с ним не сделать.

Как быть? Несмотря на возраст телефона (3.5 года) до рутовских прав у меня руки не дошли...
Искать по сайтикам с софтом древнюю версию?
linkpost comment

Client error: No mode specified - I faced this error in flat API [Oct. 20th, 2014|05:38 pm]
LiveJournal Development

[Tags|, , ]

I found a lot of posts about this problem at 2010 year.
What about it now?

request was http://www.livejournal.com/interface/flat?mode=login&auth_method=clear&user={ezhik_israely&password=klhjlkjkj

linkpost comment

UserPic [Sep. 14th, 2014|10:26 pm]
LiveJournal Development
[Tags|, , ]

How can I get a userPic if I know username?
linkpost comment

AddComment method [Aug. 28th, 2014|05:09 pm]
LiveJournal Development

[Tags|, ]

Hi. This method works only for my posts, but I can't add comment to non-my posts. Each attempt returns this error:

<?xml version='1.0' encoding='UTF-8'?>








<string>Client error: Not allowed to create comment</string>













I see this version of source code (http://repo.or.cz/w/livejournal.git/blob/HEAD:/cgi-bin/ljprotocol.pl#l560) I see that this error code returns if LJ::Comment->create failed but I don't understand why does it fail?
For my posts I can add comments without problem.

link1 comment|post comment

Fetching images via API [Jul. 1st, 2014|03:46 pm]
LiveJournal Development
[Tags|, , , ]

Are there any methods to get image content that are marked as "Only for Friends" ?
I'm writing Android app and I try to use HttpGet. I add FB Headers like that:
Host: pics.livejournal.com
X-FB-User: bob
X-FB-Auth: crp:0123456789abcdef:0123456789abcdef

But in response I get Html page with access denied message.
linkpost comment

RPC request for polling [May. 27th, 2014|12:03 am]
LiveJournal Development

[Tags|, ]

Hey there!
I try to send request to Lj rpc-xml server for polling, but it return an error 203 - "Invalid argument(s): answers [203]".

Poll has ID
1968584 and chosen answer is 2.

The data that I send:

requestHash = new HashMap<String, Object>();
requestHash.put("pollid", "1968584");
requestHash.put("answers", "2");
client.call("LJ.XMLRPC.votepoll", requestHash);

In ljprotocol.pl I found following code:

# check answers parameter
  my $answers = $req->{answers};
  return fail($err, 200, 'answers') unless($answers);
  return fail($err, 203, 'answers') unless(ref $answers eq 'HASH');

But I can't understand, what means 'HASH' :(
Please, help me to find out, what am I doing wrong.
link3 comments|post comment

Web source code frontend broken? [Apr. 21st, 2014|04:42 am]
LiveJournal Development

[Tags|, , ]

When trying to look up the change history of a particular bit of the LJ source just now, I noticed that the web frontend for the LJ source is returning blank. Is this change deliberate, or just a temporary glitch?
link16 comments|post comment

is_show, is_loaded in getcomments [Oct. 4th, 2013|09:28 pm]
LiveJournal Development

[Tags|, , ]

Hi, has someone figured out what the parameters "is_show" and "is_loaded" mean exactly? They are returned by the getcomments function. I've played around a bit and I can see that the are both generally set to 1, but they will be both set to 0, if the comment was deleted. Do situations such as this ever occur?

is_show = 0
is_loaded = 1


is_show = 1
is_loaded = 0
linkpost comment

[ viewing | most recent entries ]
[ go | earlier ]