@@ -0,0 +1,1806 @@
+import java.io.FileNotFoundException;%0Aimport java.io.PrintWriter;%0Aimport java.io.UnsupportedEncodingException;%0Aimport java.text.ParseException;%0Aimport java.text.SimpleDateFormat;%0Aimport java.util.Date;%0Aimport java.util.Locale;%0A%0Aimport com.claygregory.jfitbit.*;%0A%0Apublic class FitbitTest %7B%0A%0A    public static void main(String args%5B%5D) throws ParseException,%0A           FitbitAuthenticationException, FileNotFoundException,%0A           UnsupportedEncodingException %7B %0A%0A        String Username = %22your_fitbit_email@email.ca%22;%0A        String Password = %22Yes, your password, in plaintext%22; %0A%0A        String start_date = %22April 04, 2012%22;%0A        String end_date   = %22August 16, 2013%22;%0A%0A        Date startDate = new SimpleDateFormat(%22MMMM d, yyyy%22,%0A                Locale.ENGLISH).parse(start_date);%0A        Date endDate   = new SimpleDateFormat(%22MMMM d, yyyy%22,%0A                Locale.ENGLISH).parse(end_date);%0A%0A        // Output File creation    %0A        PrintWriter printer = new PrintWriter(%22FitbitData%22,%22UTF-8%22);%0A%0A        //Date formatter --- this is the R POSIXlt date format for ease%0A        SimpleDateFormat x = new SimpleDateFormat(%22yyyy-MM-dd HH:mm%22);%0A%0A        FitbitQuery fbQuery = FitbitQuery.create()%0A                                       .minimumTimestamp( startDate )%0A                                       .maximumTimestamp( endDate )%0A                                       .resolution( FitbitResolution.INTRADAY );%0A        Fitbit fb = new Fitbit(Username, Password);%0A%0A        for ( StepCount step_count : fb.stepCount( fbQuery ) ) %7B %0A            Date d = step_count.getTimestampAsDate();%0A            String formatted_date = x.format(d);%0A            printer.println(   formatted_date + %22,%22 + step_count.getSteps()); %0A        %7D%0A        printer.close();%0A        System.out.println(%22Done%22); %0A    %7D%0A%0A%7D%0A

Add very basic data-fetcher