WWW::Ohloh::API::Message - a Ohloh message


WWW-Ohloh-API documentation  | view source Contained in the WWW-Ohloh-API distribution.

Index


NAME

Top

WWW::Ohloh::API::Message - a Ohloh message

SYNOPSIS

Top

    use WWW::Ohloh::API;

    my $ohloh = WWW::Ohloh::API->new( api_key => $my_api_key );
    my $messages =  $ohloh->fetch_messages( account => $id );

    while( my $msg = $messages->next ) {
        print $msg->body, "\n";
    }




DESCRIPTION

Top

W::O::A::Message contains the information associated with an Ohloh message.

METHODS

Top

API Data Accessors

id

Returns the message's id.

account

Returns the author of the message (as a string).

avatar

Returns (if available) the url pointing to the message author's avatar.

creation_time

Returns the time at which the message has been written.

body

Returns the body of the message.

tags

Returns the tags associated to the message as an array of WWW::Ohloh::API::Message::Tag objects.

Other Methods

as_xml

Return the message's information as an XML string. Note that this is not the exact xml document as returned by the Ohloh server.

SEE ALSO

Top

*

WWW::Ohloh::API, WWW::Ohloh::API::Messages, WWW::Ohloh::API::Message::Tag.

*

Ohloh API reference: http://www.ohloh.net/api/getting_started

*

Ohloh Account API reference: http://www.ohloh.net/api/reference/message

VERSION

Top

This document describes WWW::Ohloh::API version 0.3.1

BUGS AND LIMITATIONS

Top

WWW::Ohloh::API is very extremely alpha quality. It'll improve, but till then: Caveat emptor.

The as_xml() method returns a re-encoding of the account data, which can differ of the original xml document sent by the Ohloh server.

Please report any bugs or feature requests to bug-www-ohloh-api@rt.cpan.org, or through the web interface at http://rt.cpan.org.

AUTHOR

Top

Yanick Champoux <yanick@cpan.org>

LICENCE AND COPYRIGHT

Top


WWW-Ohloh-API documentation  | view source Contained in the WWW-Ohloh-API distribution.