src/org/ohmage/lib/OhmageApi.java
public void deleteCampaign(final String authenticationToken,
			final String client, final String campaignId)
			throws ApiException, RequestErrorException {
		
		Map<String, Object> parameters = new HashMap<String, Object>();
		parameters.put(InputKeys.AUTH_TOKEN, authenticationToken);
		parameters.put(InputKeys.CLIENT, client);
		parameters.put(InputKeys.CAMPAIGN_URN, campaignId);
		
		try {
			makeRequest(
					new URL(url.toString() + RequestBuilder.getInstance().getApiCampaignDelete()), 
					parameters, 
					false
				);
		}
		catch(MalformedURLException e) {
			throw new ApiException("The URL was incorrectly created.", e);
		}
		catch(IllegalArgumentException e) {
			throw new ApiException("The response was not proper JSON.", e);
		}
	}
/**
	 * Deletes a campaign.
	 * 
	 * @param authenticationToken The user's authentication token.
	 * 
	 * @param client The client value.
	 * 
	 * @param campaignId The unique identifier for the campaign to be deleted.
	 * 
	 * @throws ApiException Thrown if there is a library error.
	 * 
	 * @throws RequestErrorException Thrown if the server returns an error.
	 */
Deletes a campaign.

@param authenticationToken The user's authentication token.

@param client The client value.

@param campaignId The unique identifier for the campaign to be deleted.

@throws ApiException Thrown if there is a library error.

@throws RequestErrorException Thrown if the server returns an error.
Deletes a campaign . @param authenticationToken The user ' s authentication token . @param client The client value . @param campaignId The unique identifier for the campaign to be deleted . @throws ApiException Thrown if there is a library error . @throws RequestErrorException Thrown if the server returns an error .
public void deleteCampaign(final String authenticationToken,
			final String client, final String campaignId)
			throws ApiException, RequestErrorException {
		Map<String, Object> parameters = new HashMap<String, Object>();
		parameters.put(InputKeys.AUTH_TOKEN, authenticationToken);
		parameters.put(InputKeys.CLIENT, client);
		parameters.put(InputKeys.CAMPAIGN_URN, campaignId);
		try {
			makeRequest(
					new URL(url.toString() + RequestBuilder.getInstance().getApiCampaignDelete()), 
					parameters, 
					false
				);
		}
		catch(MalformedURLException e) {
			throw new ApiException("The URL was incorrectly created.", e);
		}
		catch(IllegalArgumentException e) {
			throw new ApiException("The response was not proper JSON.", e);
		}
	}
public void deleteCampaign ( final String authenticationToken , final String client , final String campaignId ) throws ApiException , RequestErrorException { Map < String , Object > parameters = new HashMap < String , Object > ( ) ; parameters . put ( InputKeys . AUTH_TOKEN , authenticationToken ) ; parameters . put ( InputKeys . CLIENT , client ) ; parameters . put ( InputKeys . CAMPAIGN_URN , campaignId ) ; try { makeRequest ( new URL ( url . toString ( ) + RequestBuilder . getInstance ( ) . getApiCampaignDelete ( ) ) , parameters , false ) ; } catch ( MalformedURLException e ) { throw new ApiException ( "The URL was incorrectly created." , e ) ; } catch ( IllegalArgumentException e ) { throw new ApiException ( "The response was not proper JSON." , e ) ; } }
Deletes a campaign.
Deletes a campaign .