Skip to content
Sanjiv Singh edited this page May 26, 2014 · 7 revisions

Introduction

This page describes the API design to support different site.

Details

One parameter can be used to swich to any site.

  • stackoverflow
  • serverfault
  • superuser
  • meta.stackoverflow
  • etc

Use site "stackoverflow"

 StackExchangeApiQueryFactory queryFactory = StackExchangeApiQueryFactory  
                     .newInstance("applicationKey", StackExchangeSite.STACK_OVERFLOW);  

Use site "serverfault"

           StackExchangeApiQueryFactory queryFactory = StackExchangeApiQueryFactory  
                     .newInstance("applicationKey", StackExchangeSite.SERVER_FAULT);  

For list of site supported, visit StackExchangeSite.

.

Clone this wiki locally