App::Maisha::Plugin::Base - Maisha interface base module


App-Maisha documentation Contained in the App-Maisha distribution.

Index


Code Index:

NAME

Top

App::Maisha::Plugin::Base - Maisha interface base module

DESCRIPTION

Top

This module is used as a base for services. Where services do not provide functionality, they will use the methods provided here.

METHODS

Top

Constructor

* new

Process Methods

* login

Login to the service.

API Methods

The API methods are used to interface to with the Twitter API.

* api_follow
* api_unfollow
* api_user
* api_user_timeline
* api_friends
* api_friends_timeline
* api_public_timeline
* api_followers
* api_update
* api_replies
* api_send_message
* api_direct_messages_to
* api_direct_messages_from

SEE ALSO

Top

For further information regarding the commands and configuration, please see the 'maisha' script included with this distribution.

App::Maisha

WEBSITES

Top

* Main Site: http://maisha.grango.org =item * Git Repo: http://github.com/barbie/maisha/tree/master =item * RT Queue: RT: http://rt.cpan.org/Public/Dist/Display.html?Name=App-Maisha

AUTHOR

Top

  Copyright (c) 2009-2010 Barbie <barbie@cpan.org> for Grango.org.

LICENSE

Top

  This program is free software; you can redistribute it and/or modify it
  under the same terms as Perl itself.

  See http://www.perl.com/perl/misc/Artistic.html


App-Maisha documentation Contained in the App-Maisha distribution.

package App::Maisha::Plugin::Base;

use strict;
use warnings;

our $VERSION = '0.15';

#----------------------------------------------------------------------------
# Public API

sub new {
    my $class = shift;
    my $self = {
        source      => 'maisha',
        useragent   => 'Maisha/0.01 (Perl)',
        clientname  => 'Maisha',
        clientver   => '0.01',
        clienturl   => 'http://maisha.grango.org'
    };

    bless $self, $class;
    return $self;
}

sub login { return 0 }

sub api_update                  {}
sub api_friends                 {}
sub api_user                    {}
sub api_user_timeline           {}
sub api_friends_timeline        {}
sub api_public_timeline         {}
sub api_followers               {}

sub api_replies                 {}
sub api_send_message            {}
sub api_direct_messages_to      {}
sub api_direct_messages_from    {}

sub api_follow                  {}
sub api_unfollow                {}

1;

__END__