refresh_token => 'secret-refresh-token',
);
my $me = $client->get('/1/user/-/profile.json');
# Dump HashRef of response
use Data::Printer;
p( $me->content );
=head1 DESCRIPT
nse> object.
my $me = $client->get('/1/user/-/profile.json');
my $activities = $client->get(
'/1/user/-/activities/list.json',
{
beforeDate => '2015-07-15T23:45:4
ponse> object.
my $delete = $client->delete(
'/1/user/-/activities/[activity-log-id].json'
);
=head2 post
Accepts a relative URL path and an optional HashRef of params. Returns a
L
:Fitbit::Response;
$WebService::Fitbit::Response::VERSION = '0.000001';
use Moo;
use JSON::MaybeXS qw( decode_json );
use Types::Standard qw( Bool InstanceOf Maybe HashRef );
has content => (
is
my $self = shift;
my $content = $self->raw->decoded_content;
return $content ? decode_json($content) : undef;
}
sub _build_success {
my $self = shift;
return $self->raw->is_succes
item raw
An L<HTTP::Response> object.
=back
=head1 METHODS
=head2 content
This is the parsed JSON body of the response. Generally this will be a C<HashRef>.
=head2 raw
Returns the raw L<HTTP::