Robert Picard

NAME

WWW::Coderwall - Simple Perl interface to the coderwall API

VERSION

version 0.003

SYNOPSIS

    use WWW::Coderwall;

    $cw = WWW::Coderwall->new;

    # Get a WWW::Coderwall::User object representing a user
    $user = $cw->get_user($username);

ATTRIBUTES

http_agent

An LWP::UserAgent object used to make the API calls.

    use WWW::Coderwall;
    use LWP::UserAgent;

    my $ua = LWP::UserAgent->new;
    my $cw = WWW::Coderwall->new;

    $cw->http_agent($ua);

    # ...and you're using your own agent

http_agent_name

The user agent string used when making the API call. Defaults to WWW::Coderwall/$VERSION.

    use WWW::Coderwall;

    my $cw = WWW::Coderwall->new;

    $cw->http_agent_name('mysite/0.2.3)';

    # ...and you're using your own agent name

METHODS

get_user

Returns a WWW::Coderwall::User object given a username.

_call_api

Takes a URI, calls it, and returns the decoded json response.

For internal use. Use get_user or another get_* function instead.

SEE ALSO

WWW::Coderwall::User

AUTHOR

Robert Picard <mail@robert.io>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Robert Picard.

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