import java.io.IOException;
import com.qq.open.common.json.JSONException;
import com.qq.open.weibo.WeiBoAddIdol;
import com.qq.open.weibo.bean.param.WeiBoAddIdolParamBean;
import com.qq.open.weibo.bean.result.WeiBoAddIdolResultBean;
public class TestAddIdol {
/**
* @param args
* @throws JSONException
* @throws IOException
*/
public static void main(String[] args) throws JSONException, IOException {
// TODO Auto-generated method stub
WeiBoAddIdolParamBean paramBean = new WeiBoAddIdolParamBean();
paramBean.setAccessToken("138F0112CC9B350B8AE00899CB47D489");
paramBean.setOpenId("2D78AAACEAF41021180BEAA2A47871B8");
paramBean.setName("NokiaChina,ilovethinkpad");
WeiBoAddIdol addIdol = new WeiBoAddIdol();
WeiBoAddIdolResultBean resultBean = addIdol.addIdol(paramBean);
if (resultBean.getErrorFlg()) {
System.out.println("Error!!");
} else {
System.out.println("Success!!");
}
System.exit(0);
}
}