Пример #1
0
 public async Task<GetBodyFatResponse> GetBodyFatLog(DateTime date, CollectionTimespan range)
 {
     string query = string.Format("/1/user/-/body/log/weight/fat/{0:yyyy-MM-dd}/{1}.json", date, ConvertCollectionTimespanToString(range));
     return await GetAsync<GetBodyFatResponse>(query);
 }
Пример #2
0
 public async Task<GetBodyWeightResponse> GetBodyWeightLog(int userid, DateTime date, CollectionTimespan range)
 {
     string query = string.Format("/1/user/{2}/body/log/weight/date/{0:yyyy-MM-dd}/{1}.json", date, ConvertCollectionTimespanToString(range), userid);
     return await GetAsync<GetBodyWeightResponse>(query);
 }