posted via php/flat API
hello worldsuccess
I was now able to use the LJ "flat" API to create this post (subject and body)so now, i can continue making my own PHP twitter to lj interface!
$timestamp is hour, mon, day, hour, min as per spec
$ch = curl_init("http://www.livejournal.com/interface/flat");
$H[0] = "Content-Type";
$H[1] = "application/x-www-form-urlencoded";
$MSG ="mode=postevent&user=USERNAME&password=PASSWORD&subject=posted+via+php/flat+API&event=hello+world";
curl_setopt($ch, CURLOPT_POSTFIELDS, "$MSG$timestamp");
curl_setopt($ch, CURLOPT_HTTPHEADER, $H);
curl_setopt($ch, CURLOPT_POST, true);
curl_exec($ch);
curl_close($ch);n.b. this method is not checking for LJ return status, as the API is robust enough to do a lot more than just post a blog entry.
ecstatic
accomplished