Package com.appspot.piment.api.sina

Examples of com.appspot.piment.api.sina.SinaAuthApi


    TqqAuthApi tqqOAuth = new TqqAuthApi();
    authToken = tqqOAuth.requestToken();
    authURL = configItemDao.getValue("qq.authorize.url") + "?oauth_token=" + authToken.getToken();
    break;
    case Sina:
    SinaAuthApi sinaOAuth = new SinaAuthApi();
    authToken = sinaOAuth.requestToken();
    authURL = configItemDao.getValue("sina.authorize.url") + "?oauth_token=" + authToken.getToken();
    break;
    default:
    break;
    }
View Full Code Here


    String oauth_verifier = req.getParameter("oauth_verifier");

    AuthToken authToken = this.authTokenDao.getByToken(oauth_token);
    switch (source) {
    case Sina:
    SinaAuthApi sinaOAuth = new SinaAuthApi(authToken);
    authToken = sinaOAuth.exchangeToken(oauth_verifier);
    break;
    case Tqq:
    TqqAuthApi tqqOAuth = new TqqAuthApi(authToken);
    authToken = tqqOAuth.exchangeToken(oauth_verifier);
    break;
View Full Code Here

TOP

Related Classes of com.appspot.piment.api.sina.SinaAuthApi

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.