FITBIT is almost finished

This commit is contained in:
20015091
2018-06-14 12:05:52 +02:00
parent e1693911e3
commit 051f1ce121
7 changed files with 24 additions and 44 deletions

View File

@@ -5,11 +5,10 @@ public class Main {
public static void main(String[] args) throws Exception {
AuthFITBIT fitbit = new AuthFITBIT();
// HeartRate h = fitbit.run("https://api.fitbit.com/1/user/-/activities/heart/date/today/1d.json", HeartRate.class, false); // 1sec/time/00:00/00:01.json
// Sleep s = fitbit.run("https://api.fitbit.com/1.2/user/-/sleep/date/today.json", Sleep.class, false);
HeartRate h = fitbit.run("https://api.fitbit.com/1/user/-/activities/heart/date/today/1d/1sec/time/11:00/11:45.json", HeartRate.class);
//Sleep s = fitbit.run("https://api.fitbit.com/1.2/user/-/sleep/date/today.json", Sleep.class);
Device dev = fitbit.run("https://api.fitbit.com/1/user/-/devices.json", Device.class);
Device dev = fitbit.run("https://api.fitbit.com/1/user/-/devices.json", Device.class, true);
//System.out.println(dev);
//System.out.println(h.dateTime + " " + h.average);
System.out.println(h.dateTime + " " + h.average);
}
}