Package

Source Code of TestGetInfo

import java.io.IOException;

import com.qq.open.common.json.JSONException;
import com.qq.open.weibo.WeiBoGetInfo;
import com.qq.open.weibo.bean.param.WeiBoGetInfoParamBean;
import com.qq.open.weibo.bean.result.WeiBoGetInfoResultBean;


public class TestGetInfo {

  /**
   * @param args
   * @throws JSONException
   * @throws IOException
   */
  public static void main(String[] args) throws JSONException, IOException {
    // TODO Auto-generated method stub

    WeiBoGetInfoParamBean paramBean = new WeiBoGetInfoParamBean();
   
    paramBean.setAccessToken("138F0112CC9B350B8AE00899CB47D489");
   
    paramBean.setOpenId("2D78AAACEAF41021180BEAA2A47871B8");
   
   
    WeiBoGetInfo getInfo = new WeiBoGetInfo();
   
    WeiBoGetInfoResultBean resultBean = getInfo.getInfo(paramBean);
   
    if (resultBean.getErrorFlg()) {
      System.out.println("Error!!");
    } else {
      System.out.println("Success!!");
    }
    System.exit(0);
  }

}
TOP

Related Classes of TestGetInfo

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.