You are viewing the community [info]lj_dev

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

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

Scrapbook problem [Aug. 15th, 2011|11:13 pm]

banana
[Tags|, , , , ]

I'm having trouble uploading to scrapbook through the API. I posted a support request, but no response there: http://www.livejournal.com/support/see_request.bml?id=1357616

Can anyone confirm that it's broken and/or help?
link3 comments|post comment

Get username [Jul. 12th, 2011|11:54 pm]

alexkom
[Tags|, ]

Is there any way to get username from userid? I already have userid (got it from cookie) and want to know user name. Possible?
link3 comments|post comment

fotoup.pl again does not work [Jun. 28th, 2011|08:51 pm]

serge_g239
[Tags|, , , , ]

I cannot upload my photos again:

Problem! )

Any help is very appreciated! Thanks.
link8 comments|post comment

(no subject) [Jun. 26th, 2011|11:54 am]

mizter_e
[Tags|, , ]

 I need help, I need to know the list of mutual friends, those whom I read and those who read me, how do I do?
I know that you can find a list of all your friends through the team
http://www.livejournal.com/misc/fdata.bml?user=username
Thanks a lot
link1 comment|post comment

S2 docs disappeared? [Jun. 5th, 2011|08:29 pm]

foxfirefey
[Tags|, , , ]

http://www.livejournal.com/doc/s2/ only brings up:

"Static file not found."
link4 comments|post comment

fotoup.pl problem [May. 14th, 2011|01:13 am]

serge_g239
[Tags|, , , , ]

Hi!

I have discovered just now that fotoup.pl script does not work anymore. I used fotoup.pl continuously from time to time, last time was April, 22. No settings were changed since that time. Now, I have the following problem:

Problem: )

Any help is very appreciated! Thanks.
link2 comments|post comment

Strange results from “checkfriends” method. [May. 12th, 2011|04:42 pm]

term_hat
[Tags|, , , , ]
[Current Location |Home]
[music |High Contrast—If We Ever]

Hi all. I’m currently writing a library in C# / .NET which calls the LiveJournal flat API using challenge‑response authentication. For now it’s just a little project on the side, and so far I have implemented the “login” and “checkfriends” methods.

The problem I’m facing is that I’m getting unexpected responses from the “checkfriends” call. In each request I’m passing the “lastupdate” string exactly as received from the previous request, but sometimes I get a response saying there are new entries when in fact there aren’t. Doing a network capture showed that sometimes the “lastupdate” value received in the response is a date which is earlier than the “lastupdate” which was sent in the request. Then after some further requests, I start getting back the original “lastupdate” value, along with a “new=1” response. I know you’re not supposed to imply any meaning in the “lastupdate” value, but it does seem to be the cause of my spurious results.

To try and understand the problem I created a friends group which contains only myself, so that I could be sure that no changes had been made to my journal. The group number is 3, so the mask to be sent in the request is (1 << 3) = 00001000 binary (8 decimal). That’s correct, right? I sent a bunch of requests with this friends group mask, waiting for the amount of time specified in the “interval” of the previous response before sending the next request, and I found that sometimes the “lastupdate” in the response is “0000-00-00 00:00:00”. The following is the network capture (challenge requests not included, and challenge / response xxx‑ed out):

Network Capture )

As you can see, the “lastupdate” is initially being returned as “2011-05-10 11:24:33”, but in the next request it is returned as “0000-00-00 00:00:00”. In the request following that, the value is “2011-05-10 11:24:33”, which is the value which was initially being returned. No changes were made to my journal during the time of the above examples. Do you see anything wrong with my requests? Or could it be a bug in the LiveJournal API, or temporary technical fault? I’ve read in the community that checkfriends was disabled at one point due to a buggy client causing server‑side issues, but that it should now be working and usable for paid users. This behaviour appears to be random, but it is repeatable (based on a number of tests I have performed over the last week).

linkpost comment

Client cookie authentication [May. 4th, 2011|10:12 am]

degote
[Tags|, , , , ]

Dear Friends,

It's nice to meet you.
I'm implementing Android LJ-client.

I've got 2 simple questions:
1. Does cookie authentication work?
2. Is there any resource with a real LJ client API?

I tried many things to implement cookie authentication, but non of them worked.
The latest one I use:

1) Send "getchallenge"
2) Receive responce
3) Send "sessiongenerate"
4) Receive: 
ljsession\nc1:u33172608:s26:aNXruAF9RJm//Thanks%20for%20signing%20in%20%2F%20LiveJournal%20loves%20you%20a%20lot%20%2F%20Here%20have%20a%20cookie\nsuccess\nOK\n

Is this way correct?
What cookie should I send then to server to authenticate: "c1:u33172608:s26:aNXruAF9RJm" or the whole cookie string?

5) I try like this:

mode=login&auth_mode=cookie&user=realuser

Headers:
"X-LJ-Auth: cookie"
"Cookie: c1:u33172608:s26:aNXruAF9RJm"
"ljsession: c1:u33172608:s26:aNXruAF9RJm"

Actually I've tried sending whole cookie string also.

6) Responce: errmsg\nInvalid password\nsuccess\nFAIL\n

I would appreciate any kind of help.
I enjoy LJ and I'd like to create a beautiful client, but wasting so much time looking for spec makes me disappointed.
link9 comments|post comment

Attempting to Give Something Back: Tags [May. 3rd, 2011|06:56 pm]

schpydurx
[Tags|, , ]

Hello fellow programmers!

I'm here to state my intentions, but in doing so, I'm also asking for help, guidance, mentorship and any other form of support or path lighting you see fit to send my way.

Instead of being one of those people that just sits around on their ass doing nothing, I've decided to become proactive. For a long time, I've wanted to a) be able to merge tags on LJ posts as well as b) remove all empty tags (tags with a post count of 0) with one click. To that end, I've joined this community and started reading as much as possible about the code etc.

I see that Perl is the language of choice around here. I also see LJ loves Debian which is a good thing because I also use Debian at work so I'll have some idea of using that OS. As soon as I'm done here, I'm going to get a box and install squeeze and follow that up by installing LiveJournal via the documentation. Then more reading until I find the area(s) I need to hack/learn about to get to the areas I need to hack.

I have six months real-world experience writing acceptance tests in Java. I'm not one of those people that write code for a hobby, but I do live in front of my computer and have many year's experience with these machines, learning more each and every day.

If anyone who reads these lines has any pertinent advice, please feel free to elucidate in the comments below.

Thanks,
[info]schpydurx
link2 comments|post comment

XML-RPC posting into LJ [Apr. 23rd, 2011|08:20 pm]

palmindesert
[Tags|, , , , ]

Hi, dear LJ developers! I'm creating a remote poster to LiveJournal for my site. This is the code i've wroute:

<?php
include ('IXR_Library.php');

$LjPass = $_POST['LjPass'];
$LjPassEncrypted = md5($LjPass);
$LjLogin = $_POST['LjLogin'];
$Auth = 'challenge';

$postSub = $_POST['postSub'];
$postText = $_POST['postText'];
$tags = array();
$postTime = $_POST['postTime'];
$postSecurity = $_POST['postSecurity'];

$LJ = new IXR_Client('http://www.livejournal.com/interface/xmlrpc');

if(!$LJ->query('LJ.XMLRPC.getchallenge')){
    echo 'Error!!!'.$ljClient->getErrorMessage();
}
else{
    $LjResponse = $LJ->getResponse();
    $LjChallenge = $LjResponse['challenge'];
    $ljContentToSend = array();
    $ljContentToSend['username'] = $LjLogin;
    $ljContentToSend['auth_method'] = 'challenge';
    $ljContentToSend['auth_response'] = md5($LjChallenge.md5($LjPass));
    $ljContentToSend['ver'] = '1';
    $ljContentToSend['event'] = $postText;
    $ljContentToSend['subject'] = $postSub;
    //date
    $ljContentToSend['year'] = $postTime['year'];
    $ljContentToSend['mon'] = $postTime['month'];
    $ljContentToSend['day'] = $postTime['day'];
    $ljContentToSend['hour'] = $postTime['hour'];
    $ljContentToSend['min'] = $postTime['minuts'];
    $ljContentToSend['props'] = array(
                                      'opt_preformated' => true,
                                      'opt_backdated' => true,
                                      'taglist' => $tags
                                      );
    $ljContentToSend['security'] = $postSecurity;
    echo '<br>';
    print_r ($ljContentToSend);
    echo'<br>';
   
    $LjMethod = 'LJ.XMLRPC.postevent';
   
    $LJ->query($LjMethod, $ljContentToSend);
   
    $LjResponse = $LJ->getResponse();
    print_r ($LjResponse);
    $LjError = $LJ->getErrorMessage();
    echo $LjError.'<br>';
    echo $LjSecurePass.'<br>';
    echo $ljContentToSend['auth_response'].'<br>';
    echo $LjPass.'<br>';
    echo $LjPassEncrypted.'<br>';
};
   
?>


Looks fine, but doesn't work :). Please, let me now, what's wrong?
link11 comments|post comment

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