NAME

Net::ITE - OOP-ish interface to the Internet Topic Exchange


SYNOPSIS

 use Net::ITE;
 my $ite = Net::ITE->new();
 # Get all the posts for a topic
 my $topic = $ite->topic("montreal_quebec_canada");
 my $posts = $topic->posts();
 while (my $item = $posts->next()) {
    print $item->title()."\n";
    print $item->excerpt()."\n";
 }
 # Add your post to a topic listing
 $topic->ping({title=>"foo",
               url=>"http://foo.com/123";,
               excerpt=>"yadda yadda yadda"});
 # Create a new topic
 $ite->new_topic("foobars");


DESCRIPTION

OOP-ish interface to the Internet Topic Exchange.


NOTES


PACKAGE METHODS

__PACKAGE__->new($blogname)

Returns an object.Woot!


OBJECT METHODS


Net::ITE

$ite->topics()

When called in a scalar context, returns an Net::ITE::Iterator object of Net::ITE::Topic objects.

When called in an array context, returns a list of Net::ITE::Topic objects.

$ite->topic($topic)

Returns a Net::ITE::Topic object.

$ite->new_topic($topic)

Returns true or false.


Net::ITE::Topic

$topic->title()

$topic->about()

Not implemented (yet)

$topic->url()

$topic->posts()

When called in a scalar context, returns an Net::ITE::Iterator object of Net::ITE::Post objects.

When called in an array context, returns a list of Net::ITE::Post objects.

$topic->ping(\%args)

Returns true or false.


Net::ITE::Post

$post->title()

$post->url()

$post->excerpt()


Net::ITE::Iterator

$it->count()

$it->next()

Returns an object.Woot!


VERSION

0.05


DATE

$Date: 2003/04/17 13:25:47 $


AUTHOR

Aaron Straup Cope


SEE ALSO

http://topicexchange.com


LICENSE

Copyright (c) 2003 Aaron Straup Cope, All Rights Reserved.

This is free software, you may use it and distribute it under the same terms as Perl itself.