ent;
use Data::Printer;
use JSON;
use Moo;
our $VERSION = "0.003";
sub get_user {
my ( $self, $username ) = @_;
my $uri = "http://coderwall.com/$username.json";
my %user_data = %{$s
->http_agent->get($uri);
if ( $response->is_success ) {
my $json = JSON->new->allow_nonref;
return $json->decode( $response->decoded_content );
}
die __PACKAGE__.' API
:User> object given a username.
=head2 _call_api
Takes a URI, calls it, and returns the decoded json response.
For internal use. Use get_user or another get_* function instead.
=head1 SEE ALSO
L<