当前位置: 首页>>代码示例>>Java>>正文


Java Trends类代码示例

本文整理汇总了Java中weibo4j.model.Trends的典型用法代码示例。如果您正苦于以下问题:Java Trends类的具体用法?Java Trends怎么用?Java Trends使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Trends类属于weibo4j.model包,在下文中一共展示了Trends类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: main

import weibo4j.model.Trends; //导入依赖的package包/类
public static void main(String[] args) {
	String access_token = args[0];
	Trend tm = new Trend(access_token);
	try {
		List<Trends> trends = tm.getTrendsWeekly();
		for(Trends ts : trends){
			Log.logInfo(ts.toString());
		}
	} catch (WeiboException e) {
		e.printStackTrace();
	}
}
 
开发者ID:seagrape,项目名称:kekoa,代码行数:13,代码来源:GetTrendsWeekly.java

示例2: main

import weibo4j.model.Trends; //导入依赖的package包/类
public static void main(String[] args) {
	String access_token = args[0];
	Trend tm = new Trend(access_token);
	try {
		List<Trends> trends = tm.getTrendsDaily();
		for(Trends ts : trends){
			Log.logInfo(ts.toString());
		}
	} catch (WeiboException e) {
		e.printStackTrace();
	}
}
 
开发者ID:seagrape,项目名称:kekoa,代码行数:13,代码来源:GetTrendsDaily.java

示例3: main

import weibo4j.model.Trends; //导入依赖的package包/类
public static void main(String[] args) {
	String access_token = args[0];
	Trend tm = new Trend(access_token);
	try {
		List<Trends> trends = tm.getTrendsHourly();
		for(Trends ts : trends){
			Log.logInfo(ts.toString());
		}
	} catch (WeiboException e) {
		e.printStackTrace();
	}
}
 
开发者ID:seagrape,项目名称:kekoa,代码行数:13,代码来源:GetTrendsHourly.java

示例4: main

import weibo4j.model.Trends; //导入依赖的package包/类
public static void main(String[] args) {
    String access_token = args[0];
    Trend tm = new Trend(access_token);
    try {
        List<Trends> trends = tm.getTrendsWeekly();
        for (Trends ts : trends) {
            Log.logInfo(ts.toString());
        }
    }
    catch (WeiboException e) {
        e.printStackTrace();
    }
}
 
开发者ID:jpbirdy,项目名称:WordsDetection,代码行数:14,代码来源:GetTrendsWeekly.java

示例5: main

import weibo4j.model.Trends; //导入依赖的package包/类
public static void main(String[] args) {
    String access_token = args[0];
    Trend tm = new Trend(access_token);
    try {
        List<Trends> trends = tm.getTrendsDaily();
        for (Trends ts : trends) {
            Log.logInfo(ts.toString());
        }
    }
    catch (WeiboException e) {
        e.printStackTrace();
    }
}
 
开发者ID:jpbirdy,项目名称:WordsDetection,代码行数:14,代码来源:GetTrendsDaily.java

示例6: main

import weibo4j.model.Trends; //导入依赖的package包/类
public static void main(String[] args) {
    String access_token = args[0];
    Trend tm = new Trend(access_token);
    try {
        List<Trends> trends = tm.getTrendsHourly();
        for (Trends ts : trends) {
            Log.logInfo(ts.toString());
        }
    }
    catch (WeiboException e) {
        e.printStackTrace();
    }
}
 
开发者ID:jpbirdy,项目名称:WordsDetection,代码行数:14,代码来源:GetTrendsHourly.java

示例7: main

import weibo4j.model.Trends; //导入依赖的package包/类
public static void main(String[] args) {
	String access_token =args[0];
	Trend tm = new Trend();
	tm.client.setToken(access_token);
	List<Trends> trends = null;
	try {
		trends = tm.getTrendsWeekly();
		for(Trends ts : trends){
			Log.logInfo(ts.toString());
		}
	} catch (WeiboException e) {
		e.printStackTrace();
	}

}
 
开发者ID:chenhui5416,项目名称:sinaWeiboAutoReply,代码行数:16,代码来源:GetTrendsWeekly.java

示例8: main

import weibo4j.model.Trends; //导入依赖的package包/类
public static void main(String[] args) {
	String access_token = args[0];
	Trend tm = new Trend();
	tm.client.setToken(access_token);
	List<Trends> trends = null;
	try {
		trends = tm.getTrendsDaily();
		for(Trends ts : trends){
			Log.logInfo(ts.toString());
		}
	} catch (WeiboException e) {
		e.printStackTrace();
	}
}
 
开发者ID:chenhui5416,项目名称:sinaWeiboAutoReply,代码行数:15,代码来源:GetTrendsDaily.java

示例9: main

import weibo4j.model.Trends; //导入依赖的package包/类
public static void main(String[] args) {
	String access_token = args[0];
	Trend tm = new Trend();
	tm.client.setToken(access_token);
	List<Trends> trends = null;
	try {
		trends = tm.getTrendsHourly();
		for(Trends ts : trends){
			Log.logInfo(ts.toString());
		}
	} catch (WeiboException e) {
		e.printStackTrace();
	}
}
 
开发者ID:chenhui5416,项目名称:sinaWeiboAutoReply,代码行数:15,代码来源:GetTrendsHourly.java

示例10: getTrendsHourly

import weibo4j.model.Trends; //导入依赖的package包/类
public List<Trends> getTrendsHourly(Integer base_app) throws WeiboException {
	return Trends.constructTrendsList(client.get(
			WeiboConfig.getValue("baseURL") + "trends/hourly.json",
			new PostParameter[] { new PostParameter("base_app", base_app
					.toString()) }, access_token));
}
 
开发者ID:seagrape,项目名称:kekoa,代码行数:7,代码来源:Trend.java

示例11: getTrendsDaily

import weibo4j.model.Trends; //导入依赖的package包/类
public List<Trends> getTrendsDaily(Integer base_app) throws WeiboException {
	return Trends.constructTrendsList(client.get(
			WeiboConfig.getValue("baseURL") + "trends/daily.json",
			new PostParameter[] { new PostParameter("base_app", base_app
					.toString()) }, access_token));
}
 
开发者ID:seagrape,项目名称:kekoa,代码行数:7,代码来源:Trend.java

示例12: getTrendsWeekly

import weibo4j.model.Trends; //导入依赖的package包/类
public List<Trends> getTrendsWeekly(Integer base_app) throws WeiboException {
	return Trends.constructTrendsList(client.get(
			WeiboConfig.getValue("baseURL") + "trends/weekly.json",
			new PostParameter[] { new PostParameter("base_app", base_app
					.toString()) }, access_token));
}
 
开发者ID:seagrape,项目名称:kekoa,代码行数:7,代码来源:Trend.java

示例13: getTrendsHourly

import weibo4j.model.Trends; //导入依赖的package包/类
public List<Trends> getTrendsHourly(Integer base_app) throws WeiboException {
	return Trends.constructTrendsList(client.get(
			WeiboConfig.getValue("baseURL") + "trends/hourly.json",
			new PostParameter[] { new PostParameter("base_app", base_app.toString()) }));
}
 
开发者ID:chenhui5416,项目名称:sinaWeiboAutoReply,代码行数:6,代码来源:Trend.java

示例14: getTrendsDaily

import weibo4j.model.Trends; //导入依赖的package包/类
public List<Trends> getTrendsDaily(Integer base_app) throws WeiboException {
	return Trends.constructTrendsList(client.get(
			WeiboConfig.getValue("baseURL") + "trends/daily.json",
			new PostParameter[] { new PostParameter("base_app", base_app
					.toString()) }));
}
 
开发者ID:chenhui5416,项目名称:sinaWeiboAutoReply,代码行数:7,代码来源:Trend.java

示例15: getTrendsWeekly

import weibo4j.model.Trends; //导入依赖的package包/类
public List<Trends> getTrendsWeekly(Integer base_app) throws WeiboException {
	return Trends.constructTrendsList(client.get(
			WeiboConfig.getValue("baseURL") + "trends/weekly.json",
			new PostParameter[] { new PostParameter("base_app", base_app.toString()) }));
}
 
开发者ID:chenhui5416,项目名称:sinaWeiboAutoReply,代码行数:6,代码来源:Trend.java


注:本文中的weibo4j.model.Trends类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。