{"action":"closed","issue":{"url":"https://api.github.com/repos/alexanderwe/bananaj/issues/1","repository_url":"https://api.github.com/repos/alexanderwe/bananaj","labels_url":"https://api.github.com/repos/alexanderwe/bananaj/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/alexanderwe/bananaj/issues/1/comments","events_url":"https://api.github.com/repos/alexanderwe/bananaj/issues/1/events","html_url":"https://github.com/alexanderwe/bananaj/issues/1","id":197611141,"number":1,"title":"getMembers returns only first 10 members of list","user":{"login":"lessrand","id":16576120,"avatar_url":"https://avatars.githubusercontent.com/u/16576120?v=3","gravatar_id":"","url":"https://api.github.com/users/lessrand","html_url":"https://github.com/lessrand","followers_url":"https://api.github.com/users/lessrand/followers","following_url":"https://api.github.com/users/lessrand/following{/other_user}","gists_url":"https://api.github.com/users/lessrand/gists{/gist_id}","starred_url":"https://api.github.com/users/lessrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lessrand/subscriptions","organizations_url":"https://api.github.com/users/lessrand/orgs","repos_url":"https://api.github.com/users/lessrand/repos","events_url":"https://api.github.com/users/lessrand/events{/privacy}","received_events_url":"https://api.github.com/users/lessrand/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-26T18:36:14Z","updated_at":"2016-12-26T20:46:10Z","closed_at":"2016-12-26T20:46:10Z","body":"Hello,\r\n\r\nusing the following code, getMembers only returns the first 10 Members (the list has 1500)\r\n\r\nkind regards\r\n\r\nRandolph\r\n\r\n\tpublic static void main(String[] args)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tMailchimpConnection con = new MailchimpConnection(\"xxxxxxxx\");\r\n\t\t\t// Get a single list\r\n\t\t\tMailChimpList myMailchimpList = con.getList(\"xxxxxxxxxx\");\r\n\t\t\tArrayList<Member> membersOfList = myMailchimpList.getMembers();\r\n\t\t\tint count = myMailchimpList.getMembercount();\r\n\t\t\tSystem.err.println(\"List \" + myMailchimpList.getName() + \" has \" + count + \" members. I got \" + membersOfList.size() + \" elements.\");\r\n\r\n\t\t\tfor(int i = 0; i < membersOfList.size(); i++)\r\n\t\t\t{\r\n\t\t\t\t/* You can also get a specific member by specifying it's id */\r\n\t\t\t\tMember memberOfList = membersOfList.get(i);\r\n\t\t\t\tString email = memberOfList.getEmail_address();\r\n\t\t\t\tMemberStatus status = memberOfList.getStatus();\r\n\t\t\t\tSystem.err.println(status.getStringRepresentation() + \":\" + email);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}\r\n"}}
{"actor":{"display_login":"alexanderwe"}}