rtRow::VERSION = '0.008';
# ABSTRACT: Connect and get data from SmartRow API
use HTTP::Tiny;
use JSON::MaybeXS;
use Moo;
use namespace::clean;
has username => ( is => 'ro', required => 0 );
has pas
esponse->{success} ) {
return 'Response error';
}
my $json = decode_json $response->{content};
return $json;
}
# https://smartrow.fit/api/account
sub get_profile {
my $self
esponse->{success} ) {
return 'Response error';
}
my $json = decode_json $response->{content};
return $json->[0];
}
# https://smartrow.fit/api/public-game
sub get_workouts {