GetSurveys

Gets a list of all surveys in the account

This method retrieves all existing surveys within the account.

The select parameter requires a number between 1 and 1000 (0 is not a valid number). You may only select a maximum of 1000 results in a single request.

The skip parameter should be used in tandem with the select parameter when wanting to iterate through a whole data set. If you want to select the next 1000 records you should set the select parameter to 1000 and the skip parameter to 1000, which will return records 1001 to 2000. You should continue to do this until 0 records are returned to retrieve the whole data set.

SOAP action: http://apiconnector.com/v2/ApiService/GetSurveys

📘

Input and output parameters

The input and output parameters for this method are:

Input parameters

  • assignedToAddressBookOnly - optional; boolean
  • Select - optional; string
  • Skip - optional; string

Output parameters

  • GetSurveysResult - array of Survey
    • Survey
      • Id - integer
      • Name - string
      • Url - string
      • DateSurveyCreated - dateTime
      • DateSurveyModified - dateTime
      • State - string (Active', 'Inactive', 'Pending', 'Expired', 'SurveyFeatureDisabled')
      • FirstActiveDate - dateTime
      • LastInactiveDate - dateTime
      • ScheduledStartDate - dateTime
      • ScheduledEndDate - dateTime
      • ConfirmationMode - string ('Text', 'Url')
      • SubmissionMode - string ('Single', 'Multiple')
      • FieldCount - integer
      • NotifyCreatorOnResponse - boolean
      • RespondentNotificationType - string ('None', 'Basic', 'Campaign')
      • RespondentNotificationCampaignId - integer
      • IsAssignedToAddressBook - boolean
      • AssignedAddressBookTarget - string('AllContacts', 'SpecificAddressBook')
      • AssignedSpecificAddressBookId - integer
      • FirstResponseDate - dateTime
      • LastResponseDate - dateTime
      • TotalCompleteResponses - integer
      • TotalCompleteResponsesInLastDay - integer
      • TotalCompleteResponsesInLastWeek - integer
      • TotalIncompleteResponses - integer
      • TotalViews - integer
      • TotalBounces - integer
      • TimeToCompleteMax - integer
      • TimeToCompleteMin - integer
      • TimeToCompleteTotal - long
      • SourceDirectTotal - integer
      • SourceEmailTotal - integer
      • SourceEmbeddedTotal - integer
      • SourcePopoverTotal - integer
      • SourceFacebookTotal - integer
      • SourceTwitterTotal - integer
      • SourceGooglePlusTotal - integer
      • SourceOtherTotal - integer

Example

using (var client = new ApiServiceClient())
{
	client.ClientCredentials.UserName.UserName = "username";
	client.ClientCredentials.UserName.Password = "password";

	var assignedToAddressBookOnly = true;
	var select = 1000;
	var skip = 0;
	var surveys = client.GetSurveys(assignedToAddressBookOnly, select, skip);
}