Skip to main content
Commonmark migration
Source Link

I have released a beta snapshot version of a Java wrapper for the Stack Overflow API at http://code.google.com/p/stackoverflow-java-sdk/. Please try it and provide your feedback.

Screenshot / Code Snippet

##Screenshot / Code Snippet ThereThere are two different interfaces to the API. One is the query API which has a Builder like syntax.

    StackExchangeApiQueryFactory queryFactory = StackExchangeApiQueryFactory.newInstance("applicationKey");
    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();

The other is a simple facade which exposes all the methods of the API.

    StackExchangeApiClientFactory factory = StackExchangeApiClientFactory.newInstance("applicationKey");
    StackExchangeApiClient client = factory.createStackOverflowApiClient();
    List<Question> questions = client.getQuestions(Question.SortOrder.HOT, new Paging(1, 20), new TimePeriod(new Date(), new Date()), EnumSet.of(FilterOption.INCLUDE_BODY, FilterOption.INCLUDE_COMMENTS));

The lists returned by both the methods are instances of PagedList which provide methods to aid in pagination of the result.

Note that, by default, the library uses Stack Overflow as the API provider. You can change that to use any other by:

    query.setApiProvider(new SuperUserApiProvider());
    client.setApiProvider(new SuperUserApiProvider());

The method AND class names somewhat map with the names in the API. In case of confusion, look in the examples directory of the distribution for more examples. I will be updating the Javadoc soon.

##About

About

stackoverflow-java-sdk is an open source library hosted at Google Code. I created this library to be used in an internal project. But it's comprehensive enough to be used by anyone looking to integrate with the API of Stack Overflow or partner sites.

###License

License

stackoverflow-java-sdk is open source with an Apache License 2.0.

###Download

Download

You can download the library from Google Code at http://code.google.com/p/stackoverflow-java-sdk/.

###Platform

Platform

It's supported for any platform on which Java is supported which include Google App Engine and Android.

##Contact

Contact

Any issues can be filed on the Google Code Issue tracking system.

##Code

Code

The library is hosted at Google Code as a Mercurial repository. You can create a clone and get the code and make changes to it.

To contribute to the main repository you will have to create an issue with a pull request with details of your changes.

The library has one dependency on Google GSON which can be downloaded from http://code.google.com/p/google-gson/.

I have released a beta snapshot version of a Java wrapper for the Stack Overflow API at http://code.google.com/p/stackoverflow-java-sdk/. Please try it and provide your feedback.

##Screenshot / Code Snippet There are two different interfaces to the API. One is the query API which has a Builder like syntax.

    StackExchangeApiQueryFactory queryFactory = StackExchangeApiQueryFactory.newInstance("applicationKey");
    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();

The other is a simple facade which exposes all the methods of the API.

    StackExchangeApiClientFactory factory = StackExchangeApiClientFactory.newInstance("applicationKey");
    StackExchangeApiClient client = factory.createStackOverflowApiClient();
    List<Question> questions = client.getQuestions(Question.SortOrder.HOT, new Paging(1, 20), new TimePeriod(new Date(), new Date()), EnumSet.of(FilterOption.INCLUDE_BODY, FilterOption.INCLUDE_COMMENTS));

The lists returned by both the methods are instances of PagedList which provide methods to aid in pagination of the result.

Note that, by default, the library uses Stack Overflow as the API provider. You can change that to use any other by:

    query.setApiProvider(new SuperUserApiProvider());
    client.setApiProvider(new SuperUserApiProvider());

The method AND class names somewhat map with the names in the API. In case of confusion, look in the examples directory of the distribution for more examples. I will be updating the Javadoc soon.

##About

stackoverflow-java-sdk is an open source library hosted at Google Code. I created this library to be used in an internal project. But it's comprehensive enough to be used by anyone looking to integrate with the API of Stack Overflow or partner sites.

###License

stackoverflow-java-sdk is open source with an Apache License 2.0.

###Download

You can download the library from Google Code at http://code.google.com/p/stackoverflow-java-sdk/.

###Platform

It's supported for any platform on which Java is supported which include Google App Engine and Android.

##Contact

Any issues can be filed on the Google Code Issue tracking system.

##Code

The library is hosted at Google Code as a Mercurial repository. You can create a clone and get the code and make changes to it.

To contribute to the main repository you will have to create an issue with a pull request with details of your changes.

The library has one dependency on Google GSON which can be downloaded from http://code.google.com/p/google-gson/.

I have released a beta snapshot version of a Java wrapper for the Stack Overflow API at http://code.google.com/p/stackoverflow-java-sdk/. Please try it and provide your feedback.

Screenshot / Code Snippet

There are two different interfaces to the API. One is the query API which has a Builder like syntax.

    StackExchangeApiQueryFactory queryFactory = StackExchangeApiQueryFactory.newInstance("applicationKey");
    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();

The other is a simple facade which exposes all the methods of the API.

    StackExchangeApiClientFactory factory = StackExchangeApiClientFactory.newInstance("applicationKey");
    StackExchangeApiClient client = factory.createStackOverflowApiClient();
    List<Question> questions = client.getQuestions(Question.SortOrder.HOT, new Paging(1, 20), new TimePeriod(new Date(), new Date()), EnumSet.of(FilterOption.INCLUDE_BODY, FilterOption.INCLUDE_COMMENTS));

The lists returned by both the methods are instances of PagedList which provide methods to aid in pagination of the result.

Note that, by default, the library uses Stack Overflow as the API provider. You can change that to use any other by:

    query.setApiProvider(new SuperUserApiProvider());
    client.setApiProvider(new SuperUserApiProvider());

The method AND class names somewhat map with the names in the API. In case of confusion, look in the examples directory of the distribution for more examples. I will be updating the Javadoc soon.

About

stackoverflow-java-sdk is an open source library hosted at Google Code. I created this library to be used in an internal project. But it's comprehensive enough to be used by anyone looking to integrate with the API of Stack Overflow or partner sites.

License

stackoverflow-java-sdk is open source with an Apache License 2.0.

Download

You can download the library from Google Code at http://code.google.com/p/stackoverflow-java-sdk/.

Platform

It's supported for any platform on which Java is supported which include Google App Engine and Android.

Contact

Any issues can be filed on the Google Code Issue tracking system.

Code

The library is hosted at Google Code as a Mercurial repository. You can create a clone and get the code and make changes to it.

To contribute to the main repository you will have to create an issue with a pull request with details of your changes.

The library has one dependency on Google GSON which can be downloaded from http://code.google.com/p/google-gson/.

Copy edited. Used the official names of sites - see section "Proper Use of the Stack Overflow and Stack Exchange Name" in http://stackoverflow.com/legal/trademark-guidance (the last section). (its = possessive, it's = "it is" or "it has".)
Source Link

stackoverflow-java-sdk: a Java wrapper for StackExchangethe Stack Exchange API

I have released a beta snapshot version of a Java wrapper for StackOverflowthe Stack Overflow API at http://code.google.com/p/stackoverflow-java-sdk/. Please try it and provide your feedback.

##Screenshot / Code Snippet There are two different interfaces to the API. One One is the query API which has a Builder like syntax.

    StackExchangeApiQueryFactory queryFactory = StackExchangeApiQueryFactory.newInstance("applicationKey");
    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();

The other is a simple facade which exposes all the methods of the API.

    StackExchangeApiClientFactory factory = StackExchangeApiClientFactory.newInstance("applicationKey");
    StackExchangeApiClient client = factory.createStackOverflowApiClient();
    List<Question> questions = client.getQuestions(Question.SortOrder.HOT, new Paging(1, 20), new TimePeriod(new Date(), new Date()), EnumSet.of(FilterOption.INCLUDE_BODY, FilterOption.INCLUDE_COMMENTS));

The lists returned by both the methods are instances of PagedList which provide methods to aid in pagination of the result.

Note that, by default, the library uses StackOverflowStack Overflow as the API provider. You can change that to use anyotherany other by.:

    query.setApiProvider(new SuperUserApiProvider());
    client.setApiProvider(new SuperUserApiProvider());
    

The method/class AND class names somewhat map with the names in the API. In case of confusion, look in the examples directory of the distribution for more examples. I will be updating the javadocJavadoc soon.

##About

stackoverflow-java-sdk is an open source library hosted at Google codeGoogle Code. I created this library to be used in an internal project. But itsit's comprehensive enough to be used by anyone looking to integrate with the API of StackOverflowStack Overflow or partner sites.

###License

stackoverflow-java-sdk is open source with an Apache License 2.0.

###Download

You can download the library from Google Code at http://code.google.com/p/stackoverflow-java-sdk/.

###Platform

ItsIt's supported for any platform on which Java is supported which include Google AppEngineGoogle App Engine and Android.

##Contact

Any issues can be filed on the Google Code Issue tracking system. http://code.google.com/p/stackoverflow-java-sdk/issues/listGoogle Code Issue tracking system.

##Code

The library is hosted at Google Code as a mercurialMercurial repository. You can create a clone and get the code and make changes to it. To

To contribute to the main repository you will have to create an issue with a pull request with details of your changes. The

The library has one dependency on Google GSONGoogle GSON which can be downloaded from here http://code.google.com/p/google-gson/.

stackoverflow-java-sdk: Java wrapper for StackExchange API

I have released a beta snapshot version of a Java wrapper for StackOverflow API at http://code.google.com/p/stackoverflow-java-sdk/. Please try it and provide your feedback.

##Screenshot / Code Snippet There are two different interfaces to the API. One is the query API which has a Builder like syntax.

    StackExchangeApiQueryFactory queryFactory = StackExchangeApiQueryFactory.newInstance("applicationKey");
    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();

The other is a simple facade which exposes all the methods of the API.

    StackExchangeApiClientFactory factory = StackExchangeApiClientFactory.newInstance("applicationKey");
    StackExchangeApiClient client = factory.createStackOverflowApiClient();
    List<Question> questions = client.getQuestions(Question.SortOrder.HOT, new Paging(1, 20), new TimePeriod(new Date(), new Date()), EnumSet.of(FilterOption.INCLUDE_BODY, FilterOption.INCLUDE_COMMENTS));

The lists returned by both the methods are instances of PagedList which provide methods to aid in pagination of the result.

Note that by default the library uses StackOverflow as the API provider. You can change that to use anyother by.

    query.setApiProvider(new SuperUserApiProvider());
    client.setApiProvider(new SuperUserApiProvider());
    

The method/class names somewhat map with the names in the API. In case of confusion look in the examples directory of the distribution for more examples. I will be updating the javadoc soon.

##About

stackoverflow-java-sdk is an open source library hosted at Google code. I created this library to be used in an internal project. But its comprehensive enough to be used by anyone looking to integrate with the API of StackOverflow or partner sites.

###License

stackoverflow-java-sdk is open source with an Apache License 2.0.

###Download

You can download the library from Google Code http://code.google.com/p/stackoverflow-java-sdk/.

###Platform

Its supported for any platform on which Java is supported which include Google AppEngine and Android.

##Contact

Any issues can be filed on the Google Code Issue tracking system. http://code.google.com/p/stackoverflow-java-sdk/issues/list

##Code

The library is hosted at Google Code as a mercurial repository. You can create a clone and get the code and make changes to it. To contribute to the main repository you will have to create an issue with a pull request with details of your changes. The library has one dependency on Google GSON which can be downloaded from here http://code.google.com/p/google-gson/.

stackoverflow-java-sdk: a Java wrapper for the Stack Exchange API

I have released a beta snapshot version of a Java wrapper for the Stack Overflow API at http://code.google.com/p/stackoverflow-java-sdk/. Please try it and provide your feedback.

##Screenshot / Code Snippet There are two different interfaces to the API. One is the query API which has a Builder like syntax.

    StackExchangeApiQueryFactory queryFactory = StackExchangeApiQueryFactory.newInstance("applicationKey");
    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();

The other is a simple facade which exposes all the methods of the API.

    StackExchangeApiClientFactory factory = StackExchangeApiClientFactory.newInstance("applicationKey");
    StackExchangeApiClient client = factory.createStackOverflowApiClient();
    List<Question> questions = client.getQuestions(Question.SortOrder.HOT, new Paging(1, 20), new TimePeriod(new Date(), new Date()), EnumSet.of(FilterOption.INCLUDE_BODY, FilterOption.INCLUDE_COMMENTS));

The lists returned by both the methods are instances of PagedList which provide methods to aid in pagination of the result.

Note that, by default, the library uses Stack Overflow as the API provider. You can change that to use any other by:

    query.setApiProvider(new SuperUserApiProvider());
    client.setApiProvider(new SuperUserApiProvider());

The method AND class names somewhat map with the names in the API. In case of confusion, look in the examples directory of the distribution for more examples. I will be updating the Javadoc soon.

##About

stackoverflow-java-sdk is an open source library hosted at Google Code. I created this library to be used in an internal project. But it's comprehensive enough to be used by anyone looking to integrate with the API of Stack Overflow or partner sites.

###License

stackoverflow-java-sdk is open source with an Apache License 2.0.

###Download

You can download the library from Google Code at http://code.google.com/p/stackoverflow-java-sdk/.

###Platform

It's supported for any platform on which Java is supported which include Google App Engine and Android.

##Contact

Any issues can be filed on the Google Code Issue tracking system.

##Code

The library is hosted at Google Code as a Mercurial repository. You can create a clone and get the code and make changes to it.

To contribute to the main repository you will have to create an issue with a pull request with details of your changes.

The library has one dependency on Google GSON which can be downloaded from http://code.google.com/p/google-gson/.

edited body
Source Link
nabeelmukhtar
  • 2.4k
  • 13
  • 7

I have released a beta snapshot version of a Java wrapper for StackOverflow API at http://code.google.com/p/stackoverflow-java-sdk/. Please try it and provide your feedback.

##Screenshot / Code Snippet There are two different interfaces to the API. One is the query API which has a Builder like syntax.

    StackOverflowApiQueryFactoryStackExchangeApiQueryFactory queryFactory = StackOverflowApiQueryFactoryStackExchangeApiQueryFactory.newInstance("applicationKey");
    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();

The other is a simple facade which exposes all the methods of the API.

    StackOverflowApiClientFactoryStackExchangeApiClientFactory factory = StackOverflowApiClientFactoryStackExchangeApiClientFactory.newInstance("applicationKey");
    StackOverflowApiClientStackExchangeApiClient client = factory.createStackOverflowApiClient();
    List<Question> questions = client.getQuestions(Question.SortOrder.HOT, new Paging(1, 20), new TimePeriod(new Date(), new Date()), EnumSet.of(FilterOption.INCLUDE_BODY, FilterOption.INCLUDE_COMMENTS));

The lists returned by both the methods are instances of PagedList which provide methods to aid in pagination of the result.

Note that by default the library uses StackOverflow as the API provider. You can change that to use anyother by.

    query.setApiProvider(new SuperUserApiProvider());
    client.setApiProvider(new SuperUserApiProvider());
    

The method/class names somewhat map with the names in the API. In case of confusion look in the examples directory of the distribution for more examples. I will be updating the javadoc soon.

##About

stackoverflow-java-sdk is an open source library hosted at Google code. I created this library to be used in an internal project. But its comprehensive enough to be used by anyone looking to integrate with the API of StackOverflow or partner sites.

###License

stackoverflow-java-sdk is open source with an Apache License 2.0.

###Download

You can download the library from Google Code http://code.google.com/p/stackoverflow-java-sdk/.

###Platform

Its supported for any platform on which Java is supported which include Google AppEngine and Android.

##Contact

Any issues can be filed on the Google Code Issue tracking system. http://code.google.com/p/stackoverflow-java-sdk/issues/list

##Code

The library is hosted at Google Code as a mercurial repository. You can create a clone and get the code and make changes to it. To contribute to the main repository you will have to create an issue with a pull request with details of your changes. The library has one dependency on Google GSON which can be downloaded from here http://code.google.com/p/google-gson/.

I have released a beta snapshot version of a Java wrapper for StackOverflow API at http://code.google.com/p/stackoverflow-java-sdk/. Please try it and provide your feedback.

##Screenshot / Code Snippet There are two different interfaces to the API. One is the query API which has a Builder like syntax.

    StackOverflowApiQueryFactory queryFactory = StackOverflowApiQueryFactory.newInstance("applicationKey");
    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();

The other is a simple facade which exposes all the methods of the API.

    StackOverflowApiClientFactory factory = StackOverflowApiClientFactory.newInstance("applicationKey");
    StackOverflowApiClient client = factory.createStackOverflowApiClient();
    List<Question> questions = client.getQuestions(Question.SortOrder.HOT, new Paging(1, 20), new TimePeriod(new Date(), new Date()), EnumSet.of(FilterOption.INCLUDE_BODY, FilterOption.INCLUDE_COMMENTS));

The lists returned by both the methods are instances of PagedList which provide methods to aid in pagination of the result.

Note that by default the library uses StackOverflow as the API provider. You can change that to use anyother by.

    query.setApiProvider(new SuperUserApiProvider());
    client.setApiProvider(new SuperUserApiProvider());
    

The method/class names somewhat map with the names in the API. In case of confusion look in the examples directory of the distribution for more examples. I will be updating the javadoc soon.

##About

stackoverflow-java-sdk is an open source library hosted at Google code. I created this library to be used in an internal project. But its comprehensive enough to be used by anyone looking to integrate with the API of StackOverflow or partner sites.

###License

stackoverflow-java-sdk is open source with an Apache License 2.0.

###Download

You can download the library from Google Code http://code.google.com/p/stackoverflow-java-sdk/.

###Platform

Its supported for any platform on which Java is supported which include Google AppEngine and Android.

##Contact

Any issues can be filed on the Google Code Issue tracking system. http://code.google.com/p/stackoverflow-java-sdk/issues/list

##Code

The library is hosted at Google Code as a mercurial repository. You can create a clone and get the code and make changes to it. To contribute to the main repository you will have to create an issue with a pull request with details of your changes. The library has one dependency on Google GSON which can be downloaded from here http://code.google.com/p/google-gson/.

I have released a beta snapshot version of a Java wrapper for StackOverflow API at http://code.google.com/p/stackoverflow-java-sdk/. Please try it and provide your feedback.

##Screenshot / Code Snippet There are two different interfaces to the API. One is the query API which has a Builder like syntax.

    StackExchangeApiQueryFactory queryFactory = StackExchangeApiQueryFactory.newInstance("applicationKey");
    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();

The other is a simple facade which exposes all the methods of the API.

    StackExchangeApiClientFactory factory = StackExchangeApiClientFactory.newInstance("applicationKey");
    StackExchangeApiClient client = factory.createStackOverflowApiClient();
    List<Question> questions = client.getQuestions(Question.SortOrder.HOT, new Paging(1, 20), new TimePeriod(new Date(), new Date()), EnumSet.of(FilterOption.INCLUDE_BODY, FilterOption.INCLUDE_COMMENTS));

The lists returned by both the methods are instances of PagedList which provide methods to aid in pagination of the result.

Note that by default the library uses StackOverflow as the API provider. You can change that to use anyother by.

    query.setApiProvider(new SuperUserApiProvider());
    client.setApiProvider(new SuperUserApiProvider());
    

The method/class names somewhat map with the names in the API. In case of confusion look in the examples directory of the distribution for more examples. I will be updating the javadoc soon.

##About

stackoverflow-java-sdk is an open source library hosted at Google code. I created this library to be used in an internal project. But its comprehensive enough to be used by anyone looking to integrate with the API of StackOverflow or partner sites.

###License

stackoverflow-java-sdk is open source with an Apache License 2.0.

###Download

You can download the library from Google Code http://code.google.com/p/stackoverflow-java-sdk/.

###Platform

Its supported for any platform on which Java is supported which include Google AppEngine and Android.

##Contact

Any issues can be filed on the Google Code Issue tracking system. http://code.google.com/p/stackoverflow-java-sdk/issues/list

##Code

The library is hosted at Google Code as a mercurial repository. You can create a clone and get the code and make changes to it. To contribute to the main repository you will have to create an issue with a pull request with details of your changes. The library has one dependency on Google GSON which can be downloaded from here http://code.google.com/p/google-gson/.

edited body
Source Link
nabeelmukhtar
  • 2.4k
  • 13
  • 7
Loading
edited tags
Link
Sky Sanders
  • 12.1k
  • 3
  • 32
  • 60
Loading
edited title
Link
nabeelmukhtar
  • 2.4k
  • 13
  • 7
Loading
deleted 21 characters in body; edited title
Source Link
nabeelmukhtar
  • 2.4k
  • 13
  • 7
Loading
edited title
Link
Jeff Yates
  • 2.1k
  • 11
  • 3
Loading
Source Link
nabeelmukhtar
  • 2.4k
  • 13
  • 7
Loading