Code example for HttpDelete

0
	public void deleteFoodLogEntry(int entryId) throws ClientProtocolException,
			IOException, OAuthNotAuthorizedException, URISyntaxException, 
			OAuthMessageSignerException, OAuthExpectationFailedException { 
		URI uri = URIUtils.createURI("https", "dailyburn.com", -1,
				"/api/food_log_entries/" + String.valueOf(entryId), null, null);
		HttpDelete delete = new HttpDelete(uri);
		consumer.sign(delete);
		HttpResponse response = client.execute(delete);
		int statusCode = response.getStatusLine().getStatusCode();
		final String reason = response.getStatusLine().getReasonPhrase();
		response.getEntity().consumeContent();
		if (statusCode != 200) {
			LogHelper.LogE(reason);
			throw new OAuthNotAuthorizedException(); 
		} 
	} 
 
	public void addFoodLogEntry(int foodId, String servings_eaten, int year,
			int monthOfYear, int dayOfMonth, int mealId)
			throws OAuthMessageSignerException, 
			OAuthExpectationFailedException, ClientProtocolException,