I want to consume SurveyMonkey API to get Question & answers in a .NET application, and i am suing The .Net wrapper. I can get general information about the survey like ( surveyId, number of questions...etc) but when i try to get collectors or questions or responses or any other obejct i get an error saying tht those objects are null. here is a piece of code of what i am trying to do
string apiKey = "key";
string token ="token";
var sm = new SurveyMonkeyApi(apiKey, token);
List<Survey> surveys = sm.GetSurveyList();
foreach(Survey s in surveys)
{
//this link bellow is working fine
MessageBox.Show("Survey Id:"+s.SurveyId);
List<Collector> collectorList = s.Collectors;
//this line bellow give a System.NullReferenceException in "collectorList"
foreach (Collector c in collectorList)
{
//Other instructions
}
}
PS: i tried the PHP wrapper version and it was working fine.