public String getFriends(String streamId, long userId) throws IOException, ControlStreamException {
return getFriends(streamId, userId, 0);
}
public String getFriends(String streamId, long userId, int cursor) throws IOException, ControlStreamException {
Endpoint endpoint = SitestreamEndpoint.friendsEndpoint(streamId);
endpoint.addPostParameter(Constants.USER_ID_PARAM, Long.toString(userId));
endpoint.addPostParameter(Constants.CURSOR_PARAM, Integer.toString(cursor));
HttpUriRequest request = HttpConstants.constructRequest(hosts.nextHost(), endpoint, auth);
HttpResponse response = makeControlStreamRequest(request);
return consumeHttpEntityContent(response);
}