:GarminConnect->new(
username => $ENV{GARMIN_USERNAME},
password => $ENV{GARMIN_PASSWORD},
);
isnt($gc, undef, "create instance");
# Try to login. If this works, the 'is_logged_in' key should
# b
me => $ENV{GARMIN_USERNAME},
password => $ENV{GARMIN_PASSWORD},
cache_dir => $cache_dir,
);
isnt($gc, undef, "create instance");
# Try to login. If this works, the 'is_logged_in' key should
# b
:GarminConnect->new(
username => $ENV{GARMIN_USERNAME},
password => $ENV{GARMIN_PASSWORD},
);
isnt($gc, undef, "create instance");
# Try to login. If this works, the 'is_logged_in' key should
# b
$gc = WebService::GarminConnect->new(username => 'user1',
password => 'mypass');
};
isnt($gc, undef, 'constructor succeeds with both username and password');
:GarminConnect->new(
username => $ENV{GARMIN_USERNAME},
password => $ENV{GARMIN_PASSWORD},
);
isnt($gc, undef, "create instance");
# Try to login. If this works, the 'is_logged_in' key should
# b