E2::InterfaceA client interface to the everything2.com collaborative database | |
Download |
E2::Interface Ranking & Summary
Advertisement
- License:
- Public Domain
- Price:
- FREE
- Publisher Name:
- Jose Marti Weeks
- Publisher web site:
- http://search.cpan.org/~joseweeks/
E2::Interface Tags
E2::Interface Description
A client interface to the everything2.com collaborative database E2::Interface is a base class for e2interface, a set of modules that interface with everything2.com. It maintains an agent that connects to E2 via HTTP and that holds a persistent state (a cookie) that can be cloned to allow multiple descendants of E2::Interface to act a single, consistent client. It also contains a few convenience methods.SYNOPSIS use E2::Interface; use E2::Message; # Login my $e2 = new E2::Interface; $e2->login( "username", "password" ); # Print client information print "Info about " . $e2->client_name . "/" . $e2->version . ":"; print "\n domain: " . $e2->domain"; print "\n cookie: " . $e2->cookie"; print "\n parse links:" . ($e2->parse_links ? "yes" : "no"); print "\n username: " . $e2->this_username; print "\n user_id: " . $e2->this_userid; # Load a page from e2 my $page = $e2->process_request( node_id => 124, displaytype => "xmltrue" ); # Now send a chatterbox message using the current # settings of $e2 my $msg = new E2::Message; $msg->clone( $e2 ); $msg->send( "This is a message" ); # See E2::Message # Logout $e2->logout; Requirements: · Perl
E2::Interface Related Software