|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.simpleyql.ApiFactory
public class ApiFactory
Builds the objects used to authorize users and call the Yahoo! API
Constructor Summary | |
---|---|
ApiFactory()
|
Method Summary | |
---|---|
static Api |
getApiInstance(java.lang.String consumerKey,
java.lang.String consumerSecret,
java.lang.String servleturl,
boolean resultsAsJson,
HttpClient httpclient)
Retrieves an object that can be used to call the API. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ApiFactory()
Method Detail |
---|
public static Api getApiInstance(java.lang.String consumerKey, java.lang.String consumerSecret, java.lang.String servleturl, boolean resultsAsJson, HttpClient httpclient)
consumerKey
- Information obtained when you register your application on
YahooconsumerSecret
- Information obtained when you register your application on
Yahooservleturl
- URL that the CallBackServlet
is mapped to.resultsAsJson
- If true
, API calls will return their results as
JSON, otherwise they will return XML.httpclient
- Object that will do the back-end communcations with Yahoo. If
null, will auto-create a URLConnectionClient
,
which is fine for most people.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |