NAME

WebService::GarminConnect - Access data from Garmin Connect

VERSION

Version 1.0.0

SYNOPSIS

With WebService::GarminConect, you can search the activities stored on the Garmin Connect site.

use WebService::GarminConnect;

my $gc = WebService::GarminConnect->new( username => 'myuser',
                                         password => 'password' );
my $activities = $gc->search( -limit => 20 );
foreach my $a ( @{$activities} ) {
  my $name = $a->{name};
  ...
}

FUNCTIONS

new( %options )

Creates a new WebService::GarminConnect object. One or more options may be specified:

username

(Required) The Garmin Connect username to use for searches.

password

(Required) The user's Garmin Connect password.

loginurl

(Optional) Override the default login URL for Garmin Connect.

searchurl

(Optional) Override the default search URL for Garmin Connect.

activities( %search_criteria )

Returns a list of activities matching the requested criteria. If no criteria are specified, returns all the user's activities. Possible criteria:

limit

The maximum number of activities to return. If not specified, there is no limit.

AUTHOR

Joel Loudermilk, <jlouder at cpan.org>

BUGS

Please report any bugs or feature requests to bug-webservice-garminconnect at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WebService-GarminConnect. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc WebService::GarminConnect

You can also look for information at:

COPYRIGHT & LICENSE

Copyright 2015 Joel Loudermilk.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.