Package com.dongxuexidu.douban4j.utils

Examples of com.dongxuexidu.douban4j.utils.HttpManager


      params.put("client_id", this.apiKey);
      params.put("client_secret", this.secretKey);
      params.put("redirect_uri", DefaultConfigs.ACCESS_TOKEN_REDIRECT_URL);
      params.put("grant_type", "authorization_code");
      params.put("code", code);
      String responseStr = new HttpManager().postEncodedEntry(DefaultConfigs.ACCESS_TOKEN_URL, params, false);
      return Converters.stringToAccessToken(responseStr);
    } catch (UnsupportedEncodingException ex) {
      throw ErrorHandler.getCustomDoubanException(100, "Exception in trading access token : " + ex.toString());
    } catch (IOException ex) {
      throw ErrorHandler.getCustomDoubanException(100, "Exception in trading access token : " + ex.toString());
View Full Code Here


public abstract class DoubanService {
 
  protected HttpManager client = null;
 
  protected DoubanService () {
    this.client = new HttpManager();
  }
View Full Code Here

  protected DoubanService () {
    this.client = new HttpManager();
  }
 
  protected DoubanService (String accessToken) {
    this.client = new HttpManager(accessToken);
  }
View Full Code Here

TOP

Related Classes of com.dongxuexidu.douban4j.utils.HttpManager

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.