import java.io.IOException;
import com.qq.open.common.json.JSONException;
import com.qq.open.weibo.WeiBoAddPicT;
import com.qq.open.weibo.bean.param.WeiBoAddPicTParamBean;
import com.qq.open.weibo.bean.result.WeiBoAddPicTResultBean;
public class TestAddPicT {
/**
* @param args
* @throws JSONException
* @throws IOException
*/
public static void main(String[] args) throws IOException, JSONException {
WeiBoAddPicTParamBean paramBean = new WeiBoAddPicTParamBean();
paramBean.setAccessToken("138F0112CC9B350B8AE00899CB47D489");
paramBean.setOpenId("2D78AAACEAF41021180BEAA2A47871B8");
paramBean.setContent("只属于我们的回忆之游戏机! for JavaSDK2.0");
paramBean.setPicPath("D:/Users/Pictures/80后/1504846_550x550_0.jpg");
paramBean.setClientIp("116.3.11.0");
paramBean.setLongitude("38.89103282648846");
paramBean.setLatitude("121.640625");
WeiBoAddPicT addPicT = new WeiBoAddPicT();
WeiBoAddPicTResultBean resultBean = addPicT.addPicT(paramBean);
System.out.println(resultBean.getAddWeiBoId());
System.exit(0);
}
}