try {
Response res = httpPost(url, params.toArray(new PostParameter[params.size()]), true);
return new BpLog(res.asJSONObject().getJSONObject("bpLog"));
} catch (FitbitAPIException e) {
throw new FitbitAPIException("Error logging blood pressure: " + e, e);
} catch (JSONException e) {
throw new FitbitAPIException("Error logging blood pressure: " + e, e);
}
}