Subscribers Can Now Use SOAP for Slashdot Journals

| | Comments (0)
Awhile back I added a SOAP interface for Slash journals. It lets you post journal entries, modify existing entries, delete entries, get entries for a specific user, and get individual entries.

I also implemented a perl distribution called Slash-Client to make it nice and easy to use. The base class, Slash::Client, defines the methods for the SOAP calls, including authentication. Slash::Client::Journal implements the specific journal methods.

There's two basic ways to authenticate, using a UID and password, or a logtoken (which can optionally be read straight from your browser's cookie file). So, as a quick example:

use Slash::Client::Journal;
# cookie file found automatically for Firefox on Mac OS X,
# so auth done automatically (patches welcome for others)
my $journal = Slash::Client::Journal->new({
    host        => '',
    ssl        => 1,
my $id = $journal->add_entry({
    subject => 'w00t',
    body    => 'this is the coolest thing EVAR'
my $get = $journal->get_entry($id);

Reskeys (those things that are replacing formkeys, that don't let you abuse our resources) apply, so you can't just spam us with a bunch of journal entries and so on with SOAP any more than you could with the web interface.

I've been using Slash-Client to post pretty much all my own journal entries (including this one) for months now: I just type into BBEdit, the first line is the subject, the rest is the body, and I Select All and hit a key combo to run the script to send it. It's worked well for me. I wrote a small Pudge::Journal class which calls Pudge::NowPlaying to put the fancy Now Playing link at the bottom, and off it goes.

Let me know if you have any questions.

Leave a comment

<pudge/*> (pronounced "PudgeGlob") is thousands of posts over many years by Pudge.

"It is the common fate of the indolent to see their rights become a prey to the active. The condition upon which God hath given liberty to man is eternal vigilance; which condition if he break, servitude is at once the consequence of his crime and the punishment of his guilt."

About this Entry

This page contains a single entry by pudge published on January 24, 2006 1:23 PM.

Ben Roethlisberger was the previous entry in this site.

Kobe is the next entry in this site.

Find recent content on the main index or look in the archives to find all content.