Net::Social::Service::Twitter - handle friends from Twitter for Net::Social


Net-Social-Service-Twitter documentation  | view source Contained in the Net-Social-Service-Twitter distribution.

Index


NAME

Top

Net::Social::Service::Twitter - handle friends from Twitter for Net::Social

SYNOPSIS

Top

Net:Social::Service::Twitter returns a list of friends that you have on the Twitter service.

    use Net::Social;

    my $site  = Net::Social->site("Twitter");
    $site->login(%params}) || die "Need username and password";
    my @friends = $site-friends;

FUNCTIONS

Top

params

Describes the required parameters for logging in (for Twitter, username and password).

friends

Returns your friends. It defines the keys username, name and type.

add_friend <friend>

Add a friend.

Takes a Twitter friend as returned by the friends() method.

Returns 1 on success or 0 on failure.

delete_friend <friend>

Delete a friend.

Takes a Twitter friend as returned by the friends() method.

Returns 1 on success 0 on failure.

PREREQUISITES

Top

This module uses Net::Twitter, so you'll need that (and JSON::Any). You'll also need Net::Social.

CAVEATS

Top

The 'friends' API method only returns the last 100 users to have updated. In the event you're free and easy with friending users, there appears to be no way of finding out who all of them are, at least not from the API.

AUTHORS

Top

  Paul Mison <cpan@husk.org>
  Simon Wistow <simon@thegestalt.org>

COPYRIGHT

Top


Net-Social-Service-Twitter documentation  | view source Contained in the Net-Social-Service-Twitter distribution.