コード例 #1
0
        public IEnumerable<SimpleNameValueCollection> exportResponses(ExportOptions exportOptions)
        {
            String authToken = new Authentication(exportOptions.getAPIUrl()).getAuthenticationToken(exportOptions.getUserName(), exportOptions.getPassword());
                ServiceOperationResultOfPagedListResultOfTabularResponseExportDataVUqw3SxCVUqw3SxC serviceOperationResult =
                    client.ExportResponsesTabular(authToken,
                    exportOptions.getSurveyId(),
                    exportOptions.getPageNumber(),
                    exportOptions.getResultsPerPage(),
                    exportOptions.getFilterField(),
                    exportOptions.getFilterValue(),
                    exportOptions.getSortField(),
                    exportOptions.getSortAscending(),
                    exportOptions.getPeriod(),
                    exportOptions.getDtStart(),
                    exportOptions.getDtEnd(),
                    exportOptions.getDetailedResponseInfo(),
                    exportOptions.getDetailedUserInfo(),
                    exportOptions.getIncludeOpenEndedResults(),
                    exportOptions.getIncludeAliases(),
                    exportOptions.getIncludeHiddenItems(),
                    exportOptions.getIncludeIncompleteResponses(),
                    exportOptions.getStripHTMLTagsFromAnswers(),
                    exportOptions.getStripHTMLTagsFromQuestions(),
                    exportOptions.getMergeAnswersForSelectMany());
              if (!serviceOperationResult.CallSuccess)
              { throw new System.ArgumentException(); }

            return getServiceOperationResult(serviceOperationResult);
        }