public TopicList<Topic> getTopicsList(String groupId, int perPage, int page) throws FlickrException {
        TopicList<Topic> topicList = new TopicList<Topic>();
        Map<String, Object> parameters = new HashMap<String, Object>();
        parameters.put("method", METHOD_TOPICS_GET_LIST);

        parameters.put("group_id", groupId);

        if (perPage > 0) {
            parameters.put("per_page", "" + perPage);
        }
        if (page > 0) {
            parameters.put("page", "" + page);
        }

        Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret);
        if (response.isError()) {
            throw new FlickrException(response.getErrorCode(), response.getErrorMessage());
        }

        Element topicElements = response.getPayload();
        topicList.setPage(topicElements.getAttribute("page"));
        topicList.setPages(topicElements.getAttribute("pages"));
        topicList.setPerPage(topicElements.getAttribute("perpage"));
        topicList.setTotal(topicElements.getAttribute("total"));
        topicList.setGroupId(topicElements.getAttribute("group_id"));
        topicList.setIconServer(Integer.parseInt(topicElements.getAttribute("iconserver")));
        topicList.setIconFarm(Integer.parseInt(topicElements.getAttribute("iconfarm")));
        topicList.setName(topicElements.getAttribute("name"));
        topicList.setMembers(Integer.parseInt(topicElements.getAttribute("members")));
        topicList.setPrivacy(Integer.parseInt(topicElements.getAttribute("privacy")));
        topicList.setLanguage(topicElements.getAttribute("lang"));
        topicList.setIsPoolModerated("1".equals(topicElements.getAttribute("ispoolmoderated")));

        NodeList topicNodes = topicElements.getElementsByTagName("topic");
        for (int i = 0; i < topicNodes.getLength(); i++) {
            Element element = (Element) topicNodes.item(i);
            topicList.add(parseTopic(element));
        }
        return topicList;
    }
public TopicList < Topic > getTopicsList ( String groupId , int perPage , int page ) throws FlickrException { TopicList < Topic > topicList = new TopicList < Topic > ( ) ; Map < String , Object > parameters = new HashMap < String , Object > ( ) ; parameters . put ( "method" , METHOD_TOPICS_GET_LIST ) ; parameters . put ( "group_id" , groupId ) ; if ( perPage > 0 ) { parameters . put ( "per_page" , "" + perPage ) ; } if ( page > 0 ) { parameters . put ( "page" , "" + page ) ; } Response response = transportAPI . get ( transportAPI . getPath ( ) , parameters , apiKey , sharedSecret ) ; if ( response . isError ( ) ) { throw new FlickrException ( response . getErrorCode ( ) , response . getErrorMessage ( ) ) ; } Element topicElements = response . getPayload ( ) ; topicList . setPage ( topicElements . getAttribute ( "page" ) ) ; topicList . setPages ( topicElements . getAttribute ( "pages" ) ) ; topicList . setPerPage ( topicElements . getAttribute ( "perpage" ) ) ; topicList . setTotal ( topicElements . getAttribute ( "total" ) ) ; topicList . setGroupId ( topicElements . getAttribute ( "group_id" ) ) ; topicList . setIconServer ( Integer . parseInt ( topicElements . getAttribute ( "iconserver" ) ) ) ; topicList . setIconFarm ( Integer . parseInt ( topicElements . getAttribute ( "iconfarm" ) ) ) ; topicList . setName ( topicElements . getAttribute ( "name" ) ) ; topicList . setMembers ( Integer . parseInt ( topicElements . getAttribute ( "members" ) ) ) ; topicList . setPrivacy ( Integer . parseInt ( topicElements . getAttribute ( "privacy" ) ) ) ; topicList . setLanguage ( topicElements . getAttribute ( "lang" ) ) ; topicList . setIsPoolModerated ( "1" . equals ( topicElements . getAttribute ( "ispoolmoderated" ) ) ) ; NodeList topicNodes = topicElements . getElementsByTagName ( "topic" ) ; for ( int i = 0 ; i < topicNodes . getLength ( ) ; i ++ ) { Element element = ( Element ) topicNodes . item ( i ) ; topicList . add ( parseTopic ( element ) ) ; } return topicList ; }
Get a list of topics from a group.

@param groupId
Unique identifier of a group returns a list of topics for a given group {@link Group}.
@param perPage
Number of records per page.
@param page
Result-section.
@return A group topic list
@throws FlickrException
@see <a href="http://www.flickr.com/services/api/flickr.groups.discuss.topics.getList.html">API Documentation</a>