TweetsResources.html 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!-- NewPage -->
  3. <html lang="en">
  4. <head>
  5. <!-- Generated by javadoc (1.8.0_161) on Thu Aug 16 18:54:14 JST 2018 -->
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <title>TweetsResources (twitter4j-core 4.0.7 API)</title>
  8. <meta name="date" content="2018-08-16">
  9. <link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
  10. <script type="text/javascript" src="../../script.js"></script>
  11. </head>
  12. <body>
  13. <script type="text/javascript"><!--
  14. try {
  15. if (location.href.indexOf('is-external=true') == -1) {
  16. parent.document.title="TweetsResources (twitter4j-core 4.0.7 API)";
  17. }
  18. }
  19. catch(err) {
  20. }
  21. //-->
  22. var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6,"i9":6,"i10":6,"i11":6,"i12":6,"i13":6};
  23. var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]};
  24. var altColor = "altColor";
  25. var rowColor = "rowColor";
  26. var tableTab = "tableTab";
  27. var activeTableTab = "activeTableTab";
  28. </script>
  29. <noscript>
  30. <div>JavaScript is disabled on your browser.</div>
  31. </noscript>
  32. <!-- ========= START OF TOP NAVBAR ======= -->
  33. <div class="topNav"><a name="navbar.top">
  34. <!-- -->
  35. </a>
  36. <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
  37. <a name="navbar.top.firstrow">
  38. <!-- -->
  39. </a>
  40. <ul class="navList" title="Navigation">
  41. <li><a href="../../overview-summary.html">Overview</a></li>
  42. <li><a href="package-summary.html">Package</a></li>
  43. <li class="navBarCell1Rev">Class</li>
  44. <li><a href="class-use/TweetsResources.html">Use</a></li>
  45. <li><a href="package-tree.html">Tree</a></li>
  46. <li><a href="../../deprecated-list.html">Deprecated</a></li>
  47. <li><a href="../../index-all.html">Index</a></li>
  48. <li><a href="../../help-doc.html">Help</a></li>
  49. </ul>
  50. </div>
  51. <div class="subNav">
  52. <ul class="navList">
  53. <li><a href="../../twitter4j/api/TrendsResources.html" title="interface in twitter4j.api"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  54. <li><a href="../../twitter4j/api/UsersResources.html" title="interface in twitter4j.api"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  55. </ul>
  56. <ul class="navList">
  57. <li><a href="../../index.html?twitter4j/api/TweetsResources.html" target="_top">Frames</a></li>
  58. <li><a href="TweetsResources.html" target="_top">No&nbsp;Frames</a></li>
  59. </ul>
  60. <ul class="navList" id="allclasses_navbar_top">
  61. <li><a href="../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  62. </ul>
  63. <div>
  64. <script type="text/javascript"><!--
  65. allClassesLink = document.getElementById("allclasses_navbar_top");
  66. if(window==top) {
  67. allClassesLink.style.display = "block";
  68. }
  69. else {
  70. allClassesLink.style.display = "none";
  71. }
  72. //-->
  73. </script>
  74. </div>
  75. <div>
  76. <ul class="subNavList">
  77. <li>Summary:&nbsp;</li>
  78. <li>Nested&nbsp;|&nbsp;</li>
  79. <li>Field&nbsp;|&nbsp;</li>
  80. <li>Constr&nbsp;|&nbsp;</li>
  81. <li><a href="#method.summary">Method</a></li>
  82. </ul>
  83. <ul class="subNavList">
  84. <li>Detail:&nbsp;</li>
  85. <li>Field&nbsp;|&nbsp;</li>
  86. <li>Constr&nbsp;|&nbsp;</li>
  87. <li><a href="#method.detail">Method</a></li>
  88. </ul>
  89. </div>
  90. <a name="skip.navbar.top">
  91. <!-- -->
  92. </a></div>
  93. <!-- ========= END OF TOP NAVBAR ========= -->
  94. <!-- ======== START OF CLASS DATA ======== -->
  95. <div class="header">
  96. <div class="subTitle">twitter4j.api</div>
  97. <h2 title="Interface TweetsResources" class="title">Interface TweetsResources</h2>
  98. </div>
  99. <div class="contentContainer">
  100. <div class="description">
  101. <ul class="blockList">
  102. <li class="blockList">
  103. <dl>
  104. <dt>All Known Subinterfaces:</dt>
  105. <dd><a href="../../twitter4j/Twitter.html" title="interface in twitter4j">Twitter</a></dd>
  106. </dl>
  107. <hr>
  108. <br>
  109. <pre>public interface <span class="typeNameLabel">TweetsResources</span></pre>
  110. <dl>
  111. <dt><span class="simpleTagLabel">Author:</span></dt>
  112. <dd>Joern Huxhorn - jhuxhorn at googlemail.com</dd>
  113. </dl>
  114. </li>
  115. </ul>
  116. </div>
  117. <div class="summary">
  118. <ul class="blockList">
  119. <li class="blockList">
  120. <!-- ========== METHOD SUMMARY =========== -->
  121. <ul class="blockList">
  122. <li class="blockList"><a name="method.summary">
  123. <!-- -->
  124. </a>
  125. <h3>Method Summary</h3>
  126. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  127. <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
  128. <tr>
  129. <th class="colFirst" scope="col">Modifier and Type</th>
  130. <th class="colLast" scope="col">Method and Description</th>
  131. </tr>
  132. <tr id="i0" class="altColor">
  133. <td class="colFirst"><code><a href="../../twitter4j/Status.html" title="interface in twitter4j">Status</a></code></td>
  134. <td class="colLast"><code><span class="memberNameLink"><a href="../../twitter4j/api/TweetsResources.html#destroyStatus-long-">destroyStatus</a></span>(long&nbsp;statusId)</code>
  135. <div class="block">Destroys the status specified by the required ID parameter.<br>
  136. Usage note: The authenticating user must be the author of the specified status.</div>
  137. </td>
  138. </tr>
  139. <tr id="i1" class="rowColor">
  140. <td class="colFirst"><code><a href="../../twitter4j/OEmbed.html" title="interface in twitter4j">OEmbed</a></code></td>
  141. <td class="colLast"><code><span class="memberNameLink"><a href="../../twitter4j/api/TweetsResources.html#getOEmbed-twitter4j.OEmbedRequest-">getOEmbed</a></span>(<a href="../../twitter4j/OEmbedRequest.html" title="class in twitter4j">OEmbedRequest</a>&nbsp;req)</code>
  142. <div class="block">Returns information allowing the creation of an embedded representation of a Tweet on third party sites.</div>
  143. </td>
  144. </tr>
  145. <tr id="i2" class="altColor">
  146. <td class="colFirst"><code><a href="../../twitter4j/IDs.html" title="interface in twitter4j">IDs</a></code></td>
  147. <td class="colLast"><code><span class="memberNameLink"><a href="../../twitter4j/api/TweetsResources.html#getRetweeterIds-long-int-long-">getRetweeterIds</a></span>(long&nbsp;statusId,
  148. int&nbsp;count,
  149. long&nbsp;cursor)</code>
  150. <div class="block">Returns a collection of up to <code>count</code> user IDs belonging to users
  151. who have retweeted the tweet specified by the id parameter.</div>
  152. </td>
  153. </tr>
  154. <tr id="i3" class="rowColor">
  155. <td class="colFirst"><code><a href="../../twitter4j/IDs.html" title="interface in twitter4j">IDs</a></code></td>
  156. <td class="colLast"><code><span class="memberNameLink"><a href="../../twitter4j/api/TweetsResources.html#getRetweeterIds-long-long-">getRetweeterIds</a></span>(long&nbsp;statusId,
  157. long&nbsp;cursor)</code>
  158. <div class="block">Returns a collection of up to 100 user IDs belonging to users who have
  159. retweeted the tweet specified by the id parameter.</div>
  160. </td>
  161. </tr>
  162. <tr id="i4" class="altColor">
  163. <td class="colFirst"><code><a href="../../twitter4j/ResponseList.html" title="interface in twitter4j">ResponseList</a>&lt;<a href="../../twitter4j/Status.html" title="interface in twitter4j">Status</a>&gt;</code></td>
  164. <td class="colLast"><code><span class="memberNameLink"><a href="../../twitter4j/api/TweetsResources.html#getRetweets-long-">getRetweets</a></span>(long&nbsp;statusId)</code>
  165. <div class="block">Returns up to 100 of the first retweets of a given tweet.</div>
  166. </td>
  167. </tr>
  168. <tr id="i5" class="rowColor">
  169. <td class="colFirst"><code><a href="../../twitter4j/ResponseList.html" title="interface in twitter4j">ResponseList</a>&lt;<a href="../../twitter4j/Status.html" title="interface in twitter4j">Status</a>&gt;</code></td>
  170. <td class="colLast"><code><span class="memberNameLink"><a href="../../twitter4j/api/TweetsResources.html#lookup-long...-">lookup</a></span>(long...&nbsp;ids)</code>
  171. <div class="block">Returns fully-hydrated tweet objects for up to 100 tweets per request, as specified by comma-separated values passed to the id parameter.</div>
  172. </td>
  173. </tr>
  174. <tr id="i6" class="altColor">
  175. <td class="colFirst"><code><a href="../../twitter4j/Status.html" title="interface in twitter4j">Status</a></code></td>
  176. <td class="colLast"><code><span class="memberNameLink"><a href="../../twitter4j/api/TweetsResources.html#retweetStatus-long-">retweetStatus</a></span>(long&nbsp;statusId)</code>
  177. <div class="block">Retweets a tweet.</div>
  178. </td>
  179. </tr>
  180. <tr id="i7" class="rowColor">
  181. <td class="colFirst"><code><a href="../../twitter4j/Status.html" title="interface in twitter4j">Status</a></code></td>
  182. <td class="colLast"><code><span class="memberNameLink"><a href="../../twitter4j/api/TweetsResources.html#showStatus-long-">showStatus</a></span>(long&nbsp;id)</code>
  183. <div class="block">Returns a single status, specified by the id parameter below.</div>
  184. </td>
  185. </tr>
  186. <tr id="i8" class="altColor">
  187. <td class="colFirst"><code><a href="../../twitter4j/Status.html" title="interface in twitter4j">Status</a></code></td>
  188. <td class="colLast"><code><span class="memberNameLink"><a href="../../twitter4j/api/TweetsResources.html#unRetweetStatus-long-">unRetweetStatus</a></span>(long&nbsp;statusId)</code>
  189. <div class="block">Untweets a retweeted status.</div>
  190. </td>
  191. </tr>
  192. <tr id="i9" class="rowColor">
  193. <td class="colFirst"><code><a href="../../twitter4j/Status.html" title="interface in twitter4j">Status</a></code></td>
  194. <td class="colLast"><code><span class="memberNameLink"><a href="../../twitter4j/api/TweetsResources.html#updateStatus-twitter4j.StatusUpdate-">updateStatus</a></span>(<a href="../../twitter4j/StatusUpdate.html" title="class in twitter4j">StatusUpdate</a>&nbsp;latestStatus)</code>
  195. <div class="block">Updates the authenticating user's status.</div>
  196. </td>
  197. </tr>
  198. <tr id="i10" class="altColor">
  199. <td class="colFirst"><code><a href="../../twitter4j/Status.html" title="interface in twitter4j">Status</a></code></td>
  200. <td class="colLast"><code><span class="memberNameLink"><a href="../../twitter4j/api/TweetsResources.html#updateStatus-java.lang.String-">updateStatus</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;status)</code>
  201. <div class="block">Updates the authenticating user's status.</div>
  202. </td>
  203. </tr>
  204. <tr id="i11" class="rowColor">
  205. <td class="colFirst"><code><a href="../../twitter4j/UploadedMedia.html" title="class in twitter4j">UploadedMedia</a></code></td>
  206. <td class="colLast"><code><span class="memberNameLink"><a href="../../twitter4j/api/TweetsResources.html#uploadMedia-java.io.File-">uploadMedia</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a>&nbsp;mediaFile)</code>
  207. <div class="block">Uploads media image to be attached via <a href="../../twitter4j/api/TweetsResources.html#updateStatus-twitter4j.StatusUpdate-"><code>updateStatus(twitter4j.StatusUpdate)</code></a>
  208. <br>This method calls https://api.twitter.com/1.1/media/upload.json</div>
  209. </td>
  210. </tr>
  211. <tr id="i12" class="altColor">
  212. <td class="colFirst"><code><a href="../../twitter4j/UploadedMedia.html" title="class in twitter4j">UploadedMedia</a></code></td>
  213. <td class="colLast"><code><span class="memberNameLink"><a href="../../twitter4j/api/TweetsResources.html#uploadMedia-java.lang.String-java.io.InputStream-">uploadMedia</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;fileName,
  214. <a href="http://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;media)</code>
  215. <div class="block">Uploads media image to be attached via <a href="../../twitter4j/api/TweetsResources.html#updateStatus-twitter4j.StatusUpdate-"><code>updateStatus(twitter4j.StatusUpdate)</code></a>
  216. <br>This method calls https://api.twitter.com/1.1/media/upload.json</div>
  217. </td>
  218. </tr>
  219. <tr id="i13" class="rowColor">
  220. <td class="colFirst"><code><a href="../../twitter4j/UploadedMedia.html" title="class in twitter4j">UploadedMedia</a></code></td>
  221. <td class="colLast"><code><span class="memberNameLink"><a href="../../twitter4j/api/TweetsResources.html#uploadMediaChunked-java.lang.String-java.io.InputStream-">uploadMediaChunked</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;fileName,
  222. <a href="http://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;media)</code>
  223. <div class="block">Uploads media using chunked approach to be attached via <a href="../../twitter4j/api/TweetsResources.html#updateStatus-twitter4j.StatusUpdate-"><code>updateStatus(twitter4j.StatusUpdate)</code></a>.</div>
  224. </td>
  225. </tr>
  226. </table>
  227. </li>
  228. </ul>
  229. </li>
  230. </ul>
  231. </div>
  232. <div class="details">
  233. <ul class="blockList">
  234. <li class="blockList">
  235. <!-- ============ METHOD DETAIL ========== -->
  236. <ul class="blockList">
  237. <li class="blockList"><a name="method.detail">
  238. <!-- -->
  239. </a>
  240. <h3>Method Detail</h3>
  241. <a name="getRetweets-long-">
  242. <!-- -->
  243. </a>
  244. <ul class="blockList">
  245. <li class="blockList">
  246. <h4>getRetweets</h4>
  247. <pre><a href="../../twitter4j/ResponseList.html" title="interface in twitter4j">ResponseList</a>&lt;<a href="../../twitter4j/Status.html" title="interface in twitter4j">Status</a>&gt;&nbsp;getRetweets(long&nbsp;statusId)
  248. throws <a href="../../twitter4j/TwitterException.html" title="class in twitter4j">TwitterException</a></pre>
  249. <div class="block">Returns up to 100 of the first retweets of a given tweet.
  250. <br>This method calls https://api.twitter.com/1.1/statuses/retweets</div>
  251. <dl>
  252. <dt><span class="paramLabel">Parameters:</span></dt>
  253. <dd><code>statusId</code> - The numerical ID of the tweet you want the retweets of.</dd>
  254. <dt><span class="returnLabel">Returns:</span></dt>
  255. <dd>the retweets of a given tweet</dd>
  256. <dt><span class="throwsLabel">Throws:</span></dt>
  257. <dd><code><a href="../../twitter4j/TwitterException.html" title="class in twitter4j">TwitterException</a></code> - when Twitter service or network is unavailable</dd>
  258. <dt><span class="simpleTagLabel">Since:</span></dt>
  259. <dd>Twitter4J 2.0.10</dd>
  260. <dt><span class="seeLabel">See Also:</span></dt>
  261. <dd><a href="https://dev.twitter.com/docs/api/1.1/get/statuses/retweets/:id">Tweets Resources › statuses/retweets/:id</a></dd>
  262. </dl>
  263. </li>
  264. </ul>
  265. <a name="getRetweeterIds-long-long-">
  266. <!-- -->
  267. </a>
  268. <ul class="blockList">
  269. <li class="blockList">
  270. <h4>getRetweeterIds</h4>
  271. <pre><a href="../../twitter4j/IDs.html" title="interface in twitter4j">IDs</a>&nbsp;getRetweeterIds(long&nbsp;statusId,
  272. long&nbsp;cursor)
  273. throws <a href="../../twitter4j/TwitterException.html" title="class in twitter4j">TwitterException</a></pre>
  274. <div class="block">Returns a collection of up to 100 user IDs belonging to users who have
  275. retweeted the tweet specified by the id parameter.
  276. <br>This method calls https://api.twitter.com/1.1/get/statuses/retweeters/ids</div>
  277. <dl>
  278. <dt><span class="paramLabel">Parameters:</span></dt>
  279. <dd><code>statusId</code> - The numerical ID of the tweet you want the retweeters of.</dd>
  280. <dd><code>cursor</code> - The cursor of the page to fetch. Use -1 to start.</dd>
  281. <dt><span class="returnLabel">Returns:</span></dt>
  282. <dd>the retweets of a given tweet</dd>
  283. <dt><span class="throwsLabel">Throws:</span></dt>
  284. <dd><code><a href="../../twitter4j/TwitterException.html" title="class in twitter4j">TwitterException</a></code> - when Twitter service or network is unavailable</dd>
  285. <dt><span class="simpleTagLabel">Since:</span></dt>
  286. <dd>Twitter4J 3.0.5</dd>
  287. <dt><span class="seeLabel">See Also:</span></dt>
  288. <dd><a href="https://dev.twitter.com/docs/api/1.1/get/statuses/retweeters/ids">Tweets Resources › statuses/retweeters/ids</a></dd>
  289. </dl>
  290. </li>
  291. </ul>
  292. <a name="getRetweeterIds-long-int-long-">
  293. <!-- -->
  294. </a>
  295. <ul class="blockList">
  296. <li class="blockList">
  297. <h4>getRetweeterIds</h4>
  298. <pre><a href="../../twitter4j/IDs.html" title="interface in twitter4j">IDs</a>&nbsp;getRetweeterIds(long&nbsp;statusId,
  299. int&nbsp;count,
  300. long&nbsp;cursor)
  301. throws <a href="../../twitter4j/TwitterException.html" title="class in twitter4j">TwitterException</a></pre>
  302. <div class="block">Returns a collection of up to <code>count</code> user IDs belonging to users
  303. who have retweeted the tweet specified by the id parameter.
  304. <br>This method calls https://api.twitter.com/1.1/get/statuses/retweeters/ids</div>
  305. <dl>
  306. <dt><span class="paramLabel">Parameters:</span></dt>
  307. <dd><code>statusId</code> - The numerical ID of the tweet you want the retweeters of.</dd>
  308. <dd><code>count</code> - The maximum number of retweeter IDs to retrieve. Must be
  309. between 1 and 200, inclusive.</dd>
  310. <dd><code>cursor</code> - The cursor of the page to fetch. Use -1 to start.</dd>
  311. <dt><span class="returnLabel">Returns:</span></dt>
  312. <dd>the retweets of a given tweet</dd>
  313. <dt><span class="throwsLabel">Throws:</span></dt>
  314. <dd><code><a href="../../twitter4j/TwitterException.html" title="class in twitter4j">TwitterException</a></code> - when Twitter service or network is unavailable</dd>
  315. <dt><span class="simpleTagLabel">Since:</span></dt>
  316. <dd>Twitter4J 3.0.5</dd>
  317. <dt><span class="seeLabel">See Also:</span></dt>
  318. <dd><a href="https://dev.twitter.com/docs/api/1.1/get/statuses/retweeters/ids">Tweets Resources › statuses/retweeters/ids</a></dd>
  319. </dl>
  320. </li>
  321. </ul>
  322. <a name="showStatus-long-">
  323. <!-- -->
  324. </a>
  325. <ul class="blockList">
  326. <li class="blockList">
  327. <h4>showStatus</h4>
  328. <pre><a href="../../twitter4j/Status.html" title="interface in twitter4j">Status</a>&nbsp;showStatus(long&nbsp;id)
  329. throws <a href="../../twitter4j/TwitterException.html" title="class in twitter4j">TwitterException</a></pre>
  330. <div class="block">Returns a single status, specified by the id parameter below. The status's author will be returned inline.
  331. <br>This method calls https://api.twitter.com/1.1/statuses/show</div>
  332. <dl>
  333. <dt><span class="paramLabel">Parameters:</span></dt>
  334. <dd><code>id</code> - the numerical ID of the status you're trying to retrieve</dd>
  335. <dt><span class="returnLabel">Returns:</span></dt>
  336. <dd>a single status</dd>
  337. <dt><span class="throwsLabel">Throws:</span></dt>
  338. <dd><code><a href="../../twitter4j/TwitterException.html" title="class in twitter4j">TwitterException</a></code> - when Twitter service or network is unavailable</dd>
  339. <dt><span class="simpleTagLabel">Since:</span></dt>
  340. <dd>Twitter4J 2.0.1</dd>
  341. <dt><span class="seeLabel">See Also:</span></dt>
  342. <dd><a href="https://dev.twitter.com/docs/api/1.1/get/statuses/show/:id">GET statuses/show/:id | Twitter Developers</a></dd>
  343. </dl>
  344. </li>
  345. </ul>
  346. <a name="destroyStatus-long-">
  347. <!-- -->
  348. </a>
  349. <ul class="blockList">
  350. <li class="blockList">
  351. <h4>destroyStatus</h4>
  352. <pre><a href="../../twitter4j/Status.html" title="interface in twitter4j">Status</a>&nbsp;destroyStatus(long&nbsp;statusId)
  353. throws <a href="../../twitter4j/TwitterException.html" title="class in twitter4j">TwitterException</a></pre>
  354. <div class="block">Destroys the status specified by the required ID parameter.<br>
  355. Usage note: The authenticating user must be the author of the specified status.
  356. <br>This method calls https://api.twitter.com/1.1/statuses/destroy</div>
  357. <dl>
  358. <dt><span class="paramLabel">Parameters:</span></dt>
  359. <dd><code>statusId</code> - The ID of the status to destroy.</dd>
  360. <dt><span class="returnLabel">Returns:</span></dt>
  361. <dd>the deleted status</dd>
  362. <dt><span class="throwsLabel">Throws:</span></dt>
  363. <dd><code><a href="../../twitter4j/TwitterException.html" title="class in twitter4j">TwitterException</a></code> - when Twitter service or network is unavailable</dd>
  364. <dt><span class="simpleTagLabel">Since:</span></dt>
  365. <dd>1.0.5</dd>
  366. <dt><span class="seeLabel">See Also:</span></dt>
  367. <dd><a href="https://dev.twitter.com/docs/api/1.1/post/statuses/destroy/:id">POST statuses/destroy/:id | Twitter Developers</a></dd>
  368. </dl>
  369. </li>
  370. </ul>
  371. <a name="updateStatus-java.lang.String-">
  372. <!-- -->
  373. </a>
  374. <ul class="blockList">
  375. <li class="blockList">
  376. <h4>updateStatus</h4>
  377. <pre><a href="../../twitter4j/Status.html" title="interface in twitter4j">Status</a>&nbsp;updateStatus(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;status)
  378. throws <a href="../../twitter4j/TwitterException.html" title="class in twitter4j">TwitterException</a></pre>
  379. <div class="block">Updates the authenticating user's status. A status update with text identical to the authenticating user's text identical to the authenticating user's current status will be ignored to prevent duplicates.
  380. <br>This method calls https://api.twitter.com/1.1/statuses/update</div>
  381. <dl>
  382. <dt><span class="paramLabel">Parameters:</span></dt>
  383. <dd><code>status</code> - the text of your status update</dd>
  384. <dt><span class="returnLabel">Returns:</span></dt>
  385. <dd>the latest status</dd>
  386. <dt><span class="throwsLabel">Throws:</span></dt>
  387. <dd><code><a href="../../twitter4j/TwitterException.html" title="class in twitter4j">TwitterException</a></code> - when Twitter service or network is unavailable</dd>
  388. <dt><span class="simpleTagLabel">Since:</span></dt>
  389. <dd>Twitter4J 2.0.1</dd>
  390. <dt><span class="seeLabel">See Also:</span></dt>
  391. <dd><a href="https://dev.twitter.com/docs/api/1.1/post/statuses/update">POST statuses/update | Twitter Developers</a></dd>
  392. </dl>
  393. </li>
  394. </ul>
  395. <a name="updateStatus-twitter4j.StatusUpdate-">
  396. <!-- -->
  397. </a>
  398. <ul class="blockList">
  399. <li class="blockList">
  400. <h4>updateStatus</h4>
  401. <pre><a href="../../twitter4j/Status.html" title="interface in twitter4j">Status</a>&nbsp;updateStatus(<a href="../../twitter4j/StatusUpdate.html" title="class in twitter4j">StatusUpdate</a>&nbsp;latestStatus)
  402. throws <a href="../../twitter4j/TwitterException.html" title="class in twitter4j">TwitterException</a></pre>
  403. <div class="block">Updates the authenticating user's status. A status update with text identical to the authenticating user's text identical to the authenticating user's current status will be ignored to prevent duplicates.
  404. <br>This method calls https://api.twitter.com/1.1/statuses/update or<br>
  405. This method calls https://upload.twitter.com/1/statuses/update_with_media</div>
  406. <dl>
  407. <dt><span class="paramLabel">Parameters:</span></dt>
  408. <dd><code>latestStatus</code> - the latest status to be updated.</dd>
  409. <dt><span class="returnLabel">Returns:</span></dt>
  410. <dd>the latest status</dd>
  411. <dt><span class="throwsLabel">Throws:</span></dt>
  412. <dd><code><a href="../../twitter4j/TwitterException.html" title="class in twitter4j">TwitterException</a></code> - when Twitter service or network is unavailable</dd>
  413. <dt><span class="simpleTagLabel">Since:</span></dt>
  414. <dd>Twitter4J 2.1.1</dd>
  415. <dt><span class="seeLabel">See Also:</span></dt>
  416. <dd><a href="https://dev.twitter.com/docs/api/1.1/post/statuses/update">POST statuses/update | Twitter Developers</a></dd>
  417. </dl>
  418. </li>
  419. </ul>
  420. <a name="retweetStatus-long-">
  421. <!-- -->
  422. </a>
  423. <ul class="blockList">
  424. <li class="blockList">
  425. <h4>retweetStatus</h4>
  426. <pre><a href="../../twitter4j/Status.html" title="interface in twitter4j">Status</a>&nbsp;retweetStatus(long&nbsp;statusId)
  427. throws <a href="../../twitter4j/TwitterException.html" title="class in twitter4j">TwitterException</a></pre>
  428. <div class="block">Retweets a tweet. Returns the original tweet with retweet details embedded.
  429. <br>This method calls https://api.twitter.com/1.1/statuses/retweet</div>
  430. <dl>
  431. <dt><span class="paramLabel">Parameters:</span></dt>
  432. <dd><code>statusId</code> - The ID of the status to retweet.</dd>
  433. <dt><span class="returnLabel">Returns:</span></dt>
  434. <dd>the retweeted status</dd>
  435. <dt><span class="throwsLabel">Throws:</span></dt>
  436. <dd><code><a href="../../twitter4j/TwitterException.html" title="class in twitter4j">TwitterException</a></code> - when Twitter service or network is unavailable</dd>
  437. <dt><span class="simpleTagLabel">Since:</span></dt>
  438. <dd>Twitter4J 2.0.10</dd>
  439. <dt><span class="seeLabel">See Also:</span></dt>
  440. <dd><a href="https://dev.twitter.com/docs/api/1.1/post/statuses/retweet/:id">POST statuses/retweet/:id | Twitter Developers</a></dd>
  441. </dl>
  442. </li>
  443. </ul>
  444. <a name="unRetweetStatus-long-">
  445. <!-- -->
  446. </a>
  447. <ul class="blockList">
  448. <li class="blockList">
  449. <h4>unRetweetStatus</h4>
  450. <pre><a href="../../twitter4j/Status.html" title="interface in twitter4j">Status</a>&nbsp;unRetweetStatus(long&nbsp;statusId)
  451. throws <a href="../../twitter4j/TwitterException.html" title="class in twitter4j">TwitterException</a></pre>
  452. <div class="block">Untweets a retweeted status. Returns the original Tweet with retweet details embedded.
  453. <br>This method calls https://api.twitter.com/1.1/statuses/unretweet</div>
  454. <dl>
  455. <dt><span class="paramLabel">Parameters:</span></dt>
  456. <dd><code>statusId</code> - The ID of the status to un-retweet.</dd>
  457. <dt><span class="returnLabel">Returns:</span></dt>
  458. <dd>the original Tweet with retweet details embedded</dd>
  459. <dt><span class="throwsLabel">Throws:</span></dt>
  460. <dd><code><a href="../../twitter4j/TwitterException.html" title="class in twitter4j">TwitterException</a></code> - when Twitter service or network is unavailable</dd>
  461. <dt><span class="simpleTagLabel">Since:</span></dt>
  462. <dd>Twitter4J 4.0.7</dd>
  463. <dt><span class="seeLabel">See Also:</span></dt>
  464. <dd><a href="https://dev.twitter.com/docs/api/1.1/post/statuses/unretweet/:id">POST statuses/unretweet/:id | Twitter Developers</a></dd>
  465. </dl>
  466. </li>
  467. </ul>
  468. <a name="getOEmbed-twitter4j.OEmbedRequest-">
  469. <!-- -->
  470. </a>
  471. <ul class="blockList">
  472. <li class="blockList">
  473. <h4>getOEmbed</h4>
  474. <pre><a href="../../twitter4j/OEmbed.html" title="interface in twitter4j">OEmbed</a>&nbsp;getOEmbed(<a href="../../twitter4j/OEmbedRequest.html" title="class in twitter4j">OEmbedRequest</a>&nbsp;req)
  475. throws <a href="../../twitter4j/TwitterException.html" title="class in twitter4j">TwitterException</a></pre>
  476. <div class="block">Returns information allowing the creation of an embedded representation of a Tweet on third party sites. See the <a href="http://oembed.com/">oEmbed</a> specification for information about the response format.
  477. While this endpoint allows a bit of customization for the final appearance of the embedded Tweet, be aware that the appearance of the rendered Tweet may change over time to be consistent with Twitter's <a href="https://dev.twitter.com/terms/display-requirements">Display Requirements</a>. Do not rely on any class or id parameters to stay constant in the returned markup.
  478. <br>This method calls https://api.twitter.com/1.1/statuses/oembed.json</div>
  479. <dl>
  480. <dt><span class="paramLabel">Parameters:</span></dt>
  481. <dd><code>req</code> - request</dd>
  482. <dt><span class="returnLabel">Returns:</span></dt>
  483. <dd>information allowing the creation of an embedded representation of a Tweet on third party sites</dd>
  484. <dt><span class="throwsLabel">Throws:</span></dt>
  485. <dd><code><a href="../../twitter4j/TwitterException.html" title="class in twitter4j">TwitterException</a></code> - when Twitter service or network is unavailable</dd>
  486. <dt><span class="simpleTagLabel">Since:</span></dt>
  487. <dd>Twitter4J 3.0.2</dd>
  488. <dt><span class="seeLabel">See Also:</span></dt>
  489. <dd><a href="https://dev.twitter.com/docs/api/1.1/get/statuses/oembed">GET statuses/oembed | Twitter Developers</a></dd>
  490. </dl>
  491. </li>
  492. </ul>
  493. <a name="lookup-long...-">
  494. <!-- -->
  495. </a>
  496. <ul class="blockList">
  497. <li class="blockList">
  498. <h4>lookup</h4>
  499. <pre><a href="../../twitter4j/ResponseList.html" title="interface in twitter4j">ResponseList</a>&lt;<a href="../../twitter4j/Status.html" title="interface in twitter4j">Status</a>&gt;&nbsp;lookup(long...&nbsp;ids)
  500. throws <a href="../../twitter4j/TwitterException.html" title="class in twitter4j">TwitterException</a></pre>
  501. <div class="block">Returns fully-hydrated tweet objects for up to 100 tweets per request, as specified by comma-separated values passed to the id parameter.
  502. This method is especially useful to get the details (hydrate) a collection of Tweet IDs.
  503. <br>This method calls https://api.twitter.com/1.1/statuses/lookup.json</div>
  504. <dl>
  505. <dt><span class="paramLabel">Parameters:</span></dt>
  506. <dd><code>ids</code> - array of the ids to lookup</dd>
  507. <dt><span class="returnLabel">Returns:</span></dt>
  508. <dd>list of the tweets</dd>
  509. <dt><span class="throwsLabel">Throws:</span></dt>
  510. <dd><code><a href="../../twitter4j/TwitterException.html" title="class in twitter4j">TwitterException</a></code> - when Twitter service or network is unavailable</dd>
  511. <dt><span class="simpleTagLabel">Since:</span></dt>
  512. <dd>Twitter4J 4.0.2</dd>
  513. <dt><span class="seeLabel">See Also:</span></dt>
  514. <dd><a href="https://dev.twitter.com/docs/api/1.1/get/statuses/lookup">GET statuses/lookup</a></dd>
  515. </dl>
  516. </li>
  517. </ul>
  518. <a name="uploadMedia-java.io.File-">
  519. <!-- -->
  520. </a>
  521. <ul class="blockList">
  522. <li class="blockList">
  523. <h4>uploadMedia</h4>
  524. <pre><a href="../../twitter4j/UploadedMedia.html" title="class in twitter4j">UploadedMedia</a>&nbsp;uploadMedia(<a href="http://docs.oracle.com/javase/8/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a>&nbsp;mediaFile)
  525. throws <a href="../../twitter4j/TwitterException.html" title="class in twitter4j">TwitterException</a></pre>
  526. <div class="block">Uploads media image to be attached via <a href="../../twitter4j/api/TweetsResources.html#updateStatus-twitter4j.StatusUpdate-"><code>updateStatus(twitter4j.StatusUpdate)</code></a>
  527. <br>This method calls https://api.twitter.com/1.1/media/upload.json</div>
  528. <dl>
  529. <dt><span class="paramLabel">Parameters:</span></dt>
  530. <dd><code>mediaFile</code> - the latest status to be updated.</dd>
  531. <dt><span class="returnLabel">Returns:</span></dt>
  532. <dd>upload result</dd>
  533. <dt><span class="throwsLabel">Throws:</span></dt>
  534. <dd><code><a href="../../twitter4j/TwitterException.html" title="class in twitter4j">TwitterException</a></code> - when Twitter service or network is unavailable</dd>
  535. <dt><span class="simpleTagLabel">Since:</span></dt>
  536. <dd>Twitter4J 4.0.2</dd>
  537. <dt><span class="seeLabel">See Also:</span></dt>
  538. <dd><a href="https://dev.twitter.com/docs/api/1.1/post/statuses/update">POST statuses/update | Twitter Developers</a>,
  539. <a href="https://dev.twitter.com/docs/api/multiple-media-extended-entities">Multiple Media Entities in Statuses</a></dd>
  540. </dl>
  541. </li>
  542. </ul>
  543. <a name="uploadMedia-java.lang.String-java.io.InputStream-">
  544. <!-- -->
  545. </a>
  546. <ul class="blockList">
  547. <li class="blockList">
  548. <h4>uploadMedia</h4>
  549. <pre><a href="../../twitter4j/UploadedMedia.html" title="class in twitter4j">UploadedMedia</a>&nbsp;uploadMedia(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;fileName,
  550. <a href="http://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;media)
  551. throws <a href="../../twitter4j/TwitterException.html" title="class in twitter4j">TwitterException</a></pre>
  552. <div class="block">Uploads media image to be attached via <a href="../../twitter4j/api/TweetsResources.html#updateStatus-twitter4j.StatusUpdate-"><code>updateStatus(twitter4j.StatusUpdate)</code></a>
  553. <br>This method calls https://api.twitter.com/1.1/media/upload.json</div>
  554. <dl>
  555. <dt><span class="paramLabel">Parameters:</span></dt>
  556. <dd><code>fileName</code> - media file name</dd>
  557. <dd><code>media</code> - media body as stream</dd>
  558. <dt><span class="returnLabel">Returns:</span></dt>
  559. <dd>upload result</dd>
  560. <dt><span class="throwsLabel">Throws:</span></dt>
  561. <dd><code><a href="../../twitter4j/TwitterException.html" title="class in twitter4j">TwitterException</a></code> - when Twitter service or network is unavailable</dd>
  562. <dt><span class="simpleTagLabel">Since:</span></dt>
  563. <dd>Twitter4J 4.0.3</dd>
  564. <dt><span class="seeLabel">See Also:</span></dt>
  565. <dd><a href="https://dev.twitter.com/docs/api/1.1/post/statuses/update">POST statuses/update | Twitter Developers</a>,
  566. <a href="https://dev.twitter.com/docs/api/multiple-media-extended-entities">Multiple Media Entities in Statuses</a></dd>
  567. </dl>
  568. </li>
  569. </ul>
  570. <a name="uploadMediaChunked-java.lang.String-java.io.InputStream-">
  571. <!-- -->
  572. </a>
  573. <ul class="blockListLast">
  574. <li class="blockList">
  575. <h4>uploadMediaChunked</h4>
  576. <pre><a href="../../twitter4j/UploadedMedia.html" title="class in twitter4j">UploadedMedia</a>&nbsp;uploadMediaChunked(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;fileName,
  577. <a href="http://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;media)
  578. throws <a href="../../twitter4j/TwitterException.html" title="class in twitter4j">TwitterException</a></pre>
  579. <div class="block">Uploads media using chunked approach to be attached via <a href="../../twitter4j/api/TweetsResources.html#updateStatus-twitter4j.StatusUpdate-"><code>updateStatus(twitter4j.StatusUpdate)</code></a>.
  580. This should be used for videos.
  581. <br>This method calls https://api.twitter.com/1.1/media/upload.json</div>
  582. <dl>
  583. <dt><span class="paramLabel">Parameters:</span></dt>
  584. <dd><code>fileName</code> - media file name</dd>
  585. <dd><code>media</code> - media body as stream</dd>
  586. <dt><span class="returnLabel">Returns:</span></dt>
  587. <dd>upload result</dd>
  588. <dt><span class="throwsLabel">Throws:</span></dt>
  589. <dd><code><a href="../../twitter4j/TwitterException.html" title="class in twitter4j">TwitterException</a></code> - when Twitter service or network is unavailable</dd>
  590. <dt><span class="simpleTagLabel">Since:</span></dt>
  591. <dd>Twitter4J 4.0.7</dd>
  592. <dt><span class="seeLabel">See Also:</span></dt>
  593. <dd><a href="https://dev.twitter.com/rest/public/uploading-media#chunkedupload">Uploading Media | Twitter Developers</a>,
  594. <a href="https://dev.twitter.com/docs/api/1.1/post/statuses/update">POST statuses/update | Twitter Developers</a>,
  595. <a href="https://dev.twitter.com/docs/api/multiple-media-extended-entities">Multiple Media Entities in Statuses</a></dd>
  596. </dl>
  597. </li>
  598. </ul>
  599. </li>
  600. </ul>
  601. </li>
  602. </ul>
  603. </div>
  604. </div>
  605. <!-- ========= END OF CLASS DATA ========= -->
  606. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  607. <div class="bottomNav"><a name="navbar.bottom">
  608. <!-- -->
  609. </a>
  610. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  611. <a name="navbar.bottom.firstrow">
  612. <!-- -->
  613. </a>
  614. <ul class="navList" title="Navigation">
  615. <li><a href="../../overview-summary.html">Overview</a></li>
  616. <li><a href="package-summary.html">Package</a></li>
  617. <li class="navBarCell1Rev">Class</li>
  618. <li><a href="class-use/TweetsResources.html">Use</a></li>
  619. <li><a href="package-tree.html">Tree</a></li>
  620. <li><a href="../../deprecated-list.html">Deprecated</a></li>
  621. <li><a href="../../index-all.html">Index</a></li>
  622. <li><a href="../../help-doc.html">Help</a></li>
  623. </ul>
  624. </div>
  625. <div class="subNav">
  626. <ul class="navList">
  627. <li><a href="../../twitter4j/api/TrendsResources.html" title="interface in twitter4j.api"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  628. <li><a href="../../twitter4j/api/UsersResources.html" title="interface in twitter4j.api"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  629. </ul>
  630. <ul class="navList">
  631. <li><a href="../../index.html?twitter4j/api/TweetsResources.html" target="_top">Frames</a></li>
  632. <li><a href="TweetsResources.html" target="_top">No&nbsp;Frames</a></li>
  633. </ul>
  634. <ul class="navList" id="allclasses_navbar_bottom">
  635. <li><a href="../../allclasses-noframe.html">All&nbsp;Classes</a></li>
  636. </ul>
  637. <div>
  638. <script type="text/javascript"><!--
  639. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  640. if(window==top) {
  641. allClassesLink.style.display = "block";
  642. }
  643. else {
  644. allClassesLink.style.display = "none";
  645. }
  646. //-->
  647. </script>
  648. </div>
  649. <div>
  650. <ul class="subNavList">
  651. <li>Summary:&nbsp;</li>
  652. <li>Nested&nbsp;|&nbsp;</li>
  653. <li>Field&nbsp;|&nbsp;</li>
  654. <li>Constr&nbsp;|&nbsp;</li>
  655. <li><a href="#method.summary">Method</a></li>
  656. </ul>
  657. <ul class="subNavList">
  658. <li>Detail:&nbsp;</li>
  659. <li>Field&nbsp;|&nbsp;</li>
  660. <li>Constr&nbsp;|&nbsp;</li>
  661. <li><a href="#method.detail">Method</a></li>
  662. </ul>
  663. </div>
  664. <a name="skip.navbar.bottom">
  665. <!-- -->
  666. </a></div>
  667. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  668. <p class="legalCopy"><small>Copyright &#169; 2018. All rights reserved.</small></p>
  669. </body>
  670. </html>