ackage GPS::Garmin::Connect;
use warnings;
use strict;
use LWP::UserAgent;
use HTML::Form;
use JSON;
use Error;
=head1 NAME
GPS::Garmin::Connect - Allows simple fetching of
activities from http
my $connect = GPS::Garmin::Connect->new();
my $json = $connect->fetchdata( $username, $password );
my $activities = $connect->parse( $json );
foreach my $activity (@$activities) {
$username, $password );
Logins into connect.garmin.com and fetches all activities and returns
a JSON string which can be parsed using L<parse>.
=cut
sub fetchdata {
my ($pkg, $username, $passwor