示例#1
0
        /// <summary>
        /// Create a survey, email collector, and email message based on a template or existing survey. ###Notes * You cannot specify both template_id and from survey_id * Maximum number of recipients supported is 10000
        /// Endpoint : https://api.surveymonkey.net/v2/batch/create_flow?api_key=your_api_key
        /// Example Request
        ///     curl -H 'Authorization:bearer XXXYYYZZZ' -H 'Content-Type: application/json' https://api.surveymonkey.net/v2/batch/create_flow?api_key=your_api_key --data-binary
        /// </summary>
        private void BtnCreateFlow_Click(object sender, EventArgs e)
        {
            CreateFlowResponse flowDetails;

            if (cff == null)
            {
                cff = new CreateFlowForm();
            }
            //cff.Visible = true;
            DialogResult gotData = cff.ShowDialog();

            if (gotData == DialogResult.OK)
            {
                flowDetails = SurveyRequest.CreateFlow(cff.cfrData);
            }
        }