Is there a Java wrapper for the current version of Stack Overflow? I have been looking at here and here, but they seem to be outdated for current API version. I keep getting connection refused
when running their example code. I do have an API key.
StackExchangeApiQueryFactory queryFactory = StackExchangeApiQueryFactory.newInstance("MyApplicationKey");
QuestionApiQuery query = queryFactory.newQuestionApiQuery();
List<Question> questions = query.withSort(Question.SortOrder.HOT).withPaging(new Paging(1, 20)).withTimePeriod(new TimePeriod(new Date(), new Date())).withFetchOptions(EnumSet.of(FilterOption.INCLUDE_BODY, FilterOption.INCLUDE_COMMENTS)).list();