NAME
WebService::8tracks::Response - Thin wrapper of 8tracks API response hash
SYNOPSIS
my $res = $api->user_mixes('dp'); # isa WebService::8tracks::Response
# Currently only is_success/is_error/is_*_error are provided
$res->is_success or die $res->{status};
# Access data via as normal hashref
my @mixes = @{ $res->{mixes} };
METHODS
- is_success
- is_error
- is_client_error
- is_server_error
-
Returns whether API response has corresponding status. Uses HTTP::Status internally.
AUTHOR
motemen <motemen@gmail.com>
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.