src/org/ohmage/lib/OhmageApi.java
public void updateSurveyResponse(final String authenticationToken,
			final String client, final String campaignId, 
			final String surveyId, 
			final SurveyResponse.PrivacyState newPrivacyState)
			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);
		parameters.put(InputKeys.SURVEY_ID, surveyId);
		parameters.put(InputKeys.PRIVACY_STATE, newPrivacyState);

		try {
			makeRequest(
					new URL(url.toString() + RequestBuilder.getInstance().getApiSurveyResponseUpdate()),
					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);
		}
	}
/**
	 * Updates a survey response.
	 * 
	 * @param authenticationToken The user's authentication token.
	 * 
	 * @param client The client value.
	 * 
	 * @param campaignId The campaign's unique identifier.
	 * 
	 * @param surveyId The survey response's unique identifier.
	 * 
	 * @param newPrivacyState The survey response's new privacy state.
	 * 
	 * @throws ApiException Thrown if there is a library error.
	 * 
	 * @throws RequestErrorException Thrown if the server returns an error.
	 */
Updates a survey response.

@param authenticationToken The user's authentication token.

@param client The client value.

@param campaignId The campaign's unique identifier.

@param surveyId The survey response's unique identifier.

@param newPrivacyState The survey response's new privacy state.

@throws ApiException Thrown if there is a library error.

@throws RequestErrorException Thrown if the server returns an error.
Updates a survey response . @param authenticationToken The user ' s authentication token . @param client The client value . @param campaignId The campaign ' s unique identifier . @param surveyId The survey response ' s unique identifier . @param newPrivacyState The survey response ' s new privacy state . @throws ApiException Thrown if there is a library error . @throws RequestErrorException Thrown if the server returns an error .
public void updateSurveyResponse(final String authenticationToken,
			final String client, final String campaignId, 
			final String surveyId, 
			final SurveyResponse.PrivacyState newPrivacyState)
			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);
		parameters.put(InputKeys.SURVEY_ID, surveyId);
		parameters.put(InputKeys.PRIVACY_STATE, newPrivacyState);
		try {
			makeRequest(
					new URL(url.toString() + RequestBuilder.getInstance().getApiSurveyResponseUpdate()),
					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 updateSurveyResponse ( final String authenticationToken , final String client , final String campaignId , final String surveyId , final SurveyResponse . PrivacyState newPrivacyState ) 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 ) ; parameters . put ( InputKeys . SURVEY_ID , surveyId ) ; parameters . put ( InputKeys . PRIVACY_STATE , newPrivacyState ) ; try { makeRequest ( new URL ( url . toString ( ) + RequestBuilder . getInstance ( ) . getApiSurveyResponseUpdate ( ) ) , 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 ) ; } }
Updates a survey response.
Updates a survey response .