?

Log in

No account? Create an account
January 3rd, 2008 - LiveJournal Development [entries|archive|friends|userinfo]
LiveJournal Development

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

January 3rd, 2008

Can't read protected entries after authenticating [Jan. 3rd, 2008|05:42 am]
LiveJournal Development
lj_dev
[scalderwood]
[Tags|, , , , ]

Dear all,

I have written a php script through which to interface with LJ's XML-RPC interface (http://www.ratiosemper.com/xmlrpc.phps).  When I supply the correct information, I can login correctly, generate a session cookie, store the session cookie, and access other parts of the LJ site that cannot be accessed via the XML-RPC interface, such as uploading user pics.  I can even post and edit friend-locked entries in communities or journals.

The problem is this: when accessing the RSS feed for the community (or user), it does not display the protected entries.  (if I try fetching the community or user page, it will also NOT show the protected entries)

Is there something more I should be doing?  Is this even possible (I assume this is possible since LJ-Archive downloads protected entries)?  (I know I can do this by posting my username/password to the login.bml, but I don't want to send my password in the clear.)  (I have also tried sending the cookie as header through $curl->set_headers($header_array) and sending the 'X-LJ-Auth: cookie' header, but that didn't change anything.)

Thanks,
Steve

XML-RPC Class file: http://www.ratiosemper.com/IXR_Library.inc.phps
CURL Class file: http://www.ratiosemper.com/curl_http_client.phps
link2 comments|post comment

Adding New Account Types [Jan. 3rd, 2008|11:29 am]
LiveJournal Development

lj_dev

[scenejournal]
[Tags|, , ]

Got two questions:

1. How easy/hard would it be to add new account types? Could I just do something like:

5' => { # 0x12
'_name' => 'paid user',
'styles' => 40,
'makepoll' => 1,
'userpics' => 1000,
'paid' => 1,
'useremail' => 1,
'textmessaging' => 1,
'directory' => 1,
'synd_create' => 1,
'domainmap' => 1,
'userdomain' => 1,
},

Could it be that easy or will it not be that simple?

2. Also I'm very interested in display the Account Type on the user info pages.
I figured it out!

Read more...Collapse )

Any help on either of those questions is much appreciated!
link18 comments|post comment

navigation
[ viewing | January 3rd, 2008 ]
[ go | Previous Day|Next Day ]