新浪微博接口,获取用户粉丝列表

import weibo4j.http.HttpClient;
import weibo4j.http.ImageItem;
import weibo4j.http.Response;
import weibo4j.model.PostParameter;
import weibo4j.model.WeiboException;

/**
	 * 获取用户的粉丝列表
	 */
	public String getSinaWeiboFollwers(String screenName,String accessToken){
		
		HttpClient httpClient = new HttpClient();
		httpClient.setToken(accessToken);
		PostParameter[] params = new PostParameter[]{new PostParameter("screen_name", screenName)};
		String result = "";
		try {
			Response rsp  = httpClient.get(get_followers_url, params);
			result = rsp.getResponseAsString();
		} catch (WeiboException e) {
			System.out.println(e.getMessage());
		}
		
		return result;
		
	}


 
  

你可能感兴趣的:(新浪微博,string,import,url)