本文整理汇总了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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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));
}
示例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));
}
示例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));
}
示例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()) }));
}
示例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()) }));
}
示例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()) }));
}