/// <summary> /// Retrieves a paged list of collectors for a survey in a user's account /// Notes /// DateStrings must be in the format YYYY-MM-DD HH:MM:SS.All DateStrings are implicitly in UTC. /// All start dates are greater than or equal to the date passed in /// All end dates are strictly less than the date passed in /// Endpoint : https://api.surveymonkey.net/v2/surveys/get_collector_list?api_key=your_api_key /// Example Request /// curl -H 'Authorization:bearer XXXYYYZZZ' -H 'Content-Type: application/json' https://api.surveymonkey.net/v2/surveys/get_collector_list/?api_key=your_api_key --data-binary '{"survey_id": "100399456", "fields":["collector_id", "url", "open", "type", "name", "date_created", "date_modified"], "start_date":"2013-02-05 00:00:00", "end_date":"2013-04-16 22:47:00", "order_asc":true, "page_size":1, "page":2}' /// </summary> private void BtnGetCollectorList_Click(object sender, EventArgs e) { GetCollectorListResponse collectors; BasicRequestData brd = GetRequestFields(); if (brd.SurveyID == null) { MessageBox.Show("no survey id specified. Going to get error back."); } if (chkFull.Checked) { collectors = SurveyRequest.GetCollectorListFull(brd); } else { collectors = SurveyRequest.GetCollectorList(brd); } lblStatus.Text = collectors.Status.ToString(); lblErrorMsg.Text = collectors.ErrorMessage; try { dgvSurveyList.DataSource = collectors.CollectorListResult.CollectorList; } catch { } // do nothing }