Gossamer Forum
Quote Reply
Gossamer::Automate ?
I'm considering writing an LWP::UserAgent based OOP module that allows one to automate a set of Gossamer Forum tasks, to ease integration with other already created community sites.

The reason I'm thinking of doing this, rather than putting things directly into the database, is because I've done a lot of bot programming and find it easy to work with form automation- forms are kind of self-documenting APIs, and passing stuff through a well-written HTML form with data validation and sanity checking saves me from having to do all that crap myself. Why reinvent validation routines when it's already done by the talented folks of Gossamer Threads?

A couple example methods to give you an idea of the interface:

Code:
#!/usr/bin/perl
use Gossamer::Automate::Groups;
my $ga=Gossamer::Automate::Groups->new(
basic_auth_user=>'username',
basic_auth_pass=>'password',
url=>'http://www.myforum.cgi/perl/admin/admin.cgi'
);

$ga->add_user_to_group(
group_id=>5,
usernames=>\@usernames
);

my $users=$ga->get_user_ids_from_group(
group_id=>5,
);
These methods will then call out to LWP::UserAgent and HTTP::Request::Common objects where appropriate.

I'd start with automated group management first, possibly moving on to other areas down the line.

Thoughts? I've already tested this on a rudimentary level and it works fine so far. Has someone done something like this already? Can I rely on the admin forms not to change too much between versions?
Subject Author Views Date
Thread Gossamer::Automate ? dpuro 2566 May 5, 2003, 9:08 AM
Post Re: [dpuro] Gossamer::Automate ?
ArmyAirForces 2484 May 5, 2003, 9:34 AM