Package com.qq.open.common

Examples of com.qq.open.common.OpenQqUtils.doGet()


   
    // QQ互联工具类
    OpenQqUtils oqu = new OpenQqUtils();
   
    // 获取接口返回的数据
    String interfaceData = oqu.doGet(this.getUserInfoUrl(paramBean));
   
    return this.jsonToBean(interfaceData);
  }
 
 
View Full Code Here


   
    // 接受返回的字符串 包含accessToken
    String tempStr = "";
   
    // 请求QQ接口,回去返回数据
    tempStr = oqu.doGet(accessTokenUrl);
   
    // 获取accessToken失败的场合
    if (tempStr.indexOf("access_token") >= 0) {
      accessToken = tempStr.split("&")[0].split("=")[1];
      log.info("access_token:" + accessToken);
View Full Code Here

   
    // QQ互联工具类
    OpenQqUtils oqu = new OpenQqUtils();
   
    // 请求QQ接口,回去返回数据
    String interfaceData = oqu.doGet(this.getOpenIdUrl(accessToken));
   
    // 接口返回的数据json
    JSONObject jsonObjRoot;
    try {
      // 去掉多余的字符串
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.