his is a Java example for an OAuth2 client connecting to TrainingPeaks OAuth server.