本文整理了Java中twitter4j.Twitter.getRetweetsOfMe()
方法的一些代码示例,展示了Twitter.getRetweetsOfMe()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Twitter.getRetweetsOfMe()
方法的具体详情如下:
包路径:twitter4j.Twitter
类名称:Twitter
方法名:getRetweetsOfMe
[英]Returns the 20 most recent tweets of the authenticated user that have been retweeted by others.
This method calls http://twitter.com/statuses/retweets_of_me
[中]返回已通过身份验证的用户最近20条推文,这些推文已被他人转发。
此方法调用http://twitter.com/statuses/retweets_of_me
代码示例来源:origin: org.apache.camel/camel-twitter
@Override
protected List<Status> doDirect() throws TwitterException {
log.trace("doDirect.getRetweetsOfMe(");
return getTwitter().getRetweetsOfMe();
}
}
代码示例来源:origin: org.twitter4j/twitter4j-async
@Override
public void invoke(List<TwitterListener> listeners) throws TwitterException {
ResponseList<Status> statuses = twitter.getRetweetsOfMe(paging);
for (TwitterListener listener : listeners) {
try {
listener.gotRetweetsOfMe(statuses);
} catch (Exception e) {
logger.warn("Exception at getRetweetsOfMe", e);
}
}
}
});
代码示例来源:origin: org.twitter4j/twitter4j-async
@Override
public void invoke(List<TwitterListener> listeners) throws TwitterException {
ResponseList<Status> statuses = twitter.getRetweetsOfMe();
for (TwitterListener listener : listeners) {
try {
listener.gotRetweetsOfMe(statuses);
} catch (Exception e) {
logger.warn("Exception at getRwtweetsOfMe", e);
}
}
}
});
代码示例来源:origin: org.apache.camel/camel-twitter
@Override
protected List<Status> doPoll() throws TwitterException {
Paging paging = getLastIdPaging();
log.trace("doPoll.getRetweetsOfMe(sinceId={})", paging.getSinceId());
return getTwitter().getRetweetsOfMe(paging);
}
代码示例来源:origin: org.mule.modules/mule-module-twitter
/**
* Returns the 20 most recent tweets of the authenticated user that have been
* retweeted by others. <br>
* This method calls http://api.twitter.com/1.1/statuses/retweets_of_me
* <p/>
* {@sample.xml ../../../doc/twitter-connector.xml.sample twitter:getRetweetsOfMe}
*
* @param page Specifies the page of results to retrieve.
* @param count Specifies the number of tweets to try and retrieve, up to a maximum of 200. The value of count is
* best thought of as a limit to the number of tweets to return because suspended or deleted content is removed
* after the count has been applied.
* @param sinceId Returns results with an ID greater than (that is, more recent than) the specified ID. There are
* limits to the number of Tweets which can be accessed through the API. If the limit of Tweets has occured since
* the since_id, the since_id will be forced to the oldest ID available.
* @return the 20 most recent tweets ({@link Status})of the authenticated user that have been retweeted by others.
* @throws TwitterException when Twitter service or network is unavailable
* @see <a href="http://dev.twitter.com/doc/get/statuses/retweets_of_me">GET
* statuses/retweets_of_me | dev.twitter.com</a>
*/
@Processor
public ResponseList<Status> getRetweetsOfMe(@Placement(group = "Pagination") @Default(value = "1") int page,
@Placement(group = "Pagination") @Default(value = "20") int count,
@Placement(group = "Pagination") @Default(value = "-1") long sinceId)
throws TwitterException {
return getConnectionManagement().getTwitterClient().getRetweetsOfMe(getPaging(page, count, sinceId));
}
内容来源于网络,如有侵权,请联系作者删除!