/**
 * Copyright (c) 2015 Werner Keil
 * 
 * See LICENSE for details.
 */
package org.jstrava.demo;

import java.util.Properties;






import org.jstrava.connector.JStravaV3;
import org.jstrava.entities.activity.Activity;
//import org.apache.logging.log4j.LogManager;
//import org.apache.logging.log4j.Logger;
import org.jstrava.entities.athlete.Athlete;
import org.jstrava.entities.club.Club;

/**
 * Created by keilw on 12/04/14.
 * Updated by keilw on 22/02/15.
 */
public class StravaDemo {
//	private static final Logger logger = LogManager.getLogger();
	private static String accessToken;
	private static int athleteId;
	private static int activityId;
	private static int updateActivityId;
	private static int clubId;
	private static String gearId;
	private static long segmentId;

	public static void main(String[] args) throws Exception {
		final Properties config = new Properties();
		config.load(StravaDemo.class.getResourceAsStream("/democonfig.properties"));

        accessToken = config.getProperty("accessToken");
        activityId = Integer.parseInt(config.getProperty("activityId", "0"));
		JStravaV3 strava = new JStravaV3(accessToken);
		
		Athlete athlete = strava.getCurrentAthlete();
		System.out.println("Athlete: " + athlete);
		
		Activity activity = strava.findActivity(activityId);
		System.out.println("City: " + activity.getLocation_city());
		
		clubId = Integer.parseInt(config.getProperty("clubId", "0"));
		Club club = strava.findClub(clubId);
		System.out.println("Club: " + club);
	}

}

@@ -450,17 +450,17 @@
 ilw on 2
-2
+4
 /02/15.%0A
@@ -493,72 +493,8 @@
 o %7B%0A
-//%09private static final Logger logger = LogManager.getLogger();%0A
 %09pri

Update demos for SMW