{"action":"created","issue":{"url":"https://api.github.com/repos/leeper/Rmonkey/issues/3","labels_url":"https://api.github.com/repos/leeper/Rmonkey/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/leeper/Rmonkey/issues/3/comments","events_url":"https://api.github.com/repos/leeper/Rmonkey/issues/3/events","html_url":"https://github.com/leeper/Rmonkey/issues/3","id":55471529,"number":3,"title":"responses for RMonkey don't give the right result","user":{"login":"LoesClephas","id":10707424,"avatar_url":"https://avatars.githubusercontent.com/u/10707424?v=3","gravatar_id":"","url":"https://api.github.com/users/LoesClephas","html_url":"https://github.com/LoesClephas","followers_url":"https://api.github.com/users/LoesClephas/followers","following_url":"https://api.github.com/users/LoesClephas/following{/other_user}","gists_url":"https://api.github.com/users/LoesClephas/gists{/gist_id}","starred_url":"https://api.github.com/users/LoesClephas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LoesClephas/subscriptions","organizations_url":"https://api.github.com/users/LoesClephas/orgs","repos_url":"https://api.github.com/users/LoesClephas/repos","events_url":"https://api.github.com/users/LoesClephas/events{/privacy}","received_events_url":"https://api.github.com/users/LoesClephas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2015-01-26T11:20:08Z","updated_at":"2015-02-19T19:54:24Z","closed_at":null,"body":"I logged in by smlogin and wrote the following code hereafter... I only want results from the first survey and the first three respondents: \r\n\r\ns <- surveylist() \r\n\r\ns1 <- as.character(s[[1]])\r\n\r\nr <- respondentlist(s1)\r\nr1 <- as.character(r[[1]])\r\nr2 <- as.character(r[[2]])\r\nr3 <- as.character(r[[3]])\r\n\r\nr <- as.array(c(r1,r2, r3))\r\n\r\nz <- getresponses(r, s1)\r\nz\r\n\r\nconsole spits out the following: \r\n\r\n[[1]]\r\nResponent ID: 3715806829 \r\n\r\n[[2]]\r\nResponent ID: 3715806096 \r\n\r\n[[3]]\r\nResponent ID: 3715804951 \r\n\r\nattr(,\"class\")\r\n[1] \"sm_response_list\"\r\n\r\n\r\n\r\nwhereas it should spit out something like (according to API console, response body): \r\n\r\n{\r\n  \"status\": 0,\r\n  \"data\": [\r\n    {\r\n      \"respondent_id\": \"3715806829\",\r\n      \"questions\": [\r\n        {\r\n          \"answers\": [\r\n            {\r\n              \"text\": \"49\",\r\n              \"row\": \"0\"\r\n            }\r\n          ],\r\n          \"question_id\": \"754179130\"\r\n        }\r\n      ]\r\n    },\r\n    {\r\n      \"respondent_id\": \"3715806096\",\r\n      \"questions\": [\r\n        {\r\n          \"answers\": [\r\n            {\r\n              \"text\": \"28\",\r\n              \"row\": \"0\"\r\n            }\r\n          ],\r\n          \"question_id\": \"754179130\"\r\n        }\r\n      ]\r\n    },\r\n    {\r\n      \"respondent_id\": \"3715804951\",\r\n      \"questions\": [\r\n        {\r\n          \"answers\": [\r\n            {\r\n              \"text\": \"43\",\r\n              \"row\": \"0\"\r\n            }\r\n          ],\r\n          \"question_id\": \"754179130\"\r\n        }\r\n      ]\r\n    }\r\n  ]\r\n}\r\n\r\n\r\nCan anybody help me? \r\n"},"comment":{"url":"https://api.github.com/repos/leeper/Rmonkey/issues/comments/75123576","html_url":"https://github.com/leeper/Rmonkey/issues/3#issuecomment-75123576","issue_url":"https://api.github.com/repos/leeper/Rmonkey/issues/3","id":75123576,"user":{"login":"dnchari","id":6037028,"avatar_url":"https://avatars.githubusercontent.com/u/6037028?v=3","gravatar_id":"","url":"https://api.github.com/users/dnchari","html_url":"https://github.com/dnchari","followers_url":"https://api.github.com/users/dnchari/followers","following_url":"https://api.github.com/users/dnchari/following{/other_user}","gists_url":"https://api.github.com/users/dnchari/gists{/gist_id}","starred_url":"https://api.github.com/users/dnchari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dnchari/subscriptions","organizations_url":"https://api.github.com/users/dnchari/orgs","repos_url":"https://api.github.com/users/dnchari/repos","events_url":"https://api.github.com/users/dnchari/events{/privacy}","received_events_url":"https://api.github.com/users/dnchari/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T19:54:24Z","updated_at":"2015-02-19T19:54:24Z","body":"Yes, that gives the list. How can I select one survey based on the survey name. I only can see survey ID when I look at surveylist().\n\nSent from my iPhone\n\n> On Feb 19, 2015, at 11:01 AM, Thomas J. Leeper <notifications@github.com> wrote:\n> \n> @dnchari Use the surveylist() function to get a list of all of your surveys.\n> \n> —\n> Reply to this email directly or view it on GitHub.\n> \n"}}