?

Log in

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

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

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

lord_baskervil
[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'?>

<methodResponse>

<fault>

<value>

<struct>

<member>

<name>faultString</name>

<value>

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

</value>

</member>

<member>

<name>faultCode</name>

<value>

<int>337</int>

</value>

</member>

</struct>

</value>

</fault>

</methodResponse>

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
green_2005
[Tags|, , , ]

Hi!
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

be_progressive
[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

rahaeli
[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

alsterellie
[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

OR

is_show = 1
is_loaded = 0
linkpost comment

LJ Picture Uploader [Sep. 16th, 2013|05:46 pm]
LiveJournal Development

thornik
[Tags|, , , , ]

Hello, guys!
Lately I made a program to upload pictures on LJ server (Page on SoftPedia). It's quite simple at look and same simple in use, so hope people will enjoy it.
If you have any ideas how to improve it, welcome!

Program is written on C#/.NET 4.5, uses PhotoBilder API.
link14 comments|post comment

function- lj-like [Aug. 13th, 2013|07:10 pm]
LiveJournal Development

danilovmy
In the journal community lj-photophile.livejournal.com is such a function- lj-like, when users can mark their favorite articles.
(The figures below each article like "+1 (45)")

how i kann included this property?

If nobody don't know, please somebody tell me, who can I ask?

when I asked this livejournal service, they heard from me about this property for the first time.

Thank´s a lot,
link8 comments|post comment

FotoBilder [Aug. 7th, 2013|10:26 pm]
LiveJournal Development

lord_baskervil
[Tags|, ]

Is it possible to link image (GetPics) and gallery (GetGals)? I want to see in desktop client all content of my scrapbook and show pictures in albums.
linkpost comment

No more private photo uploads? [Jul. 30th, 2013|07:58 am]
LiveJournal Development

metageek
[Tags|, , ]

(I asked this in the support forum, too, but I'm not getting any response; maybe this community is a better place to find the people who know.)

I maintain a photo uploader for Android which uses the Fotobilder API. Yesterday I noticed that private uploads, using the PicSec: 0 setting, were not working: they get an error message:

<Error code='211'>Invalid argument: PicSec</Error>

When I switch to public (PicSec: 255) or friends-locked (PicSec: 254), the client works correctly. And I know PicSec: 0 was working no more than three weeks ago.

Does anybody know whether private uploads have been deliberately blocked in the Fotobilder API for some reason, or is it just a bug?

(On further experimentation, I find that GalSec: 0 is also being refused, which makes me think it's more likely to be deliberate...)
link4 comments|post comment

Download current blog style [May. 30th, 2013|09:35 am]
LiveJournal Development

lord_baskervil
[Tags|, ]

Hi.
How I can download my current blog style?
I create desktop application for lj and I want to do a preview in blog style.
Thx.
link7 comments|post comment

navigation
[ viewing | 10 entries back ]
[ go | earlier/later ]