Proposal for "Services_LiveJournal"

» Metadata » Status
» Description
This package is a wrapper around the RPC functions for LiveJournal (www.livejournal.com). Currently the code only supports fetching already entered journal entries and posting new ones, as these are the most important functions. If people are interested though, I would be happy to add functionality for other functions offered by the live journal protocol (friends, groups, etc)

Here is an example script which retrieves all of the entries the current user has, then posts a new entry.


require_once 'Services/LiveJournal/Client.php';
require_once 'Services/LiveJournal/Entry.php';

// create the client
$lj = new Services_LiveJournal_Client();

// login
if ($lj->login('username','password')) {

// fetch the entries
$entries = $lj->fetchEntries();

// create a new entry
$entry = new Services_LiveJournal_Entry();
$entry->subject = "Fake Entry";
$entry->text = "This is a fake entry placed by Services_LiveJournal.";
$lj->postEntry($entry);
}



NOTE: The links below are currently inactive. They should be reactivated in the next couple of days. I apologize for the inconvenience.
» Dependencies » Links
  • XML_RPC
» Timeline » Changelog
  • First Draft: 2004-06-06
  • Proposal: 2004-06-21
  • Call for Votes: 2004-11-04
  • Voting Extended: 2004-11-12