Package iqq.im.http

Examples of iqq.im.http.QQHttpRequest


   * @see iqq.im.action.AbstractHttpAction#onBuildRequest()
   */
  /** {@inheritDoc} */
  @Override
  protected QQHttpRequest onBuildRequest() throws QQException, JSONException {
    QQHttpRequest req = createHttpRequest("GET", QQConstants.URL_SEND_INPUT_NOTIFY);
    QQSession session  = getContext().getSession();
    req.addGetValue("clientid", session.getClientId() + "");
    req.addGetValue("to_uin", user.getUin() + "");
    req.addGetValue("t", DateUtils.nowTimestamp() + "");
    req.addGetValue("psessionid", session.getSessionId());
    return req;
  }
View Full Code Here


  @Override
  protected QQHttpRequest onBuildRequest() throws QQException, JSONException {

    QQSession session = getContext().getSession();

    QQHttpRequest req = createHttpRequest("POST", QQConstants.URL_UPLOAD_CUSTOM_FACE);
    req.addGetValue("time", System.currentTimeMillis() / 1000 + "");
    req.addPostValue("from", "control");
    req.addPostValue("f", "EQQ.Model.ChatMsg.callbackSendPicGroup");
    req.addPostValue("vfwebqq", session.getVfwebqq());
    req.addPostValue("fileid", getContext().getStore().getPicItemListSize() + "");
    req.addPostFile("custom_face", file);

    return req;
  }
View Full Code Here

    json.put("ptwebqq", httpService.getCookie("ptwebqq",  QQConstants.URL_CHANNEL_LOGIN).getValue());
    json.put("passwd_sig", "");
    json.put("clientid", session.getClientId());
    json.put("psessionid", session.getSessionId());
   
    QQHttpRequest req = createHttpRequest("POST", QQConstants.URL_CHANNEL_LOGIN);
    req.addPostValue("r", json.toString());
    req.addPostValue("clientid", session.getClientId()+"");
    req.addPostValue("psessionid", session.getSessionId());
   
    req.addHeader("Referer", QQConstants.REFFER);
    return req;
  }
View Full Code Here

 
  /** {@inheritDoc} */
  @Override
  protected QQHttpRequest onBuildRequest() throws QQException, JSONException {
    QQSession session = getContext().getSession();
    QQHttpRequest req = createHttpRequest("GET",
        QQConstants.URL_SEARCH_GROUP_INFO);
   
    //我不知道以下4个参数干啥?但是一致! 
    req.addGetValue("c1", "0");
    req.addGetValue("c2", "0");
    req.addGetValue("c3", "0");
    req.addGetValue("st", "0");
   
   
    req.addGetValue("pg", buddy.getCurrentPage() + "");
    req.addGetValue("perpage", buddy.getPageSize() + "");
    req.addGetValue("all", buddy.getKeyStr());
   
   
    req.addGetValue("vfwebqq", session.getVfwebqq());
    req.addGetValue("t", System.currentTimeMillis() / 1000 + "");
    req.addGetValue("type", 1 + "");
    req.addGetValue("vfcode", "");   
   
    return req;   
  }
View Full Code Here

    JSONObject json = new JSONObject();
    json.put("vfwebqq", session.getVfwebqq());
        json.put("hash", QQEncryptor.hash(account.getUin() + "", ptwebqq.getValue()));

    QQHttpRequest req = createHttpRequest("POST",
        QQConstants.URL_GET_GROUP_NAME_LIST);
    req.addPostValue("r", json.toString());

    req.addHeader("Referer", QQConstants.REFFER);

    return req;
  }
View Full Code Here

  /** {@inheritDoc} */
  @Override
  protected QQHttpRequest onBuildRequest() throws QQException, JSONException {
    QQSession session = getContext().getSession();
    // tuin=4245757755&verifysession=&type=1&code=&vfwebqq=**&t=1361631644492
    QQHttpRequest req = createHttpRequest("GET",
        QQConstants.URL_GET_USER_ACCOUNT);
    req.addGetValue("tuin", buddy.getUin() + "");
    req.addGetValue("vfwebqq", session.getVfwebqq());
    req.addGetValue("t", System.currentTimeMillis() / 1000 + "");
    req.addGetValue("verifysession", ""); // 验证码??
    req.addGetValue("type", 1 + "");
    req.addGetValue("code", "");

    req.addHeader("Referer", QQConstants.REFFER);
    return req;
  }
View Full Code Here

  /** {@inheritDoc} */
  @Override
  protected QQHttpRequest onBuildRequest() throws QQException, JSONException {
    QQSession session = getContext().getSession();

    QQHttpRequest req = createHttpRequest("GET",
        QQConstants.URL_CUSTOM_FACE_SIG);
    req.addGetValue("clientid", session.getClientId() + "");
    req.addGetValue("psessionid", session.getSessionId());
    req.addGetValue("t", System.currentTimeMillis() / 1000 + "");

    req.addHeader("Referer", QQConstants.REFFER);
    return req;
  }
View Full Code Here

  }

  /** {@inheritDoc} */
  @Override
  protected QQHttpRequest onBuildRequest() throws QQException, JSONException {
    QQHttpRequest req = createHttpRequest("GET", QQConstants.URL_GET_USER_LEVEL);
    QQSession session  = getContext().getSession();
    req.addGetValue("tuin", user.getUin() + "");
    req.addGetValue("t", DateUtils.nowTimestamp() + "");
    req.addGetValue("vfwebqq", session.getVfwebqq());
    return req;
  }
View Full Code Here

    }
  }
  /** {@inheritDoc} */
  @Override
  protected QQHttpRequest onBuildRequest() throws QQException, JSONException {
    QQHttpRequest req = createHttpRequest("GET", QQConstants.URL_GET_CAPTCHA);
    req.addGetValue("aid", QQConstants.APPID);
    req.addGetValue("r", Math.random() + "");
    req.addGetValue("uin", uin + "");
    return req;
  }
View Full Code Here

    JSONObject json = new JSONObject();
    json.put("vfwebqq", session.getVfwebqq());
    json.put("clientid", session.getClientId());
    json.put("psessionid", session.getSessionId());
   
    QQHttpRequest req = createHttpRequest("POST", QQConstants.URL_GET_RECENT_LIST);
    req.addPostValue("r", json.toString());
    req.addPostValue("clientid", session.getClientId()+"");
    req.addPostValue("psessionid", session.getSessionId());

    return req;
  }
View Full Code Here

TOP

Related Classes of iqq.im.http.QQHttpRequest

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.