setAccessToken(localUser);
String url = APIUtil.contextualizeUrl(getApiBaseUrl(), getApiVersion(), "/user/-/glucose", APIFormat.JSON);
try {
Response res = httpPost(url, params.toArray(new PostParameter[params.size()]), true);
return new Glucose(res.asJSONObject());
} catch (FitbitAPIException e) {
throw new FitbitAPIException("Error logging glucose: " + e, e);
} catch (JSONException e) {
throw new FitbitAPIException("Error logging glucose: " + e, e);
}