Last.fm java API - get all members from a group -
i working java api of lastfm.
i want extract users group, belgium. how create new group , extract members?
group mygroup = new group(); paginatedresult<de.umass.lastfm.user> users = mygroup.getmembers("belgium", key);)
it gives me error on first line:
group() has private access.
this bit strange. how should call constructor , don't have pass group name during construction?
thanks insights!
you correct group has private constructor, , cannot use it.
looking @ source code method called
public static paginatedresult<user> getmembers(string group, int page, string apikey)
in de.umass.lastfm.group lets users, , static, can access without creating group object first.
do like
paginatedresult<de.umass.lastfm.user> users = group.getmembers("belgium", key);
Comments
Post a Comment