NAME

WebService::SmartRow - Connect and get data from SmartRow API

VERSION

version 0.003

This module is a basic wrapper to allow Perl apps to access data from https://smartrow.fit

my $smartrow = WebService::SmartRow->new(
 username => 'foo',
 password => 'bar',
);

my $profile  = $smartrow->get_profile;
my $workouts = $smartrow->get_workouts;

Credentials can be passed via environment variables

* SMARTROW_USERNAME
* SMARTROW_PASSWORD

If passing credentials via ENV you can simply use WebService::SmartRow->new;

http

http is a HTTP::Tiny object by default, you can provide your own on construction.

This might be helpful if, for example, you wanted to change the user agent.

username

get/set the username for the API

Note that we parse the username in get_ methods to escape the "@" char.

You can also set the SMARTROW_USERNAME environment variable.

password

get/set the password for the API

You can also set the SMARTROW_PASSWORD environment variable.

get_profile

This method obtains your profile information

get_workouts

This method returns all the workouts you have done via SmartRow

AUTHOR

Lance Wicks <lw@judocoach.com>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2022 by Lance Wicks.

This is free software, licensed under:

The MIT (X11) License