Package com.google.code.stackexchange.client.query

Examples of com.google.code.stackexchange.client.query.StackExchangeApiQueryFactory


        if(line.hasOption(HELP_OPTION)) {
            printHelp(options);           
        } else if(line.hasOption(APPLICATION_KEY_OPTION)) {
        final String keyValue = line.getOptionValue(APPLICATION_KEY_OPTION);
       
        final StackExchangeApiQueryFactory factory = StackExchangeApiQueryFactory.newInstance(keyValue);
        final QuestionApiQuery query = factory.newQuestionApiQuery();
       
      List<Question> questions = query.withFetchOptions(EnumSet.of(FilterOption.INCLUDE_BODY, FilterOption.INCLUDE_COMMENTS)).withSort(Question.SortOrder.HOT).list();
      for (Question question : questions) {
        printResult(question);
      }
View Full Code Here


        if(line.hasOption(HELP_OPTION)) {
            printHelp(options);
        } else if(line.hasOption(APPLICATION_KEY_OPTION)) {
        final String keyValue = line.getOptionValue(APPLICATION_KEY_OPTION);
       
        StackExchangeApiQueryFactory factory = StackExchangeApiQueryFactory.newInstance(keyValue);
        StackAuthApiQuery query = factory.newStackAuthApiQuery();
        List<Site> sites = query.list();
        printResult(sites);
       
        } else {
            printHelp(options);
View Full Code Here

TOP

Related Classes of com.google.code.stackexchange.client.query.StackExchangeApiQueryFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.