Examples of QqCheckPageFansResultBean


Examples of com.qq.open.qzone.bean.result.QqCheckPageFansResultBean

   
    // 获取接口返回的内容
    String jsonData = oqu.doGet(checkPageFansUrl);
   
    // 认证空间的粉丝返回用
    QqCheckPageFansResultBean resultBean = new QqCheckPageFansResultBean();
   
    // JSON操作类
    JSONObject jsonObj;
   
    try {
      // 获取接口返回的JSON数据
      jsonObj = new JSONObject(jsonData);
   
      if (jsonObj.getInt("ret") == 0) {
        // 错误标识
        resultBean.setErrorFlg(false);
       
        // 认证空间标识
        resultBean.setIsFans(jsonObj.getInt("isfans"));
      } else {
        // 错误标识
        resultBean.setErrorFlg(true);
       
        // 错误编号
        resultBean.setErrorCode(jsonObj.get("ret").toString());
       
        // 错误信息
        resultBean.setErrorMes(jsonObj.getString("msg"));
      }
     
    } catch (JSONException e) {
      e.printStackTrace();
      // 日志
View Full Code Here

Examples of com.qq.open.qzone.bean.result.QqCheckPageFansResultBean

   
    bean.setQzoneQq("123456");
   
    QqCheckPageFans fans = new QqCheckPageFans();
   
    QqCheckPageFansResultBean resultBean = fans.checkPaeFans(bean);
   
    System.out.println("粉丝:" + resultBean.getIsFans());
  }
View Full Code Here

Examples of com.qq.open.qzone.bean.result.QqCheckPageFansResultBean

   
    // 获取接口返回的内容
    String jsonData = oqu.doGet(checkPageFansUrl);
   
    // 认证空间的粉丝返回用
    QqCheckPageFansResultBean resultBean = new QqCheckPageFansResultBean();
   
    // JSON操作类
    JSONObject jsonObj;
   
    try {
      // 获取接口返回的JSON数据
      jsonObj = new JSONObject(jsonData);
   
      if (jsonObj.getInt("ret") == 0) {
        // 错误标识
        resultBean.setErrorFlg(false);
       
        // 认证空间标识
        resultBean.setIsFans(jsonObj.getInt("isfans"));
      } else {
        // 错误标识
        resultBean.setErrorFlg(true);
       
        // 错误编号
        resultBean.setErrorCode(jsonObj.get("ret").toString());
       
        // 错误信息
        resultBean.setErrorMes(jsonObj.getString("msg"));
      }
     
    } catch (JSONException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
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.