|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Api
Allows applications to authorize Yahoo users and make API calls in behalf of them.
Authorizations are done by redirecting the user to Yahoo's page.
Method Summary | |
---|---|
void |
askAuthorization(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String finalUrl)
Redirects the current user to the authorization page. |
QueryResult |
query(java.lang.String yql,
java.lang.String token)
Sends a YQL request to Yahoo |
Method Detail |
---|
void askAuthorization(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String finalUrl) throws java.io.IOException, OAuthException
It will store OAuth bookkeeping information at the request's session.
At the end of the process, the user will be redirected to finalURL, which will recieve the "token" parameter by GET (which should be stored for future use).
java.io.IOException
OAuthException
QueryResult query(java.lang.String yql, java.lang.String token) throws OAuthException, java.io.IOException
yql
- Request formatted as YQL.token
-
java.io.IOException
OAuthException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |