Examples of QQHttpCookie


Examples of iqq.im.http.QQHttpCookie

  /** {@inheritDoc} */
  @Override
  public QQHttpRequest onBuildRequest() throws QQException, JSONException {
        HttpService httpService = (HttpService) getContext().getSerivce(QQService.Type.HTTP);
        QQHttpCookie ptwebqq = httpService.getCookie("ptwebqq", QQConstants.URL_GET_USER_CATEGORIES);
    QQSession session = getContext().getSession();
        QQAccount account = getContext().getAccount();

    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());

View Full Code Here

Examples of iqq.im.http.QQHttpCookie

  @Override
  public QQHttpRequest onBuildRequest() throws QQException, JSONException {
    QQSession session = getContext().getSession();
    QQAccount account = getContext().getAccount();
    HttpService httpService = (HttpService) getContext().getSerivce(QQService.Type.HTTP);
    QQHttpCookie ptwebqq = httpService.getCookie("ptwebqq", QQConstants.URL_GET_USER_CATEGORIES);
   
    JSONObject json = new JSONObject();
    json.put("h", "hello");
    json.put("vfwebqq", session.getVfwebqq()); // 同上
    json.put("hash", QQEncryptor.hash(account.getUin() + "", ptwebqq.getValue()));

    QQHttpRequest req = createHttpRequest("POST",
        QQConstants.URL_GET_USER_CATEGORIES);
    req.addPostValue("r", json.toString());
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.