giant.json 160 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "version": "1.1",
  5. "title": "Twitter REST API This is interesting in so many cases"
  6. },
  7. "host": "api.twitter.com",
  8. "basePath": "/1.1",
  9. "schemes": [
  10. "http",
  11. "https"
  12. ],
  13. "consumes": [
  14. "application/json"
  15. ],
  16. "produces": [
  17. "application/json"
  18. ],
  19. "securityDefinitions": {
  20. "oauth": {
  21. "type": "oauth2",
  22. "flow": "implicit",
  23. "authorizationUrl": "https://twitter.com/oauth/authorize/?client_id=CLIENT-ID&redirect_uri=REDIRECT-URI&response_type=token",
  24. "scopes": {
  25. "basic": "to read any and all data related to twitter this is interesting op\n"
  26. }
  27. }
  28. },
  29. "security": [
  30. {
  31. "oauth": [
  32. "basic"
  33. ]
  34. }
  35. ],
  36. "paths": {
  37. "/statuses/mentions_timeline": {
  38. "get": {
  39. "description": "Returns the 20 most recent mentions for the authenticating kkkkkkk user",
  40. "security": [
  41. {
  42. "oauth": [
  43. "basic"
  44. ]
  45. }
  46. ],
  47. "parameters": [
  48. {
  49. "name": "count",
  50. "in": "query",
  51. "description": "Specifies the number of tweets to try and retrieve",
  52. "required": false,
  53. "type": "string"
  54. },
  55. {
  56. "name": "since_id",
  57. "in": "query",
  58. "description": "Returns result with an ID greater than the specified ID",
  59. "required": false,
  60. "type": "string"
  61. },
  62. {
  63. "name": "max_id",
  64. "in": "query",
  65. "description": "Returns results with an ID less than or equal to the specified ID",
  66. "required": false,
  67. "type": "string"
  68. },
  69. {
  70. "name": "trim_user",
  71. "in": "query",
  72. "description": "When set to either true, t or 1, each tweet returned in a timeline will include a user object",
  73. "required": false,
  74. "type": "string"
  75. },
  76. {
  77. "name": "contributor_details",
  78. "in": "query",
  79. "description": "This parameter enhances the contributors element of the status response",
  80. "required": false,
  81. "type": "string"
  82. },
  83. {
  84. "name": "include_entities",
  85. "in": "query",
  86. "description": "The entities node will be disincluded when set to false",
  87. "required": false,
  88. "type": "string"
  89. }
  90. ],
  91. "responses": {
  92. "200": {
  93. "description": "Success",
  94. "schema": {
  95. "type": "array",
  96. "items": {
  97. "$ref": "#/definitions/Tweets"
  98. }
  99. }
  100. }
  101. }
  102. }
  103. },
  104. "/statuses/user_timeline": {
  105. "get": {
  106. "description": "Returns a collection of the most recent Tweets posted by the User",
  107. "security": [
  108. {
  109. "oauth": [
  110. "basic"
  111. ]
  112. }
  113. ],
  114. "parameters": [
  115. {
  116. "name": "count",
  117. "in": "query",
  118. "description": "Specifies the number of tweets to try and rppetrieve",
  119. "required": false,
  120. "type": "string"
  121. },
  122. {
  123. "name": "since_id",
  124. "in": "query",
  125. "description": "Returns result with an ID greater than the specified ID",
  126. "required": false,
  127. "type": "string"
  128. },
  129. {
  130. "name": "max_id",
  131. "in": "query",
  132. "description": "Returns results with an ID less than or equal to the specified ID",
  133. "required": false,
  134. "type": "string"
  135. },
  136. {
  137. "name": "trim_user",
  138. "in": "query",
  139. "description": "When set to either true, t or 1, each tweet returned in a timeline will include a user object",
  140. "required": false,
  141. "type": "string"
  142. },
  143. {
  144. "name": "exclude_replies",
  145. "in": "query",
  146. "description": "This paramters will prevent from appearing in the returned timeline",
  147. "required": false,
  148. "type": "boolean"
  149. },
  150. {
  151. "name": "contributor_details",
  152. "in": "query",
  153. "description": "This paramters enhances the contributors element of the status response to include the screen_name of the contributor",
  154. "required": false,
  155. "type": "boolean"
  156. },
  157. {
  158. "name": "include_rts",
  159. "in": "query",
  160. "description": "When set to false, the timeline will strip any native retweet",
  161. "required": false,
  162. "type": "boolean"
  163. }
  164. ],
  165. "responses": {
  166. "200": {
  167. "description": "Success",
  168. "schema": {
  169. "type": "array",
  170. "items": {
  171. "$ref": "#/definitions/Tweets"
  172. }
  173. }
  174. }
  175. }
  176. }
  177. },
  178. "/statuses/home_timeline": {
  179. "get": {
  180. "description": "Returns a collection of the most recent Tweets",
  181. "security": [
  182. {
  183. "oauth": [
  184. "basic"
  185. ]
  186. }
  187. ],
  188. "parameters": [
  189. {
  190. "name": "since_id",
  191. "in": "query",
  192. "description": "Returns result with an ID greater than the specified ID",
  193. "required": false,
  194. "type": "string"
  195. },
  196. {
  197. "name": "max_id",
  198. "in": "query",
  199. "description": "Returns results with an ID less than or equal to the specified ID",
  200. "required": false,
  201. "type": "string"
  202. },
  203. {
  204. "name": "trim_user",
  205. "in": "query",
  206. "description": "When set to either true, t or 1, each tweet returned in a timeline will include a user object",
  207. "required": false,
  208. "type": "string"
  209. },
  210. {
  211. "name": "exclude_replies",
  212. "in": "query",
  213. "description": "This paramters will prevent from appearing in the returned timeline",
  214. "required": false,
  215. "type": "boolean"
  216. },
  217. {
  218. "name": "contributor_details",
  219. "in": "query",
  220. "description": "This paramters enhances the contributors element of the status response to include the screen_name of the contributor",
  221. "required": false,
  222. "type": "boolean"
  223. }
  224. ],
  225. "responses": {
  226. "200": {
  227. "description": "Success",
  228. "schema": {
  229. "type": "array",
  230. "items": {
  231. "$ref": "#/definitions/Tweets"
  232. }
  233. }
  234. }
  235. }
  236. }
  237. },
  238. "/statuses/retweets/{id}": {
  239. "post": {
  240. "description": "Retweens a tweet",
  241. "security": [
  242. {
  243. "oauth": [
  244. "basic"
  245. ]
  246. }
  247. ],
  248. "parameters": [
  249. {
  250. "name": "id",
  251. "in": "path",
  252. "description": "The numerical ID of the desired status",
  253. "required": true,
  254. "type": "string"
  255. },
  256. {
  257. "name": "trim_user",
  258. "in": "query",
  259. "description": "When set to either true, t or 1, each tweet returned in a timeline will include a user object",
  260. "required": false,
  261. "type": "string"
  262. }
  263. ],
  264. "responses": {
  265. "200": {
  266. "description": "Success",
  267. "schema": {
  268. "$ref": "#/definitions/Tweets"
  269. }
  270. }
  271. }
  272. }
  273. },
  274. "/statuses/show/{id}": {
  275. "get": {
  276. "description": "Retruns a single Tweet",
  277. "security": [
  278. {
  279. "oauth": [
  280. "basic"
  281. ]
  282. }
  283. ],
  284. "parameters": [
  285. {
  286. "name": "id",
  287. "in": "path",
  288. "description": "The numerical ID of the desired status",
  289. "required": true,
  290. "type": "string"
  291. },
  292. {
  293. "name": "trim_user",
  294. "in": "query",
  295. "description": "When set to either true, t or 1, each tweet returned in a timeline will include a user object",
  296. "required": false,
  297. "type": "string"
  298. },
  299. {
  300. "name": "include_my_retweet",
  301. "in": "query",
  302. "description": "When set to either true, t or 1, any Tweets returned that have been retweeted by the authenticating",
  303. "required": true,
  304. "type": "string"
  305. },
  306. {
  307. "name": "include_entities",
  308. "type": "string",
  309. "in": "query",
  310. "description": "The entities node will be disincluded when set to false",
  311. "required": false
  312. }
  313. ],
  314. "responses": {
  315. "200": {
  316. "description": "Success if that matters wd sw",
  317. "schema": {
  318. "$ref": "#/definitions/Tweets"
  319. }
  320. }
  321. }
  322. }
  323. },
  324. "/statuses/destroy/{id}": {
  325. "post": {
  326. "description": "Destroys the status specified by the required ID parameter",
  327. "security": [
  328. {
  329. "oauth": [
  330. "basic"
  331. ]
  332. }
  333. ],
  334. "parameters": [
  335. {
  336. "name": "id",
  337. "in": "path",
  338. "description": "The numerical ID of the desired status",
  339. "required": true,
  340. "type": "string"
  341. },
  342. {
  343. "name": "trim_user",
  344. "in": "query",
  345. "description": "When set to either true, t or 1, each tweet returned in a timeline will include a user object",
  346. "required": false,
  347. "type": "string"
  348. }
  349. ],
  350. "responses": {
  351. "200": {
  352. "description": "Success",
  353. "schema": {
  354. "$ref": "#/definitions/Tweets"
  355. }
  356. }
  357. }
  358. }
  359. },
  360. "/statuses/update": {
  361. "post": {
  362. "description": "Updates the authenticating user's status",
  363. "security": [
  364. {
  365. "oauth": [
  366. "basic"
  367. ]
  368. }
  369. ],
  370. "parameters": [
  371. {
  372. "name": "status",
  373. "in": "query",
  374. "description": "The text of your status update",
  375. "required": true,
  376. "type": "string"
  377. },
  378. {
  379. "name": "in_reply_to_status_id",
  380. "in": "query",
  381. "description": "The ID of an existing status",
  382. "required": false,
  383. "type": "string"
  384. },
  385. {
  386. "name": "lat",
  387. "in": "query",
  388. "description": "The latitude of the location",
  389. "required": false,
  390. "type": "string"
  391. },
  392. {
  393. "name": "long",
  394. "in": "query",
  395. "description": "The longitude of the location",
  396. "required": false,
  397. "type": "string"
  398. },
  399. {
  400. "name": "place_id",
  401. "in": "query",
  402. "description": "A place in the world",
  403. "required": false,
  404. "type": "string"
  405. },
  406. {
  407. "name": "display_coordinates",
  408. "in": "query",
  409. "description": "Whether or not to put a pin on the exact coordinates a tweet",
  410. "required": false,
  411. "type": "string"
  412. },
  413. {
  414. "name": "trim_user",
  415. "in": "query",
  416. "description": "When set to either true, t or 1, each tweet returned in a timeline will include a user object",
  417. "required": false,
  418. "type": "string"
  419. }
  420. ],
  421. "responses": {
  422. "200": {
  423. "description": "Success",
  424. "schema": {
  425. "$ref": "#/definitions/Tweets"
  426. }
  427. },
  428. "403": {
  429. "description": "Error"
  430. }
  431. }
  432. }
  433. },
  434. "/statuses/oembed": {
  435. "get": {
  436. "description": "Returns information allowing the creation of an embedded representation",
  437. "security": [
  438. {
  439. "oauth": [
  440. "basic"
  441. ]
  442. }
  443. ],
  444. "parameters": [
  445. {
  446. "name": "id",
  447. "in": "query",
  448. "description": "The tweet/status id to return embed code for",
  449. "required": true,
  450. "type": "string"
  451. },
  452. {
  453. "name": "url",
  454. "in": "query",
  455. "description": "The encoded URL of the Tweet status to be embedded",
  456. "required": true,
  457. "type": "string"
  458. },
  459. {
  460. "name": "maxwidth",
  461. "in": "query",
  462. "description": "The maximum width in pixels that the embed should be rendered at",
  463. "required": false,
  464. "type": "string"
  465. },
  466. {
  467. "name": "hide_media",
  468. "in": "query",
  469. "description": "Specifies whether the embedded tweet should automatically show the original message in the case that the embedded Tweet is a reply",
  470. "required": false,
  471. "type": "string"
  472. },
  473. {
  474. "name": "hide_thread",
  475. "in": "query",
  476. "description": "Specifies whether the embedded Tweet html should include a 'script' element pointing to widgets.js",
  477. "required": false,
  478. "type": "string"
  479. },
  480. {
  481. "name": "align",
  482. "in": "query",
  483. "description": "Specifies whether the embedded Tweet should be left aligned",
  484. "required": false,
  485. "type": "string"
  486. },
  487. {
  488. "name": "related",
  489. "in": "query",
  490. "description": "A value for the TWT related parameters",
  491. "required": false,
  492. "type": "string"
  493. },
  494. {
  495. "name": "lang",
  496. "in": "query",
  497. "description": "Languages code for the rendered embed",
  498. "required": false,
  499. "type": "string"
  500. }
  501. ],
  502. "responses": {
  503. "200": {
  504. "description": "Success",
  505. "schema": {
  506. "$ref": "#/definitions/Tweets"
  507. }
  508. }
  509. }
  510. }
  511. },
  512. "/lists/list": {
  513. "get": {
  514. "description": "Return all lists the authenticating or specified user subscribes to, including their own.",
  515. "security": [
  516. {
  517. "oauth": [
  518. "basic"
  519. ]
  520. }
  521. ],
  522. "parameters": [
  523. {
  524. "name": "screen_name",
  525. "in": "query",
  526. "description": "The screen name of the user for whom to return results for Hey jeremey ijikjkhj,kb kukj",
  527. "required": true,
  528. "type": "string"
  529. },
  530. {
  531. "name": "user_id",
  532. "in": "query",
  533. "description": "The ID of the user for whom to return results for",
  534. "required": true,
  535. "type": "string"
  536. }
  537. ],
  538. "responses": {
  539. "200": {
  540. "description": "Success",
  541. "schema": {
  542. "type": "array",
  543. "items": {
  544. "$ref": "#/definitions/Lists"
  545. }
  546. }
  547. }
  548. }
  549. }
  550. },
  551. "/lists/statuses": {
  552. "get": {
  553. "description": "Returns a timeline of tweets authored by memebers of the specified list",
  554. "security": [
  555. {
  556. "oauth": [
  557. "basic"
  558. ]
  559. }
  560. ],
  561. "parameters": [
  562. {
  563. "name": "list_id",
  564. "in": "query",
  565. "description": "The numerical id of the list",
  566. "required": true,
  567. "type": "string"
  568. },
  569. {
  570. "name": "slug",
  571. "in": "query",
  572. "description": "You can identify a list by its slug instead of its numerical id",
  573. "required": true,
  574. "type": "string"
  575. },
  576. {
  577. "name": "owner_screen_name",
  578. "in": "query",
  579. "description": "The screen name of the user who owns the list being requested by a slug",
  580. "required": false,
  581. "type": "string"
  582. },
  583. {
  584. "name": "owner_id",
  585. "in": "query",
  586. "description": "The user ID of the user who owns the list being requested by a slug",
  587. "required": false,
  588. "type": "string"
  589. },
  590. {
  591. "name": "since_id",
  592. "in": "query",
  593. "description": "Returns results with an ID greater than the sepcified ID",
  594. "required": false,
  595. "type": "string"
  596. },
  597. {
  598. "name": "max_id",
  599. "in": "query",
  600. "description": "Returns results with an ID less than or equal to the specified ID",
  601. "required": false,
  602. "type": "string"
  603. },
  604. {
  605. "name": "count",
  606. "in": "query",
  607. "description": "Specifies the number of results to retrieve per page",
  608. "required": false,
  609. "type": "string"
  610. },
  611. {
  612. "name": "include_entities",
  613. "in": "query",
  614. "description": "Entities are ON by default",
  615. "required": false,
  616. "type": "string"
  617. },
  618. {
  619. "name": "include_rts",
  620. "in": "query",
  621. "description": "When set to either true, t or 1, the list timeline will contain native retweets in addition to the standard stream of tweets",
  622. "required": false,
  623. "type": "string"
  624. }
  625. ],
  626. "responses": {
  627. "200": {
  628. "description": "Success",
  629. "schema": {
  630. "type": "array",
  631. "items": {
  632. "$ref": "#/definitions/Tweets"
  633. }
  634. }
  635. }
  636. }
  637. }
  638. },
  639. "/lists/members/destroy": {
  640. "get": {
  641. "description": "Returns the list of memebers destroy",
  642. "security": [
  643. {
  644. "oauth": [
  645. "basic"
  646. ]
  647. }
  648. ],
  649. "parameters": [
  650. {
  651. "name": "list_id",
  652. "in": "query",
  653. "description": "The numerical id of the list",
  654. "required": true,
  655. "type": "string"
  656. },
  657. {
  658. "name": "slug",
  659. "in": "query",
  660. "description": "You can identify a list by its slug instrad of its numerical id",
  661. "required": true,
  662. "type": "string"
  663. },
  664. {
  665. "name": "owner_screen_name",
  666. "in": "query",
  667. "description": "The screen name of the user who owns the list being requested by a slug",
  668. "required": false,
  669. "type": "string"
  670. },
  671. {
  672. "name": "user_id",
  673. "in": "query",
  674. "description": "The id of the user for whom to remove from the list",
  675. "required": false,
  676. "type": "string"
  677. },
  678. {
  679. "name": "screen_name",
  680. "in": "query",
  681. "description": "The screen name of the user for whom to remove from the list",
  682. "required": false,
  683. "type": "string"
  684. },
  685. {
  686. "name": "owner_id",
  687. "in": "query",
  688. "description": "The is of the user who wons the list being requested by a slug",
  689. "required": false,
  690. "type": "string"
  691. }
  692. ],
  693. "responses": {
  694. "200": {
  695. "description": "Success"
  696. }
  697. }
  698. }
  699. },
  700. "/lists/memberships": {
  701. "get": {
  702. "description": "Returns the lists of the specified user has been added to",
  703. "security": [
  704. {
  705. "oauth": [
  706. "basic"
  707. ]
  708. }
  709. ],
  710. "parameters": [
  711. {
  712. "name": "user_id",
  713. "in": "query",
  714. "description": "The id of the user for whom to return results for",
  715. "required": false,
  716. "type": "string"
  717. },
  718. {
  719. "name": "screen_name",
  720. "in": "query",
  721. "description": "The screen name of the user for whom to return results for",
  722. "required": false,
  723. "type": "string"
  724. },
  725. {
  726. "name": "cursor",
  727. "in": "query",
  728. "description": "Breaks the results into pages",
  729. "required": false,
  730. "type": "string"
  731. },
  732. {
  733. "name": "filter_to_owned_lists",
  734. "in": "query",
  735. "description": "When set to true, t or 1, will return just lists the authenticating user owns",
  736. "required": false,
  737. "type": "string"
  738. }
  739. ],
  740. "responses": {
  741. "200": {
  742. "description": "Success",
  743. "schema": {
  744. "$ref": "#/definitions/Cursor_lists"
  745. }
  746. }
  747. }
  748. }
  749. },
  750. "/lists/subscribers": {
  751. "get": {
  752. "description": "Returns the subscribers of the specified list",
  753. "security": [
  754. {
  755. "oauth": [
  756. "basic"
  757. ]
  758. }
  759. ],
  760. "parameters": [
  761. {
  762. "name": "list_id",
  763. "in": "query",
  764. "description": "The numerical id of the list",
  765. "required": true,
  766. "type": "string"
  767. },
  768. {
  769. "name": "slug",
  770. "in": "query",
  771. "description": "You can identify a list by its slug insted of its numerical id",
  772. "required": true,
  773. "type": "string"
  774. },
  775. {
  776. "name": "owner_screen_name",
  777. "in": "query",
  778. "description": "the screen name of the user who owns the list being requested by a slug",
  779. "required": false,
  780. "type": "string"
  781. },
  782. {
  783. "name": "owner_id",
  784. "in": "query",
  785. "description": "The user ID of the user who owns the list being requested by a slug",
  786. "required": false,
  787. "type": "string"
  788. },
  789. {
  790. "name": "cursor",
  791. "in": "query",
  792. "description": "Breaks the results into pages",
  793. "required": false,
  794. "type": "string"
  795. },
  796. {
  797. "name": "include_entities",
  798. "in": "query",
  799. "description": "Wehn set to either true, t or 1",
  800. "required": false,
  801. "type": "string"
  802. },
  803. {
  804. "name": "skip_status",
  805. "in": "query",
  806. "description": "When set to either true, t or 1",
  807. "required": false,
  808. "type": "string"
  809. }
  810. ],
  811. "responses": {
  812. "200": {
  813. "description": "Success",
  814. "schema": {
  815. "$ref": "#/definitions/Cursor_lists"
  816. }
  817. }
  818. }
  819. }
  820. },
  821. "/lists/subscribers/create": {
  822. "post": {
  823. "description": "Subscribes the authenticated user to the specified list",
  824. "security": [
  825. {
  826. "oauth": [
  827. "basic"
  828. ]
  829. }
  830. ],
  831. "parameters": [
  832. {
  833. "name": "list_id",
  834. "in": "query",
  835. "description": "The numerical id of the list",
  836. "required": true,
  837. "type": "string"
  838. },
  839. {
  840. "name": "slug",
  841. "in": "query",
  842. "description": "You can identify a list being requested by a slug",
  843. "required": true,
  844. "type": "string"
  845. },
  846. {
  847. "name": "owner_screen_name",
  848. "in": "query",
  849. "description": "the screen name of the user who owns the list being requested by a slug",
  850. "required": false,
  851. "type": "string"
  852. },
  853. {
  854. "name": "owner_id",
  855. "in": "query",
  856. "description": "The user ID of the user who owns the list being requested by a slug",
  857. "required": false,
  858. "type": "string"
  859. }
  860. ],
  861. "responses": {
  862. "200": {
  863. "description": "Success",
  864. "schema": {
  865. "$ref": "#/definitions/Lists"
  866. }
  867. }
  868. }
  869. }
  870. },
  871. "/lists/subscribers/show": {
  872. "get": {
  873. "description": "Check if the specified user is a subscriber of the specified list",
  874. "security": [
  875. {
  876. "oauth": [
  877. "basic"
  878. ]
  879. }
  880. ],
  881. "parameters": [
  882. {
  883. "name": "list_id",
  884. "in": "query",
  885. "description": "The numerical id of the list",
  886. "required": true,
  887. "type": "string"
  888. },
  889. {
  890. "name": "slug",
  891. "in": "query",
  892. "description": "You can identify a list being requested by a slug",
  893. "required": true,
  894. "type": "string"
  895. },
  896. {
  897. "name": "owner_screen_name",
  898. "in": "query",
  899. "description": "The screen name of the user who owns the list being requested by a slug",
  900. "required": false,
  901. "type": "string"
  902. },
  903. {
  904. "name": "user_id",
  905. "in": "query",
  906. "description": "The id of the user for whom to remove from the list",
  907. "required": false,
  908. "type": "string"
  909. },
  910. {
  911. "name": "screen_name",
  912. "in": "query",
  913. "description": "The screen name of the user for whom to remove from the list",
  914. "required": false,
  915. "type": "string"
  916. },
  917. {
  918. "name": "owner_id",
  919. "in": "query",
  920. "description": "The is of the user who wons the list being requested by a slug",
  921. "required": false,
  922. "type": "string"
  923. },
  924. {
  925. "name": "include_entities",
  926. "in": "query",
  927. "description": "Wehn set to either true, t or 1",
  928. "required": false,
  929. "type": "string"
  930. },
  931. {
  932. "name": "skip_status",
  933. "in": "query",
  934. "description": "When set to either true, t or 1",
  935. "required": false,
  936. "type": "string"
  937. }
  938. ],
  939. "responses": {
  940. "200": {
  941. "description": "Success",
  942. "schema": {
  943. "$ref": "#/definitions/Users"
  944. }
  945. }
  946. }
  947. }
  948. },
  949. "/lists/subscribers/destroy": {
  950. "get": {
  951. "description": "Returns list of subscribers destroy",
  952. "parameters": [
  953. {
  954. "name": "list_id",
  955. "in": "query",
  956. "description": "The numerical id of the list",
  957. "required": true,
  958. "type": "string"
  959. },
  960. {
  961. "name": "slug",
  962. "in": "query",
  963. "description": "You can identify a list being requested by a slug",
  964. "required": true,
  965. "type": "string"
  966. },
  967. {
  968. "name": "owner_screen_name",
  969. "in": "query",
  970. "description": "the screen name of the user who owns the list being requested by a slug",
  971. "required": false,
  972. "type": "string"
  973. },
  974. {
  975. "name": "owner_id",
  976. "in": "query",
  977. "description": "The user ID of the user who owns the list being requested by a slug",
  978. "required": false,
  979. "type": "string"
  980. }
  981. ],
  982. "responses": {
  983. "200": {
  984. "description": "Success"
  985. }
  986. }
  987. }
  988. },
  989. "/lists/members/create_all": {
  990. "get": {
  991. "description": "Returns lists of members create_all",
  992. "security": [
  993. {
  994. "oauth": [
  995. "basic"
  996. ]
  997. }
  998. ],
  999. "parameters": [
  1000. {
  1001. "name": "list_id",
  1002. "in": "query",
  1003. "description": "The numerical id of the list",
  1004. "required": true,
  1005. "type": "string"
  1006. },
  1007. {
  1008. "name": "slug",
  1009. "in": "query",
  1010. "description": "You can identify a list being requested by a slug",
  1011. "required": true,
  1012. "type": "string"
  1013. },
  1014. {
  1015. "name": "owner_screen_name",
  1016. "in": "query",
  1017. "description": "the screen name of the user who owns the list being requested by a slug",
  1018. "required": false,
  1019. "type": "string"
  1020. },
  1021. {
  1022. "name": "owner_id",
  1023. "in": "query",
  1024. "description": "The user ID of the user who owns the list being requested by a slug",
  1025. "required": false,
  1026. "type": "string"
  1027. },
  1028. {
  1029. "name": "user_id",
  1030. "in": "query",
  1031. "description": "The id of the user for whom to remove from the list",
  1032. "required": false,
  1033. "type": "string"
  1034. },
  1035. {
  1036. "name": "screen_name",
  1037. "in": "query",
  1038. "description": "The screen name of the user for whom to remove from the list",
  1039. "required": false,
  1040. "type": "string"
  1041. }
  1042. ],
  1043. "responses": {
  1044. "200": {
  1045. "description": "Success"
  1046. }
  1047. }
  1048. }
  1049. },
  1050. "/list/members/show": {
  1051. "get": {
  1052. "description": "Check if the specified user is a member of the specified list",
  1053. "security": [
  1054. {
  1055. "oauth": [
  1056. "basic"
  1057. ]
  1058. }
  1059. ],
  1060. "parameters": [
  1061. {
  1062. "name": "list_id",
  1063. "in": "query",
  1064. "description": "The numerical id of the list",
  1065. "required": true,
  1066. "type": "string"
  1067. },
  1068. {
  1069. "name": "slug",
  1070. "in": "query",
  1071. "description": "You can identify a list being requested by a slug",
  1072. "required": true,
  1073. "type": "string"
  1074. },
  1075. {
  1076. "name": "user_id",
  1077. "in": "query",
  1078. "description": "The id of the user for whom to remove from the list",
  1079. "required": false,
  1080. "type": "string"
  1081. },
  1082. {
  1083. "name": "screen_name",
  1084. "in": "query",
  1085. "description": "The screen name of the user for whom to remove from the list",
  1086. "required": false,
  1087. "type": "string"
  1088. },
  1089. {
  1090. "name": "owner_screen_name",
  1091. "in": "query",
  1092. "description": "The screen name of the user who owns the list being requested by a slug",
  1093. "required": false,
  1094. "type": "string"
  1095. },
  1096. {
  1097. "name": "owner_id",
  1098. "in": "query",
  1099. "description": "The user ID of the user who owns the list being requested by a slug",
  1100. "required": false,
  1101. "type": "string"
  1102. },
  1103. {
  1104. "name": "include_entities",
  1105. "in": "query",
  1106. "description": "Wehn set to either true, t or 1",
  1107. "required": false,
  1108. "type": "string"
  1109. },
  1110. {
  1111. "name": "skip_status",
  1112. "in": "query",
  1113. "description": "When set to either true, t or 1",
  1114. "required": false,
  1115. "type": "string"
  1116. }
  1117. ],
  1118. "responses": {
  1119. "200": {
  1120. "description": "Success",
  1121. "schema": {
  1122. "$ref": "#/definitions/Users"
  1123. }
  1124. }
  1125. }
  1126. }
  1127. },
  1128. "/list/members": {
  1129. "get": {
  1130. "description": "Returns the members of the specified list",
  1131. "security": [
  1132. {
  1133. "oauth": [
  1134. "basic"
  1135. ]
  1136. }
  1137. ],
  1138. "parameters": [
  1139. {
  1140. "name": "list_id",
  1141. "in": "query",
  1142. "description": "The numerical id of the list",
  1143. "required": true,
  1144. "type": "string"
  1145. },
  1146. {
  1147. "name": "slug",
  1148. "in": "query",
  1149. "description": "You can identify a list being requested by a slug",
  1150. "required": true,
  1151. "type": "string"
  1152. },
  1153. {
  1154. "name": "owner_screen_name",
  1155. "in": "query",
  1156. "description": "The screen name of the user who owns the list being requested by a slug",
  1157. "required": false,
  1158. "type": "string"
  1159. },
  1160. {
  1161. "name": "owner_id",
  1162. "in": "query",
  1163. "description": "The user ID of the user who owns the list being requested by a slug",
  1164. "required": false,
  1165. "type": "string"
  1166. },
  1167. {
  1168. "name": "include_entities",
  1169. "in": "query",
  1170. "description": "Wehn set to either true, t or 1",
  1171. "required": false,
  1172. "type": "string"
  1173. },
  1174. {
  1175. "name": "skip_status",
  1176. "in": "query",
  1177. "description": "When set to either true, t or 1",
  1178. "required": false,
  1179. "type": "string"
  1180. },
  1181. {
  1182. "name": "cursor",
  1183. "in": "query",
  1184. "description": "Breaks the results into pages",
  1185. "required": false,
  1186. "type": "string"
  1187. }
  1188. ],
  1189. "responses": {
  1190. "200": {
  1191. "description": "Success",
  1192. "schema": {
  1193. "$ref": "#/definitions/Users"
  1194. }
  1195. }
  1196. }
  1197. }
  1198. },
  1199. "/list/members/create": {
  1200. "post": {
  1201. "description": "Returns list of members create",
  1202. "security": [
  1203. {
  1204. "oauth": [
  1205. "basic"
  1206. ]
  1207. }
  1208. ],
  1209. "parameters": [
  1210. {
  1211. "name": "list_id",
  1212. "in": "query",
  1213. "description": "The numerical id of the list",
  1214. "required": true,
  1215. "type": "string"
  1216. },
  1217. {
  1218. "name": "slug",
  1219. "in": "query",
  1220. "description": "You can identify a list being requested by a slug",
  1221. "required": true,
  1222. "type": "string"
  1223. },
  1224. {
  1225. "name": "screen_name",
  1226. "in": "query",
  1227. "description": "The screen name of the user for whom to remove from the list",
  1228. "required": false,
  1229. "type": "string"
  1230. },
  1231. {
  1232. "name": "owner_screen_name",
  1233. "in": "query",
  1234. "description": "The screen name of the user who owns the list being requested by a slug",
  1235. "required": false,
  1236. "type": "string"
  1237. },
  1238. {
  1239. "name": "owner_id",
  1240. "in": "query",
  1241. "description": "The user ID of the user who owns the list being requested by a slug",
  1242. "required": false,
  1243. "type": "string"
  1244. }
  1245. ],
  1246. "responses": {
  1247. "200": {
  1248. "description": "Success"
  1249. }
  1250. }
  1251. }
  1252. },
  1253. "/lists/destroy": {
  1254. "post": {
  1255. "description": "Returns list of destroy",
  1256. "security": [
  1257. {
  1258. "oauth": [
  1259. "basic"
  1260. ]
  1261. }
  1262. ],
  1263. "parameters": [
  1264. {
  1265. "name": "list_id",
  1266. "in": "query",
  1267. "description": "The numerical id of the list",
  1268. "required": true,
  1269. "type": "string"
  1270. },
  1271. {
  1272. "name": "slug",
  1273. "in": "query",
  1274. "description": "You can identify a list being requested by a slug",
  1275. "required": true,
  1276. "type": "string"
  1277. },
  1278. {
  1279. "name": "owner_screen_name",
  1280. "in": "query",
  1281. "description": "The screen name of the user who owns the list being requested by a slug",
  1282. "required": false,
  1283. "type": "string"
  1284. },
  1285. {
  1286. "name": "owner_id",
  1287. "in": "query",
  1288. "description": "The user ID of the user who owns the list being requested by a slug",
  1289. "required": false,
  1290. "type": "string"
  1291. }
  1292. ],
  1293. "responses": {
  1294. "200": {
  1295. "description": "Success",
  1296. "schema": {
  1297. "$ref": "#/definitions/Lists"
  1298. }
  1299. }
  1300. }
  1301. }
  1302. },
  1303. "/lists/update": {
  1304. "post": {
  1305. "description": "Returns lists of updates",
  1306. "security": [
  1307. {
  1308. "oauth": [
  1309. "basic"
  1310. ]
  1311. }
  1312. ],
  1313. "parameters": [
  1314. {
  1315. "name": "list_id",
  1316. "in": "query",
  1317. "description": "The numerical id of the list",
  1318. "required": true,
  1319. "type": "string"
  1320. },
  1321. {
  1322. "name": "slug",
  1323. "in": "query",
  1324. "description": "You can identify a list being requested by a slug",
  1325. "required": true,
  1326. "type": "string"
  1327. },
  1328. {
  1329. "name": "owner_screen_name",
  1330. "in": "query",
  1331. "description": "The screen name of the user who owns the list being requested by a slug",
  1332. "required": false,
  1333. "type": "string"
  1334. },
  1335. {
  1336. "name": "owner_id",
  1337. "in": "query",
  1338. "description": "The user ID of the user who owns the list being requested by a slug",
  1339. "required": false,
  1340. "type": "string"
  1341. },
  1342. {
  1343. "name": "name",
  1344. "in": "query",
  1345. "description": "The name for the list",
  1346. "required": false,
  1347. "type": "string"
  1348. },
  1349. {
  1350. "name": "mode",
  1351. "in": "query",
  1352. "description": "Whether your list is public or private",
  1353. "required": false,
  1354. "type": "string"
  1355. },
  1356. {
  1357. "name": "description",
  1358. "in": "query",
  1359. "description": "The description to give the list",
  1360. "required": false,
  1361. "type": "string"
  1362. }
  1363. ],
  1364. "responses": {
  1365. "200": {
  1366. "description": "Success"
  1367. }
  1368. }
  1369. }
  1370. },
  1371. "/lists/create": {
  1372. "post": {
  1373. "description": "Returns list of create",
  1374. "security": [
  1375. {
  1376. "oauth": [
  1377. "basic"
  1378. ]
  1379. }
  1380. ],
  1381. "parameters": [
  1382. {
  1383. "name": "name",
  1384. "in": "query",
  1385. "description": "The name for the list",
  1386. "required": false,
  1387. "type": "string"
  1388. },
  1389. {
  1390. "name": "mode",
  1391. "in": "query",
  1392. "description": "Whether your list is public or private",
  1393. "required": false,
  1394. "type": "string"
  1395. },
  1396. {
  1397. "name": "description",
  1398. "in": "query",
  1399. "description": "The description to give the list",
  1400. "required": false,
  1401. "type": "string"
  1402. }
  1403. ],
  1404. "responses": {
  1405. "200": {
  1406. "description": "Success",
  1407. "schema": {
  1408. "$ref": "#/definitions/Lists"
  1409. }
  1410. }
  1411. }
  1412. }
  1413. },
  1414. "/lists/show": {
  1415. "get": {
  1416. "description": "Returns list of show",
  1417. "security": [
  1418. {
  1419. "oauth": [
  1420. "basic"
  1421. ]
  1422. }
  1423. ],
  1424. "parameters": [
  1425. {
  1426. "name": "list_id",
  1427. "in": "query",
  1428. "description": "The numerical id of the list",
  1429. "required": true,
  1430. "type": "string"
  1431. },
  1432. {
  1433. "name": "slug",
  1434. "in": "query",
  1435. "description": "You can identify a list being requested by a slug",
  1436. "required": true,
  1437. "type": "string"
  1438. },
  1439. {
  1440. "name": "owner_screen_name",
  1441. "in": "query",
  1442. "description": "The screen name of the user who owns the list being requested by a slug",
  1443. "required": false,
  1444. "type": "string"
  1445. },
  1446. {
  1447. "name": "owner_id",
  1448. "in": "query",
  1449. "description": "The user ID of the user who owns the list being requested by a slug",
  1450. "required": false,
  1451. "type": "string"
  1452. }
  1453. ],
  1454. "responses": {
  1455. "200": {
  1456. "description": "Success",
  1457. "schema": {
  1458. "$ref": "#/definitions/Lists"
  1459. }
  1460. }
  1461. }
  1462. }
  1463. },
  1464. "/lists/subscriptions": {
  1465. "get": {
  1466. "description": "Returns list of subscriptions",
  1467. "security": [
  1468. {
  1469. "oauth": [
  1470. "basic"
  1471. ]
  1472. }
  1473. ],
  1474. "parameters": [
  1475. {
  1476. "name": "screen_name",
  1477. "in": "query",
  1478. "description": "The screen name of the user",
  1479. "required": false,
  1480. "type": "string"
  1481. },
  1482. {
  1483. "name": "user_id",
  1484. "in": "query",
  1485. "description": "The id of the user for whom to return results for",
  1486. "required": false,
  1487. "type": "string"
  1488. },
  1489. {
  1490. "name": "count",
  1491. "in": "query",
  1492. "description": "The amount of results to return per page",
  1493. "required": false,
  1494. "type": "string"
  1495. },
  1496. {
  1497. "name": "cursor",
  1498. "in": "query",
  1499. "description": "Breaks the results into pages",
  1500. "required": false,
  1501. "type": "string"
  1502. }
  1503. ],
  1504. "responses": {
  1505. "200": {
  1506. "description": "Success",
  1507. "schema": {
  1508. "$ref": "#/definitions/Cursor_lists"
  1509. }
  1510. }
  1511. }
  1512. }
  1513. },
  1514. "/list/members/destroy_all": {
  1515. "get": {
  1516. "description": "Returns lists of destroy all",
  1517. "security": [
  1518. {
  1519. "oauth": [
  1520. "basic"
  1521. ]
  1522. }
  1523. ],
  1524. "parameters": [
  1525. {
  1526. "name": "list_id",
  1527. "in": "query",
  1528. "description": "The numerical id of the list",
  1529. "required": true,
  1530. "type": "string"
  1531. },
  1532. {
  1533. "name": "slug",
  1534. "in": "query",
  1535. "description": "You can identify a list being requested by a slug",
  1536. "required": true,
  1537. "type": "string"
  1538. },
  1539. {
  1540. "name": "user_id",
  1541. "in": "query",
  1542. "description": "The id of the user for whom to remove from the list",
  1543. "required": false,
  1544. "type": "string"
  1545. },
  1546. {
  1547. "name": "screen_name",
  1548. "in": "query",
  1549. "description": "The screen name of the user for whom to remove from the list",
  1550. "required": false,
  1551. "type": "string"
  1552. },
  1553. {
  1554. "name": "owner_screen_name",
  1555. "in": "query",
  1556. "description": "The screen name of the user who owns the list being requested by a slug",
  1557. "required": false,
  1558. "type": "string"
  1559. },
  1560. {
  1561. "name": "owner_id",
  1562. "in": "query",
  1563. "description": "The user ID of the user who owns the list being requested by a slug",
  1564. "required": false,
  1565. "type": "string"
  1566. }
  1567. ],
  1568. "responses": {
  1569. "200": {
  1570. "description": "Success",
  1571. "schema": {
  1572. "$ref": "#/definitions/Cursor_lists"
  1573. }
  1574. }
  1575. }
  1576. }
  1577. },
  1578. "/direct_messages/sent": {
  1579. "get": {
  1580. "description": "return 20 most recent direct messages sent",
  1581. "parameters": [
  1582. {
  1583. "name": "since_id",
  1584. "in": "query",
  1585. "required": false,
  1586. "type": "string"
  1587. },
  1588. {
  1589. "name": "max_id",
  1590. "in": "query",
  1591. "required": false,
  1592. "type": "string"
  1593. },
  1594. {
  1595. "name": "count",
  1596. "in": "query",
  1597. "required": false,
  1598. "type": "string"
  1599. },
  1600. {
  1601. "name": "page",
  1602. "in": "query",
  1603. "required": false,
  1604. "type": "string"
  1605. },
  1606. {
  1607. "name": "include_entities",
  1608. "in": "query",
  1609. "required": false,
  1610. "type": "string"
  1611. }
  1612. ],
  1613. "responses": {
  1614. "200": {
  1615. "description": "OK",
  1616. "schema": {
  1617. "type": "array",
  1618. "items": {
  1619. "$ref": "#/definitions/Messages"
  1620. }
  1621. }
  1622. }
  1623. }
  1624. }
  1625. },
  1626. "/direct_messages/show": {
  1627. "get": {
  1628. "description": "returns a single direct message specified by an id",
  1629. "security": [
  1630. {
  1631. "oauth": [
  1632. "basic"
  1633. ]
  1634. }
  1635. ],
  1636. "parameters": [
  1637. {
  1638. "name": "id",
  1639. "in": "query",
  1640. "description": "ID of direct message",
  1641. "type": "string",
  1642. "required": true
  1643. }
  1644. ],
  1645. "responses": {
  1646. "200": {
  1647. "description": "OK",
  1648. "schema": {
  1649. "type": "array",
  1650. "items": {
  1651. "$ref": "#/definitions/Messages"
  1652. }
  1653. }
  1654. }
  1655. }
  1656. }
  1657. },
  1658. "/search/tweets": {
  1659. "get": {
  1660. "description": "returns collection of relevant Tweets matching query",
  1661. "security": [
  1662. {
  1663. "oauth": [
  1664. "basic"
  1665. ]
  1666. }
  1667. ],
  1668. "parameters": [
  1669. {
  1670. "name": "q",
  1671. "in": "query",
  1672. "description": "URL-encoded search query of 500 characters max",
  1673. "type": "string",
  1674. "required": true
  1675. },
  1676. {
  1677. "name": "geocode",
  1678. "in": "query",
  1679. "description": "returns tweets by users located within given radius",
  1680. "type": "string",
  1681. "required": false
  1682. },
  1683. {
  1684. "name": "lang",
  1685. "in": "query",
  1686. "description": "restricts tweets to a given language",
  1687. "type": "string",
  1688. "required": false
  1689. },
  1690. {
  1691. "name": "locale",
  1692. "in": "query",
  1693. "description": "language of query you are sending",
  1694. "type": "string",
  1695. "required": false
  1696. },
  1697. {
  1698. "name": "result_type",
  1699. "in": "query",
  1700. "description": "specifies type of search results you prefer",
  1701. "type": "string",
  1702. "required": false
  1703. },
  1704. {
  1705. "name": "count",
  1706. "in": "query",
  1707. "description": "number of tweets to return",
  1708. "type": "string"
  1709. },
  1710. {
  1711. "name": "until",
  1712. "in": "query",
  1713. "description": "returns tweets created before given date",
  1714. "type": "string"
  1715. },
  1716. {
  1717. "name": "since_id",
  1718. "in": "query",
  1719. "description": "return results with ID greater than specified",
  1720. "type": "string"
  1721. },
  1722. {
  1723. "name": "max_id",
  1724. "in": "query",
  1725. "description": "returns results with an ID less than/equal to specified ID",
  1726. "type": "string"
  1727. },
  1728. {
  1729. "name": "include_entities",
  1730. "in": "query",
  1731. "description": "whether or not to include entities",
  1732. "type": "string"
  1733. },
  1734. {
  1735. "name": "callback",
  1736. "in": "query",
  1737. "description": "response will use the callback with given name",
  1738. "type": "string"
  1739. }
  1740. ],
  1741. "responses": {
  1742. "200": {
  1743. "description": "OK",
  1744. "schema": {
  1745. "type": "array",
  1746. "items": {
  1747. "$ref": "#/definitions/Tweets"
  1748. }
  1749. }
  1750. }
  1751. }
  1752. }
  1753. },
  1754. "/saved_searches/list": {
  1755. "get": {
  1756. "description": "Returns the authenticated user's saved search queries",
  1757. "security": [
  1758. {
  1759. "oauth": [
  1760. "basic"
  1761. ]
  1762. }
  1763. ],
  1764. "responses": {
  1765. "200": {
  1766. "description": "Success",
  1767. "schema": {
  1768. "type": "array",
  1769. "items": {
  1770. "$ref": "#/definitions/Query"
  1771. }
  1772. }
  1773. }
  1774. }
  1775. }
  1776. },
  1777. "/saved_searches/show/{id}": {
  1778. "get": {
  1779. "description": "Retrieve the information for the saved search represented by the given id",
  1780. "security": [
  1781. {
  1782. "oauth": [
  1783. "basic"
  1784. ]
  1785. }
  1786. ],
  1787. "parameters": [
  1788. {
  1789. "name": "id",
  1790. "in": "path",
  1791. "description": "The id of the saved search",
  1792. "required": true,
  1793. "type": "string"
  1794. }
  1795. ],
  1796. "responses": {
  1797. "200": {
  1798. "description": "Success",
  1799. "schema": {
  1800. "$ref": "#/definitions/Query"
  1801. }
  1802. }
  1803. }
  1804. }
  1805. },
  1806. "/saved_searches/create": {
  1807. "post": {
  1808. "description": "Create a new saved search for the authenticated user",
  1809. "security": [
  1810. {
  1811. "oauth": [
  1812. "basic"
  1813. ]
  1814. }
  1815. ],
  1816. "parameters": [
  1817. {
  1818. "name": "query",
  1819. "in": "query",
  1820. "description": "The query of the search the user would like to save",
  1821. "required": true,
  1822. "type": "string"
  1823. }
  1824. ],
  1825. "responses": {
  1826. "200": {
  1827. "description": "Success",
  1828. "schema": {
  1829. "$ref": "#/definitions/Query"
  1830. }
  1831. }
  1832. }
  1833. }
  1834. },
  1835. "/saved_searches/destroy/{id}": {
  1836. "post": {
  1837. "description": "Destroy a saved search for the authenticating user",
  1838. "security": [
  1839. {
  1840. "oauth": [
  1841. "basic"
  1842. ]
  1843. }
  1844. ],
  1845. "parameters": [
  1846. {
  1847. "name": "id",
  1848. "in": "path",
  1849. "description": "The id of the saved search",
  1850. "required": true,
  1851. "type": "string"
  1852. }
  1853. ],
  1854. "responses": {
  1855. "200": {
  1856. "description": "Success",
  1857. "schema": {
  1858. "$ref": "#/definitions/Query"
  1859. }
  1860. }
  1861. }
  1862. }
  1863. },
  1864. "/direct_messages": {
  1865. "get": {
  1866. "description": "return 20 most recent direct messages sent to user",
  1867. "security": [
  1868. {
  1869. "oauth": [
  1870. "basic"
  1871. ]
  1872. }
  1873. ],
  1874. "parameters": [
  1875. {
  1876. "name": "since_id",
  1877. "in": "query",
  1878. "description": "return results with ID greater than specified",
  1879. "type": "string"
  1880. },
  1881. {
  1882. "name": "max_id",
  1883. "in": "query",
  1884. "description": "returns results with an ID less than/equal to specified ID",
  1885. "type": "string"
  1886. },
  1887. {
  1888. "name": "include_entities",
  1889. "in": "query",
  1890. "description": "whether or not to include entities",
  1891. "type": "string"
  1892. },
  1893. {
  1894. "name": "skip_status",
  1895. "in": "query",
  1896. "description": "whether or not to include status",
  1897. "type": "string"
  1898. }
  1899. ],
  1900. "responses": {
  1901. "200": {
  1902. "description": "OK",
  1903. "schema": {
  1904. "type": "array",
  1905. "items": {
  1906. "$ref": "#/definitions/Messages"
  1907. }
  1908. }
  1909. }
  1910. }
  1911. }
  1912. },
  1913. "/direct_messages/destroy": {
  1914. "post": {
  1915. "description": "destroys direct messages specified in required ID",
  1916. "security": [
  1917. {
  1918. "oauth": [
  1919. "basic"
  1920. ]
  1921. }
  1922. ],
  1923. "parameters": [
  1924. {
  1925. "name": "id",
  1926. "in": "query",
  1927. "description": "ID of direct message to delete",
  1928. "type": "string",
  1929. "required": true
  1930. },
  1931. {
  1932. "name": "include_entities",
  1933. "in": "query",
  1934. "description": "whether or not to include entities",
  1935. "type": "string"
  1936. }
  1937. ],
  1938. "responses": {
  1939. "200": {
  1940. "description": "OK",
  1941. "schema": {
  1942. "$ref": "#/definitions/Messages"
  1943. }
  1944. }
  1945. }
  1946. }
  1947. },
  1948. "/direct_messages/new": {
  1949. "post": {
  1950. "description": "sends a new direct message to specified user",
  1951. "security": [
  1952. {
  1953. "oauth": [
  1954. "basic"
  1955. ]
  1956. }
  1957. ],
  1958. "parameters": [
  1959. {
  1960. "name": "user_id",
  1961. "in": "query",
  1962. "description": "description",
  1963. "type": "string",
  1964. "required": true
  1965. },
  1966. {
  1967. "name": "screen_name",
  1968. "in": "query",
  1969. "description": "screen name of user receiving message",
  1970. "type": "string"
  1971. },
  1972. {
  1973. "name": "text",
  1974. "in": "query",
  1975. "description": "text of your direct message",
  1976. "type": "string",
  1977. "required": true
  1978. }
  1979. ],
  1980. "responses": {
  1981. "200": {
  1982. "description": "OK",
  1983. "schema": {
  1984. "$ref": "#/definitions/Messages"
  1985. }
  1986. }
  1987. }
  1988. }
  1989. },
  1990. "/friends/ids": {
  1991. "get": {
  1992. "description": "returns a cursored collection of user IDs followed by user",
  1993. "security": [
  1994. {
  1995. "oauth": [
  1996. "basic"
  1997. ]
  1998. }
  1999. ],
  2000. "parameters": [
  2001. {
  2002. "name": "user_id",
  2003. "in": "query",
  2004. "description": "ID of user for whom to return results for",
  2005. "type": "string"
  2006. },
  2007. {
  2008. "name": "screen_name",
  2009. "in": "query",
  2010. "description": "screen name of user for whom to return results for",
  2011. "type": "string"
  2012. },
  2013. {
  2014. "name": "cursor",
  2015. "in": "query",
  2016. "description": "causes list of connections to be broken in pages",
  2017. "type": "string"
  2018. },
  2019. {
  2020. "name": "stringify_ids",
  2021. "in": "query",
  2022. "description": "IDs converted to strings",
  2023. "type": "string"
  2024. },
  2025. {
  2026. "name": "count",
  2027. "in": "query",
  2028. "description": "number of IDs to attempt retrieval of",
  2029. "type": "string"
  2030. }
  2031. ],
  2032. "responses": {
  2033. "200": {
  2034. "description": "OK",
  2035. "schema": {
  2036. "$ref": "#/definitions/Cursor_ids"
  2037. }
  2038. }
  2039. }
  2040. }
  2041. },
  2042. "/followers/ids": {
  2043. "get": {
  2044. "description": "returns a cursored collection of user IDs following the user",
  2045. "security": [
  2046. {
  2047. "oauth": [
  2048. "basic"
  2049. ]
  2050. }
  2051. ],
  2052. "parameters": [
  2053. {
  2054. "name": "user_id",
  2055. "in": "query",
  2056. "description": "ID of user for whom to return results for",
  2057. "type": "string"
  2058. },
  2059. {
  2060. "name": "screen_name",
  2061. "in": "query",
  2062. "description": "screen name of user for whom to return results for",
  2063. "type": "string"
  2064. },
  2065. {
  2066. "name": "cursor",
  2067. "in": "query",
  2068. "description": "causes list of connections to be broken in pages",
  2069. "type": "string"
  2070. },
  2071. {
  2072. "name": "stringify_ids",
  2073. "in": "query",
  2074. "description": "IDs converted to strings",
  2075. "type": "string"
  2076. },
  2077. {
  2078. "name": "count",
  2079. "in": "query",
  2080. "description": "number of IDs to attempt retrieval of",
  2081. "type": "string"
  2082. }
  2083. ],
  2084. "responses": {
  2085. "200": {
  2086. "description": "OK",
  2087. "schema": {
  2088. "$ref": "#/definitions/Cursor_ids"
  2089. }
  2090. }
  2091. }
  2092. }
  2093. },
  2094. "/friendships/incoming": {
  2095. "get": {
  2096. "description": "returns collection of IDs of users with pending follow request",
  2097. "security": [
  2098. {
  2099. "oauth": [
  2100. "basic"
  2101. ]
  2102. }
  2103. ],
  2104. "parameters": [
  2105. {
  2106. "name": "cursor",
  2107. "in": "query",
  2108. "description": "causes list of connections to be broken in pages",
  2109. "type": "string"
  2110. },
  2111. {
  2112. "name": "stringify_ids",
  2113. "in": "query",
  2114. "description": "IDs converted to strings",
  2115. "type": "string"
  2116. }
  2117. ],
  2118. "responses": {
  2119. "200": {
  2120. "description": "OK",
  2121. "schema": {
  2122. "$ref": "#/definitions/Cursor_ids"
  2123. }
  2124. }
  2125. }
  2126. }
  2127. },
  2128. "/friendships/outgoing": {
  2129. "get": {
  2130. "description": "returns collection of IDs of users with pending follow request from the user",
  2131. "security": [
  2132. {
  2133. "oauth": [
  2134. "basic"
  2135. ]
  2136. }
  2137. ],
  2138. "parameters": [
  2139. {
  2140. "name": "cursor",
  2141. "in": "query",
  2142. "description": "causes list of connections to be broken in pages",
  2143. "type": "string"
  2144. },
  2145. {
  2146. "name": "stringify_ids",
  2147. "in": "query",
  2148. "description": "IDs converted to strings",
  2149. "type": "string"
  2150. }
  2151. ],
  2152. "responses": {
  2153. "200": {
  2154. "description": "OK",
  2155. "schema": {
  2156. "$ref": "#/definitions/Cursor_ids"
  2157. }
  2158. }
  2159. }
  2160. }
  2161. },
  2162. "/friendships/create": {
  2163. "post": {
  2164. "description": "allows users to follow user sepcified by ID",
  2165. "security": [
  2166. {
  2167. "oauth": [
  2168. "basic"
  2169. ]
  2170. }
  2171. ],
  2172. "parameters": [
  2173. {
  2174. "name": "screen_name",
  2175. "in": "query",
  2176. "description": "screen name of user for whom to befriend",
  2177. "type": "string"
  2178. },
  2179. {
  2180. "name": "user_id",
  2181. "in": "query",
  2182. "description": "ID of user for whom to befriend",
  2183. "type": "string"
  2184. },
  2185. {
  2186. "name": "follow",
  2187. "in": "query",
  2188. "description": "enable notifications for target user",
  2189. "type": "string"
  2190. }
  2191. ],
  2192. "responses": {
  2193. "200": {
  2194. "description": "OK",
  2195. "schema": {
  2196. "$ref": "#/definitions/Users"
  2197. }
  2198. }
  2199. }
  2200. }
  2201. },
  2202. "/friendships/destroy": {
  2203. "post": {
  2204. "description": "allows user to unfollow user psecified by ID",
  2205. "security": [
  2206. {
  2207. "oauth": [
  2208. "basic"
  2209. ]
  2210. }
  2211. ],
  2212. "parameters": [
  2213. {
  2214. "name": "screen_name",
  2215. "in": "query",
  2216. "description": "screen name of user for whom to befriend",
  2217. "type": "string",
  2218. "required": true
  2219. },
  2220. {
  2221. "name": "user_id",
  2222. "in": "query",
  2223. "description": "ID of user for whom to befriend",
  2224. "type": "string",
  2225. "required": true
  2226. }
  2227. ],
  2228. "responses": {
  2229. "200": {
  2230. "description": "OK",
  2231. "schema": {
  2232. "$ref": "#/definitions/Users"
  2233. }
  2234. }
  2235. }
  2236. }
  2237. },
  2238. "/friendships/update": {
  2239. "post": {
  2240. "description": "Allows one to enable or disable settings for specified user",
  2241. "security": [
  2242. {
  2243. "oauth": [
  2244. "basic"
  2245. ]
  2246. }
  2247. ],
  2248. "parameters": [
  2249. {
  2250. "name": "screen_name",
  2251. "in": "query",
  2252. "description": "screen name of user for whom to befriend",
  2253. "type": "string",
  2254. "required": true
  2255. },
  2256. {
  2257. "name": "user_id",
  2258. "in": "query",
  2259. "description": "ID of user for whom to befriend",
  2260. "type": "string",
  2261. "required": true
  2262. },
  2263. {
  2264. "name": "device",
  2265. "in": "query",
  2266. "description": "enable/disable device notifications for user",
  2267. "type": "string",
  2268. "required": true
  2269. },
  2270. {
  2271. "name": "retweets",
  2272. "in": "query",
  2273. "description": "enable/disable retweets from target user",
  2274. "type": "string",
  2275. "required": true
  2276. }
  2277. ],
  2278. "responses": {
  2279. "200": {
  2280. "description": "OK",
  2281. "schema": {
  2282. "$ref": "#/definitions/Friendship"
  2283. }
  2284. }
  2285. }
  2286. }
  2287. },
  2288. "/friendships/show": {
  2289. "get": {
  2290. "description": "returns detailed info about relationship between two users",
  2291. "security": [
  2292. {
  2293. "oauth": [
  2294. "basic"
  2295. ]
  2296. }
  2297. ],
  2298. "parameters": [
  2299. {
  2300. "name": "source_id",
  2301. "in": "query",
  2302. "description": "user id of subject user",
  2303. "type": "string"
  2304. },
  2305. {
  2306. "name": "source_screen_name",
  2307. "in": "query",
  2308. "description": "screen_name of subject user",
  2309. "type": "string"
  2310. },
  2311. {
  2312. "name": "target_id",
  2313. "in": "query",
  2314. "description": "user id of target user",
  2315. "type": "string",
  2316. "required": true
  2317. },
  2318. {
  2319. "name": "target_screen_name",
  2320. "in": "query",
  2321. "description": "screen name of target user",
  2322. "type": "string",
  2323. "required": true
  2324. }
  2325. ],
  2326. "responses": {
  2327. "200": {
  2328. "description": "OK",
  2329. "schema": {
  2330. "$ref": "#/definitions/Friendship"
  2331. }
  2332. }
  2333. }
  2334. }
  2335. },
  2336. "/account/settings": {
  2337. "get": {
  2338. "summary": "returns settings for user",
  2339. "description": "returns settings for user",
  2340. "security": [
  2341. {
  2342. "oauth": [
  2343. "basic"
  2344. ]
  2345. }
  2346. ],
  2347. "responses": {
  2348. "200": {
  2349. "description": "OK",
  2350. "schema": {
  2351. "$ref": "#/definitions/Settings"
  2352. }
  2353. }
  2354. }
  2355. },
  2356. "post": {
  2357. "summary": "updates user's settings",
  2358. "description": "updates user's settings",
  2359. "security": [
  2360. {
  2361. "oauth": [
  2362. "basic"
  2363. ]
  2364. }
  2365. ],
  2366. "parameters": [
  2367. {
  2368. "name": "trend_location_woeid",
  2369. "in": "query",
  2370. "description": "the Yahoo! Where On Earth ID to user as defaul tend location",
  2371. "type": "string"
  2372. },
  2373. {
  2374. "name": "sleep_time_enabled",
  2375. "in": "query",
  2376. "description": "enables/disables sleep time, silencing notifications",
  2377. "type": "string"
  2378. },
  2379. {
  2380. "name": "start_sleep_time",
  2381. "in": "query",
  2382. "description": "the hour that sleep time should begin if enabled",
  2383. "type": "string"
  2384. },
  2385. {
  2386. "name": "end_sleep_time",
  2387. "in": "query",
  2388. "description": "the hour that sleep time should end if enabled",
  2389. "type": "string"
  2390. },
  2391. {
  2392. "name": "time_zone",
  2393. "in": "query",
  2394. "description": "timezone dates and times should be displayed in",
  2395. "type": "string"
  2396. },
  2397. {
  2398. "name": "lang",
  2399. "in": "query",
  2400. "description": "language which Twitter should render in for the user",
  2401. "type": "string"
  2402. }
  2403. ],
  2404. "responses": {
  2405. "200": {
  2406. "description": "OK",
  2407. "schema": {
  2408. "$ref": "#/definitions/Settings"
  2409. }
  2410. }
  2411. }
  2412. }
  2413. },
  2414. "/account/update_delivery_device": {
  2415. "post": {
  2416. "summary": "sets which device Twitter delivers updates to for user",
  2417. "description": "sets which device Twitter delivers updates to for user",
  2418. "security": [
  2419. {
  2420. "oauth": [
  2421. "basic"
  2422. ]
  2423. }
  2424. ],
  2425. "parameters": [
  2426. {
  2427. "name": "device",
  2428. "in": "query",
  2429. "description": "must be one of sms, none",
  2430. "type": "string",
  2431. "required": true
  2432. },
  2433. {
  2434. "name": "include_entities",
  2435. "in": "query",
  2436. "description": "whether or not to include entities",
  2437. "type": "string"
  2438. }
  2439. ],
  2440. "responses": {
  2441. "200": {
  2442. "description": "OK",
  2443. "schema": {
  2444. "$ref": "#/definitions/Settings"
  2445. }
  2446. }
  2447. }
  2448. }
  2449. },
  2450. "/account/update_profile": {
  2451. "post": {
  2452. "summary": "sets values that users ar eable to set under Account tab",
  2453. "description": "sets values that users ar eable to set under Account tab",
  2454. "security": [
  2455. {
  2456. "oauth": [
  2457. "basic"
  2458. ]
  2459. }
  2460. ],
  2461. "parameters": [
  2462. {
  2463. "name": "name",
  2464. "in": "query",
  2465. "description": "full name of profile",
  2466. "type": "string"
  2467. },
  2468. {
  2469. "name": "url",
  2470. "in": "query",
  2471. "description": "url associated with profile",
  2472. "type": "string"
  2473. },
  2474. {
  2475. "name": "location",
  2476. "in": "query",
  2477. "description": "city or country describing where user of account is.",
  2478. "type": "string"
  2479. },
  2480. {
  2481. "name": "description",
  2482. "in": "query",
  2483. "description": "a description of user owning account",
  2484. "type": "string"
  2485. },
  2486. {
  2487. "name": "include_entities",
  2488. "in": "query",
  2489. "description": "whether or not to include entities",
  2490. "type": "string"
  2491. },
  2492. {
  2493. "name": "skip_status",
  2494. "in": "query",
  2495. "description": "whether or not to include statuses in response",
  2496. "type": "string"
  2497. }
  2498. ],
  2499. "responses": {
  2500. "200": {
  2501. "description": "OK",
  2502. "schema": {
  2503. "$ref": "#/definitions/Settings"
  2504. }
  2505. }
  2506. }
  2507. }
  2508. },
  2509. "/account/update_profile_background_image": {
  2510. "post": {
  2511. "summary": "updates user's profile background image",
  2512. "description": "updates user's profile background image",
  2513. "security": [
  2514. {
  2515. "oauth": [
  2516. "basic"
  2517. ]
  2518. }
  2519. ],
  2520. "consumes": [
  2521. "multipart/form-data"
  2522. ],
  2523. "parameters": [
  2524. {
  2525. "name": "tile",
  2526. "in": "query",
  2527. "description": "whether or not to tile background image",
  2528. "type": "string"
  2529. },
  2530. {
  2531. "name": "use",
  2532. "in": "query",
  2533. "description": "display background image or not",
  2534. "type": "string"
  2535. },
  2536. {
  2537. "name": "include_entities",
  2538. "in": "query",
  2539. "description": "whether or not to include entities",
  2540. "type": "string"
  2541. },
  2542. {
  2543. "name": "skip_status",
  2544. "in": "query",
  2545. "description": "whether or not to include status in returned user objects",
  2546. "type": "string"
  2547. },
  2548. {
  2549. "name": "file",
  2550. "in": "formData",
  2551. "description": "image to replace background image of profile",
  2552. "required": true,
  2553. "type": "file"
  2554. }
  2555. ],
  2556. "responses": {
  2557. "200": {
  2558. "description": "OK",
  2559. "schema": {
  2560. "$ref": "#/definitions/Settings"
  2561. }
  2562. }
  2563. }
  2564. }
  2565. },
  2566. "/account/update_profile_colors": {
  2567. "post": {
  2568. "summary": "sets one or more hex values that controls color scheme",
  2569. "description": "sets one or more hex values that controls color scheme",
  2570. "security": [
  2571. {
  2572. "oauth": [
  2573. "basic"
  2574. ]
  2575. }
  2576. ],
  2577. "parameters": [
  2578. {
  2579. "name": "profile_background_color",
  2580. "in": "query",
  2581. "description": "profile background color",
  2582. "type": "string"
  2583. },
  2584. {
  2585. "name": "profile_link_color",
  2586. "in": "query",
  2587. "description": "profile link color",
  2588. "type": "string"
  2589. },
  2590. {
  2591. "name": "profile_sidebar_border_color",
  2592. "in": "query",
  2593. "description": "profile sidebar's border color",
  2594. "type": "string"
  2595. },
  2596. {
  2597. "name": "profile_sidebar_fill_color",
  2598. "in": "query",
  2599. "description": "profile's sidebar background color",
  2600. "type": "string"
  2601. },
  2602. {
  2603. "name": "profile_text_color",
  2604. "in": "query",
  2605. "description": "profile text color",
  2606. "type": "string"
  2607. },
  2608. {
  2609. "name": "include_entities",
  2610. "in": "query",
  2611. "description": "whether or not to include entities",
  2612. "type": "string"
  2613. },
  2614. {
  2615. "name": "skip_status",
  2616. "in": "query",
  2617. "description": "whether or not to include statuses",
  2618. "type": "string"
  2619. }
  2620. ],
  2621. "responses": {
  2622. "200": {
  2623. "description": "OK",
  2624. "schema": {
  2625. "$ref": "#/definitions/Settings"
  2626. }
  2627. }
  2628. }
  2629. }
  2630. },
  2631. "/account/update_profile_image": {
  2632. "post": {
  2633. "summary": "updates user's profile image",
  2634. "description": "updates user's profile image",
  2635. "security": [
  2636. {
  2637. "oauth": [
  2638. "basic"
  2639. ]
  2640. }
  2641. ],
  2642. "consumes": [
  2643. "multipart/form-data"
  2644. ],
  2645. "parameters": [
  2646. {
  2647. "name": "skip_status",
  2648. "in": "query",
  2649. "description": "whether or not to include statuses",
  2650. "type": "string"
  2651. },
  2652. {
  2653. "name": "image",
  2654. "in": "formData",
  2655. "description": "image to be set as profile image",
  2656. "type": "file",
  2657. "required": true
  2658. }
  2659. ],
  2660. "responses": {
  2661. "200": {
  2662. "description": "OK",
  2663. "schema": {
  2664. "$ref": "#/definitions/Settings"
  2665. }
  2666. }
  2667. }
  2668. }
  2669. },
  2670. "/blocks/list": {
  2671. "get": {
  2672. "summary": "disallows retweets and device notifications from a user",
  2673. "description": "disallows retweets and device notifications from a user",
  2674. "security": [
  2675. {
  2676. "oauth": [
  2677. "basic"
  2678. ]
  2679. }
  2680. ],
  2681. "parameters": [
  2682. {
  2683. "name": "include_entities",
  2684. "in": "query",
  2685. "description": "whether or not to include entities",
  2686. "type": "string"
  2687. },
  2688. {
  2689. "name": "skip_status",
  2690. "in": "query",
  2691. "description": "whether or not to include statuses in response",
  2692. "type": "string"
  2693. },
  2694. {
  2695. "name": "cursor",
  2696. "in": "query",
  2697. "description": "breaks block of user to be broken up into pages",
  2698. "type": "string"
  2699. }
  2700. ],
  2701. "responses": {
  2702. "200": {
  2703. "description": "OK",
  2704. "schema": {
  2705. "$ref": "#/definitions/Cursor_users"
  2706. }
  2707. }
  2708. }
  2709. }
  2710. },
  2711. "/blocks/ids": {
  2712. "get": {
  2713. "summary": "returns array of numeric user ids of blocked users",
  2714. "description": "returns array of numeric user ids of blocked users",
  2715. "security": [
  2716. {
  2717. "oauth": [
  2718. "basic"
  2719. ]
  2720. }
  2721. ],
  2722. "parameters": [
  2723. {
  2724. "name": "stringify_ids",
  2725. "in": "query",
  2726. "description": "returns array of numeric IDs as string IDs",
  2727. "type": "string"
  2728. },
  2729. {
  2730. "name": "cursor",
  2731. "in": "query",
  2732. "description": "breaks up block of user IDs into pages",
  2733. "type": "string"
  2734. }
  2735. ],
  2736. "responses": {
  2737. "200": {
  2738. "description": "OK",
  2739. "schema": {
  2740. "$ref": "#/definitions/Cursor_users"
  2741. }
  2742. }
  2743. }
  2744. }
  2745. },
  2746. "/blocks/create": {
  2747. "post": {
  2748. "summary": "blocks the specified user",
  2749. "description": "blocks the specified user",
  2750. "security": [
  2751. {
  2752. "oauth": [
  2753. "basic"
  2754. ]
  2755. }
  2756. ],
  2757. "parameters": [
  2758. {
  2759. "name": "screen_name",
  2760. "in": "query",
  2761. "description": "screen name of user to be blocked",
  2762. "type": "string",
  2763. "required": true
  2764. },
  2765. {
  2766. "name": "user_id",
  2767. "in": "query",
  2768. "description": "ID of user to be blocked",
  2769. "type": "string",
  2770. "required": true
  2771. },
  2772. {
  2773. "name": "include_entities",
  2774. "in": "query",
  2775. "description": "whether or not to include entities",
  2776. "type": "string"
  2777. },
  2778. {
  2779. "name": "skip_status",
  2780. "in": "query",
  2781. "description": "whether or not to skip statuses",
  2782. "type": "string"
  2783. }
  2784. ],
  2785. "responses": {
  2786. "200": {
  2787. "description": "OK",
  2788. "schema": {
  2789. "$ref": "#/definitions/Users"
  2790. }
  2791. }
  2792. }
  2793. }
  2794. },
  2795. "/blocks/destroy": {
  2796. "post": {
  2797. "summary": "un-blocks the specified user",
  2798. "description": "un-blocks the specified user",
  2799. "security": [
  2800. {
  2801. "oauth": [
  2802. "basic"
  2803. ]
  2804. }
  2805. ],
  2806. "parameters": [
  2807. {
  2808. "name": "screen_name",
  2809. "in": "query",
  2810. "description": "screen name of user to be un-blocked",
  2811. "type": "string",
  2812. "required": true
  2813. },
  2814. {
  2815. "name": "user_id",
  2816. "in": "query",
  2817. "description": "ID of user to be un-blocked",
  2818. "type": "string",
  2819. "required": true
  2820. },
  2821. {
  2822. "name": "include_entities",
  2823. "in": "query",
  2824. "description": "whether or not to include entities",
  2825. "type": "string"
  2826. },
  2827. {
  2828. "name": "skip_status",
  2829. "in": "query",
  2830. "description": "whether or not to skip statuses",
  2831. "type": "string"
  2832. }
  2833. ],
  2834. "responses": {
  2835. "200": {
  2836. "description": "OK",
  2837. "schema": {
  2838. "$ref": "#/definitions/Users"
  2839. }
  2840. }
  2841. }
  2842. }
  2843. },
  2844. "/users/lookup": {
  2845. "get": {
  2846. "summary": "returns fully-hydrated user objects up to 100",
  2847. "description": "returns fully-hydrated user objects up to 100",
  2848. "security": [
  2849. {
  2850. "oauth": [
  2851. "basic"
  2852. ]
  2853. }
  2854. ],
  2855. "parameters": [
  2856. {
  2857. "name": "screen_name",
  2858. "in": "query",
  2859. "description": "screen name of user to lookup",
  2860. "type": "string"
  2861. },
  2862. {
  2863. "name": "user_id",
  2864. "in": "query",
  2865. "description": "ID of user to lookup",
  2866. "type": "string"
  2867. },
  2868. {
  2869. "name": "include_entities",
  2870. "in": "query",
  2871. "description": "whether or not to include entities",
  2872. "type": "string"
  2873. }
  2874. ],
  2875. "responses": {
  2876. "200": {
  2877. "description": "OK",
  2878. "schema": {
  2879. "type": "array",
  2880. "items": {
  2881. "$ref": "#/definitions/Users"
  2882. }
  2883. }
  2884. }
  2885. }
  2886. }
  2887. },
  2888. "/users/show": {
  2889. "get": {
  2890. "summary": "returns a variety of info about specified user",
  2891. "description": "returns a variety of info about specified user",
  2892. "security": [
  2893. {
  2894. "oauth": [
  2895. "basic"
  2896. ]
  2897. }
  2898. ],
  2899. "parameters": [
  2900. {
  2901. "name": "screen_name",
  2902. "in": "query",
  2903. "description": "screen name of user to be shown",
  2904. "type": "string",
  2905. "required": true
  2906. },
  2907. {
  2908. "name": "user_id",
  2909. "in": "query",
  2910. "description": "ID of user to be shown",
  2911. "type": "string",
  2912. "required": true
  2913. },
  2914. {
  2915. "name": "include_entities",
  2916. "in": "query",
  2917. "description": "whether or not to include entities",
  2918. "type": "string"
  2919. }
  2920. ],
  2921. "responses": {
  2922. "200": {
  2923. "description": "OK",
  2924. "schema": {
  2925. "$ref": "#/definitions/Users"
  2926. }
  2927. }
  2928. }
  2929. }
  2930. },
  2931. "/users/search": {
  2932. "get": {
  2933. "summary": "simple relevance-based user search",
  2934. "description": "simple relevance-based user search",
  2935. "security": [
  2936. {
  2937. "oauth": [
  2938. "basic"
  2939. ]
  2940. }
  2941. ],
  2942. "parameters": [
  2943. {
  2944. "name": "q",
  2945. "in": "query",
  2946. "description": "the search query to run against people search",
  2947. "type": "string",
  2948. "required": true
  2949. },
  2950. {
  2951. "name": "page",
  2952. "in": "query",
  2953. "description": "specifies the page of results to receive",
  2954. "type": "string"
  2955. },
  2956. {
  2957. "name": "count",
  2958. "in": "query",
  2959. "description": "number of people to return per page",
  2960. "type": "string"
  2961. },
  2962. {
  2963. "name": "include_entities",
  2964. "in": "query",
  2965. "description": "whether or not to include entities",
  2966. "type": "string"
  2967. }
  2968. ],
  2969. "responses": {
  2970. "200": {
  2971. "description": "OK",
  2972. "schema": {
  2973. "type": "array",
  2974. "items": {
  2975. "$ref": "#/definitions/Users"
  2976. }
  2977. }
  2978. }
  2979. }
  2980. }
  2981. },
  2982. "/users/contributees": {
  2983. "get": {
  2984. "summary": "collection of users specified user can contribute to",
  2985. "description": "collection of users specified user can contribute to",
  2986. "security": [
  2987. {
  2988. "oauth": [
  2989. "basic"
  2990. ]
  2991. }
  2992. ],
  2993. "parameters": [
  2994. {
  2995. "name": "screen_name",
  2996. "in": "query",
  2997. "description": "screen name of user that is contributed to",
  2998. "type": "string",
  2999. "required": true
  3000. },
  3001. {
  3002. "name": "user_id",
  3003. "in": "query",
  3004. "description": "ID of user to that is contributed to",
  3005. "type": "string",
  3006. "required": true
  3007. },
  3008. {
  3009. "name": "include_entities",
  3010. "in": "query",
  3011. "description": "whether or not to include entities",
  3012. "type": "string"
  3013. },
  3014. {
  3015. "name": "skip_status",
  3016. "in": "query",
  3017. "description": "whether or not to skip statuses",
  3018. "type": "string"
  3019. }
  3020. ],
  3021. "responses": {
  3022. "200": {
  3023. "description": "OK",
  3024. "schema": {
  3025. "type": "array",
  3026. "items": {
  3027. "$ref": "#/definitions/Users"
  3028. }
  3029. }
  3030. }
  3031. }
  3032. }
  3033. },
  3034. "/users/contributors": {
  3035. "get": {
  3036. "summary": "collection of users that can contribute to specified account",
  3037. "description": "collection of users that can contribute to specified account",
  3038. "security": [
  3039. {
  3040. "oauth": [
  3041. "basic"
  3042. ]
  3043. }
  3044. ],
  3045. "parameters": [
  3046. {
  3047. "name": "screen_name",
  3048. "in": "query",
  3049. "description": "screen name of user contributing",
  3050. "type": "string",
  3051. "required": true
  3052. },
  3053. {
  3054. "name": "user_id",
  3055. "in": "query",
  3056. "description": "ID of user contributing",
  3057. "type": "string",
  3058. "required": true
  3059. },
  3060. {
  3061. "name": "include_entities",
  3062. "in": "query",
  3063. "description": "whether or not to include entities",
  3064. "type": "string"
  3065. },
  3066. {
  3067. "name": "skip_status",
  3068. "in": "query",
  3069. "description": "whether or not to skip statuses",
  3070. "type": "string"
  3071. }
  3072. ],
  3073. "responses": {
  3074. "200": {
  3075. "description": "OK",
  3076. "schema": {
  3077. "type": "array",
  3078. "items": {
  3079. "$ref": "#/definitions/Users"
  3080. }
  3081. }
  3082. }
  3083. }
  3084. }
  3085. },
  3086. "/geo/id/{place_id}": {
  3087. "get": {
  3088. "description": "Returns all the information about a know place",
  3089. "security": [
  3090. {
  3091. "oauth": [
  3092. "basic"
  3093. ]
  3094. }
  3095. ],
  3096. "parameters": [
  3097. {
  3098. "name": "place_id",
  3099. "in": "path",
  3100. "description": "A place in the world",
  3101. "required": true,
  3102. "type": "string"
  3103. }
  3104. ],
  3105. "responses": {
  3106. "200": {
  3107. "description": "Success",
  3108. "schema": {
  3109. "type": "array",
  3110. "items": {
  3111. "$ref": "#/definitions/Places"
  3112. }
  3113. }
  3114. }
  3115. }
  3116. }
  3117. },
  3118. "/geo/reverse_geoncode": {
  3119. "get": {
  3120. "description": "Given a latitude and a longitude, searches for up to 20 places that can be used as a place_id when updatting a status",
  3121. "security": [
  3122. {
  3123. "oauth": [
  3124. "basic"
  3125. ]
  3126. }
  3127. ],
  3128. "parameters": [
  3129. {
  3130. "name": "lat",
  3131. "in": "query",
  3132. "description": "The latitude to search around",
  3133. "required": true,
  3134. "type": "string"
  3135. },
  3136. {
  3137. "name": "long",
  3138. "in": "query",
  3139. "description": "The longtitude to search around",
  3140. "required": true,
  3141. "type": "string"
  3142. },
  3143. {
  3144. "name": "accuracy",
  3145. "in": "query",
  3146. "description": "A hint on region in which to search",
  3147. "required": false,
  3148. "type": "string"
  3149. },
  3150. {
  3151. "name": "granularity",
  3152. "in": "query",
  3153. "description": "This is the minimal granularity of place types to return",
  3154. "required": false,
  3155. "type": "string"
  3156. },
  3157. {
  3158. "name": "max_results",
  3159. "in": "query",
  3160. "description": "A hint as to the number of results to return",
  3161. "required": false,
  3162. "type": "string"
  3163. },
  3164. {
  3165. "name": "callback",
  3166. "in": "query",
  3167. "description": "If supplied, the responses will use the JSON format with a callback of the given name",
  3168. "required": false,
  3169. "type": "string"
  3170. }
  3171. ],
  3172. "responses": {
  3173. "200": {
  3174. "description": "Success",
  3175. "schema": {
  3176. "type": "array",
  3177. "items": {
  3178. "$ref": "#/definitions/Places"
  3179. }
  3180. }
  3181. }
  3182. }
  3183. }
  3184. },
  3185. "/geo/search": {
  3186. "get": {
  3187. "description": "Search for places that can be attached to a statuses/updates",
  3188. "security": [
  3189. {
  3190. "oauth": [
  3191. "basic"
  3192. ]
  3193. }
  3194. ],
  3195. "parameters": [
  3196. {
  3197. "name": "lat",
  3198. "in": "query",
  3199. "description": "The latitude to search around",
  3200. "required": true,
  3201. "type": "string"
  3202. },
  3203. {
  3204. "name": "long",
  3205. "in": "query",
  3206. "description": "The longtitude to search around",
  3207. "required": true,
  3208. "type": "string"
  3209. },
  3210. {
  3211. "name": "query",
  3212. "in": "query",
  3213. "description": "Free-form text to match against while executing a geo-based query",
  3214. "required": true,
  3215. "type": "string"
  3216. },
  3217. {
  3218. "name": "ip",
  3219. "in": "query",
  3220. "description": "An Ip address",
  3221. "required": true,
  3222. "type": "string"
  3223. },
  3224. {
  3225. "name": "accuracy",
  3226. "in": "query",
  3227. "description": "A hint on region in which to search",
  3228. "required": false,
  3229. "type": "string"
  3230. },
  3231. {
  3232. "name": "granularity",
  3233. "in": "query",
  3234. "description": "This is the minimal granularity of place types to return",
  3235. "required": false,
  3236. "type": "string"
  3237. },
  3238. {
  3239. "name": "contained_within",
  3240. "in": "query",
  3241. "description": "This is the place_id which you would like to restrict the search results to",
  3242. "required": false,
  3243. "type": "string"
  3244. },
  3245. {
  3246. "name": "attribute:street_address",
  3247. "in": "query",
  3248. "description": "This parameter searches for places which have this givven street address",
  3249. "required": false,
  3250. "type": "string"
  3251. },
  3252. {
  3253. "name": "callback",
  3254. "in": "query",
  3255. "description": "If supplied, the responses will use the JSON format with a callback of the given name",
  3256. "required": false,
  3257. "type": "string"
  3258. }
  3259. ],
  3260. "responses": {
  3261. "200": {
  3262. "description": "Success",
  3263. "schema": {
  3264. "type": "array",
  3265. "items": {
  3266. "$ref": "#/definitions/Places"
  3267. }
  3268. }
  3269. }
  3270. }
  3271. }
  3272. },
  3273. "/geo/similar_places": {
  3274. "get": {
  3275. "description": "Locates places near the given coordinates which are similar in name",
  3276. "security": [
  3277. {
  3278. "oauth": [
  3279. "basic"
  3280. ]
  3281. }
  3282. ],
  3283. "parameters": [
  3284. {
  3285. "name": "lat",
  3286. "in": "query",
  3287. "description": "The latitude to search around",
  3288. "required": true,
  3289. "type": "string"
  3290. },
  3291. {
  3292. "name": "long",
  3293. "in": "query",
  3294. "description": "The longtitude to search around",
  3295. "required": true,
  3296. "type": "string"
  3297. },
  3298. {
  3299. "name": "name",
  3300. "in": "query",
  3301. "description": "The name a place is known as",
  3302. "required": true,
  3303. "type": "string"
  3304. },
  3305. {
  3306. "name": "contained_within",
  3307. "in": "query",
  3308. "description": "This is the place_id which you would like to restrict the search results to",
  3309. "required": false,
  3310. "type": "string"
  3311. },
  3312. {
  3313. "name": "attribute:street_address",
  3314. "in": "query",
  3315. "description": "This parameter searches for places which have this givven street address",
  3316. "required": false,
  3317. "type": "string"
  3318. },
  3319. {
  3320. "name": "callback",
  3321. "in": "query",
  3322. "description": "If supplied, the responses will use the JSON format with a callback of the given name",
  3323. "required": false,
  3324. "type": "string"
  3325. }
  3326. ],
  3327. "responses": {
  3328. "200": {
  3329. "description": "Success",
  3330. "schema": {
  3331. "type": "array",
  3332. "items": {
  3333. "$ref": "#/definitions/Places"
  3334. }
  3335. }
  3336. }
  3337. }
  3338. }
  3339. },
  3340. "/geo/places": {
  3341. "get": {
  3342. "description": "Create a new place object at the given latitude and logitude",
  3343. "security": [
  3344. {
  3345. "oauth": [
  3346. "basic"
  3347. ]
  3348. }
  3349. ],
  3350. "parameters": [
  3351. {
  3352. "name": "lat",
  3353. "in": "query",
  3354. "description": "The latitude to search around",
  3355. "required": true,
  3356. "type": "string"
  3357. },
  3358. {
  3359. "name": "long",
  3360. "in": "query",
  3361. "description": "The longtitude to search around",
  3362. "required": true,
  3363. "type": "string"
  3364. },
  3365. {
  3366. "name": "name",
  3367. "in": "query",
  3368. "description": "The name a place is known as",
  3369. "required": true,
  3370. "type": "string"
  3371. },
  3372. {
  3373. "name": "token",
  3374. "in": "query",
  3375. "description": "The token found in the response from geo/similar_places",
  3376. "required": true,
  3377. "type": "string"
  3378. },
  3379. {
  3380. "name": "contained_within",
  3381. "in": "query",
  3382. "description": "This is the place_id which you would like to restrict the search results to",
  3383. "required": false,
  3384. "type": "string"
  3385. },
  3386. {
  3387. "name": "attribute:street_address",
  3388. "in": "query",
  3389. "description": "This parameter searches for places which have this givven street address",
  3390. "required": false,
  3391. "type": "string"
  3392. },
  3393. {
  3394. "name": "callback",
  3395. "in": "query",
  3396. "description": "If supplied, the responses will use the JSON format with a callback of the given name",
  3397. "required": false,
  3398. "type": "string"
  3399. }
  3400. ],
  3401. "responses": {
  3402. "200": {
  3403. "description": "Success",
  3404. "schema": {
  3405. "$ref": "#/definitions/Places"
  3406. }
  3407. }
  3408. }
  3409. }
  3410. },
  3411. "/trends/place": {
  3412. "get": {
  3413. "description": "Returns the top 10 trending topics for a specific WOEID",
  3414. "security": [
  3415. {
  3416. "oauth": [
  3417. "basic"
  3418. ]
  3419. }
  3420. ],
  3421. "parameters": [
  3422. {
  3423. "name": "id",
  3424. "in": "query",
  3425. "description": "The yahoo where on earch id",
  3426. "required": true,
  3427. "type": "string"
  3428. },
  3429. {
  3430. "name": "exclude",
  3431. "in": "query",
  3432. "description": "Setting this equal to hashtages will remove all hashtages from the trends list",
  3433. "required": true,
  3434. "type": "string"
  3435. }
  3436. ],
  3437. "responses": {
  3438. "200": {
  3439. "description": "Success",
  3440. "schema": {
  3441. "$ref": "#/definitions/TrendInfo"
  3442. }
  3443. }
  3444. }
  3445. }
  3446. },
  3447. "/trends/available": {
  3448. "get": {
  3449. "description": "Returns the availability",
  3450. "security": [
  3451. {
  3452. "oauth": [
  3453. "basic"
  3454. ]
  3455. }
  3456. ],
  3457. "responses": {
  3458. "200": {
  3459. "description": "Success",
  3460. "schema": {
  3461. "type": "array",
  3462. "items": {
  3463. "$ref": "#/definitions/Location"
  3464. }
  3465. }
  3466. }
  3467. }
  3468. }
  3469. },
  3470. "/trends/closest": {
  3471. "get": {
  3472. "description": "Returns the location that Twitter has trending topic information for",
  3473. "security": [
  3474. {
  3475. "oauth": [
  3476. "basic"
  3477. ]
  3478. }
  3479. ],
  3480. "parameters": [
  3481. {
  3482. "name": "lat",
  3483. "in": "query",
  3484. "description": "If provided with a long parameter the available trend locations wil be stored by distance",
  3485. "required": true,
  3486. "type": "string"
  3487. },
  3488. {
  3489. "name": "long",
  3490. "in": "query",
  3491. "description": "If provided with a lat parameters the available trend locations will be sorted by distance",
  3492. "required": true,
  3493. "type": "string"
  3494. }
  3495. ],
  3496. "responses": {
  3497. "200": {
  3498. "description": "Success",
  3499. "schema": {
  3500. "type": "array",
  3501. "items": {
  3502. "$ref": "#/definitions/Location"
  3503. }
  3504. }
  3505. }
  3506. }
  3507. }
  3508. },
  3509. "/users/report_spam": {
  3510. "post": {
  3511. "description": "Returna users report spam",
  3512. "security": [
  3513. {
  3514. "oauth": [
  3515. "basic"
  3516. ]
  3517. }
  3518. ],
  3519. "parameters": [
  3520. {
  3521. "name": "screen_name",
  3522. "in": "query",
  3523. "description": "The ID or screen_name of the user you want to report as a spammer",
  3524. "required": false,
  3525. "type": "string"
  3526. },
  3527. {
  3528. "name": "user_id",
  3529. "in": "query",
  3530. "description": "The ID of the user you want to report as a spammer",
  3531. "required": false,
  3532. "type": "string"
  3533. }
  3534. ],
  3535. "responses": {
  3536. "200": {
  3537. "description": "Success",
  3538. "schema": {
  3539. "$ref": "#/definitions/Users"
  3540. }
  3541. }
  3542. }
  3543. }
  3544. },
  3545. "/help/configuration": {
  3546. "get": {
  3547. "description": "Returns the current configuration used by Twitter including twitter.com slugs which are not usernames",
  3548. "security": [
  3549. {
  3550. "oauth": [
  3551. "basic"
  3552. ]
  3553. }
  3554. ],
  3555. "responses": {
  3556. "200": {
  3557. "description": "Success",
  3558. "schema": {
  3559. "$ref": "#/definitions/Help_Config"
  3560. }
  3561. }
  3562. }
  3563. }
  3564. },
  3565. "/help/languages": {
  3566. "get": {
  3567. "description": "Returns the list of languages supported by Twitter along with the language code supported by Twitter",
  3568. "security": [
  3569. {
  3570. "oauth": [
  3571. "basic"
  3572. ]
  3573. }
  3574. ],
  3575. "responses": {
  3576. "200": {
  3577. "description": "Success",
  3578. "schema": {
  3579. "type": "array",
  3580. "items": {
  3581. "$ref": "#/definitions/Help_Language"
  3582. }
  3583. }
  3584. }
  3585. }
  3586. }
  3587. },
  3588. "/help/privacy": {
  3589. "get": {
  3590. "description": "Returns Twitter's privacy policy",
  3591. "security": [
  3592. {
  3593. "oauth": [
  3594. "basic"
  3595. ]
  3596. }
  3597. ],
  3598. "responses": {
  3599. "200": {
  3600. "description": "Success",
  3601. "schema": {
  3602. "$ref": "#/definitions/Help_Privacy"
  3603. }
  3604. }
  3605. }
  3606. }
  3607. },
  3608. "/help/tos": {
  3609. "get": {
  3610. "description": "Returns the Twitter Terms of Service",
  3611. "security": [
  3612. {
  3613. "oauth": [
  3614. "basic"
  3615. ]
  3616. }
  3617. ],
  3618. "responses": {
  3619. "200": {
  3620. "description": "Success",
  3621. "schema": {
  3622. "$ref": "#/definitions/Help_Tos"
  3623. }
  3624. }
  3625. }
  3626. }
  3627. },
  3628. "/application/rate_limit_status": {
  3629. "get": {
  3630. "description": "Returns the current rate limits for methods belonging to the specified resource families",
  3631. "security": [
  3632. {
  3633. "oauth": [
  3634. "basic"
  3635. ]
  3636. }
  3637. ],
  3638. "parameters": [
  3639. {
  3640. "name": "resources",
  3641. "in": "query",
  3642. "description": "A comma-separated list of resource families you want to know the current rate limit disposition for",
  3643. "required": false,
  3644. "type": "array",
  3645. "items": {
  3646. "type": "string"
  3647. }
  3648. }
  3649. ],
  3650. "responses": {
  3651. "200": {
  3652. "description": "Success"
  3653. }
  3654. }
  3655. }
  3656. }
  3657. },
  3658. "definitions": {
  3659. "Tweets": {
  3660. "type": "object",
  3661. "properties": {
  3662. "contributors": {
  3663. "type": "array",
  3664. "items": {
  3665. "$ref": "#/definitions/Contributors"
  3666. }
  3667. },
  3668. "coordinates": {
  3669. "$ref": "#/definitions/Coordinates"
  3670. },
  3671. "created_at": {
  3672. "type": "string"
  3673. },
  3674. "current_user_retweet": {
  3675. "$ref": "#/definitions/Tweets"
  3676. },
  3677. "entities": {
  3678. "$ref": "#/definitions/Entities"
  3679. },
  3680. "favorite_count": {
  3681. "type": "integer"
  3682. },
  3683. "favorited": {
  3684. "type": "boolean"
  3685. },
  3686. "filter_level": {
  3687. "type": "string"
  3688. },
  3689. "id": {
  3690. "type": "integer"
  3691. },
  3692. "id_str": {
  3693. "type": "string"
  3694. },
  3695. "in_reply_to_screen_name": {
  3696. "type": "string"
  3697. },
  3698. "in_reply_to_status_id": {
  3699. "type": "integer"
  3700. },
  3701. "in_reply_to_status_id_str": {
  3702. "type": "string"
  3703. },
  3704. "in_reply_to_user_id": {
  3705. "type": "integer"
  3706. },
  3707. "in_reply_to_user_id_str": {
  3708. "type": "string"
  3709. },
  3710. "lang": {
  3711. "type": "string"
  3712. },
  3713. "place": {
  3714. "$ref": "#/definitions/Places"
  3715. },
  3716. "possibly_sensitive": {
  3717. "type": "boolean"
  3718. },
  3719. "quoted_status_id": {
  3720. "type": "integer"
  3721. },
  3722. "quoted_status_id_str": {
  3723. "type": "string"
  3724. },
  3725. "quoted_status": {
  3726. "$ref": "#/definitions/Tweets"
  3727. },
  3728. "scopes": {
  3729. "type": "object",
  3730. "additionalProperties": {}
  3731. },
  3732. "retweet_count": {
  3733. "type": "integer"
  3734. },
  3735. "retweeted": {
  3736. "type": "boolean"
  3737. },
  3738. "retweeted_status": {
  3739. "$ref": "#/definitions/Tweets"
  3740. },
  3741. "source": {
  3742. "type": "string"
  3743. },
  3744. "text": {
  3745. "type": "string"
  3746. },
  3747. "truncated": {
  3748. "type": "string"
  3749. },
  3750. "user": {
  3751. "$ref": "#/definitions/Users"
  3752. },
  3753. "withheld_copyright": {
  3754. "type": "boolean"
  3755. },
  3756. "withheld_countries": {
  3757. "type": "array",
  3758. "items": {
  3759. "type": "string"
  3760. }
  3761. },
  3762. "withheld_scope": {
  3763. "type": "string"
  3764. }
  3765. }
  3766. },
  3767. "Contributors": {
  3768. "type": "object",
  3769. "properties": {
  3770. "id": {
  3771. "type": "integer"
  3772. },
  3773. "id_str": {
  3774. "type": "string"
  3775. },
  3776. "screen_name": {
  3777. "type": "string"
  3778. }
  3779. }
  3780. },
  3781. "Coordinates": {
  3782. "type": "object",
  3783. "properties": {
  3784. "coordinates": {
  3785. "type": "array",
  3786. "items": {
  3787. "type": "number"
  3788. }
  3789. },
  3790. "type": {
  3791. "type": "string"
  3792. }
  3793. }
  3794. },
  3795. "Users": {
  3796. "type": "object",
  3797. "properties": {
  3798. "contributors_enabled": {
  3799. "type": "boolean"
  3800. },
  3801. "created_at": {
  3802. "type": "string"
  3803. },
  3804. "default_profile": {
  3805. "type": "boolean"
  3806. },
  3807. "default_profile_image": {
  3808. "type": "boolean"
  3809. },
  3810. "description": {
  3811. "type": "string"
  3812. },
  3813. "entities": {
  3814. "$ref": "#/definitions/Entities"
  3815. },
  3816. "favorites_count": {
  3817. "type": "integer"
  3818. },
  3819. "follow_request_sent": {
  3820. "type": "boolean"
  3821. },
  3822. "following": {
  3823. "type": "boolean"
  3824. },
  3825. "followers_count": {
  3826. "type": "integer"
  3827. },
  3828. "friends_count": {
  3829. "type": "integer"
  3830. },
  3831. "geo_enabled": {
  3832. "type": "boolean"
  3833. },
  3834. "id": {
  3835. "type": "integer"
  3836. },
  3837. "id_str": {
  3838. "type": "string"
  3839. },
  3840. "is_translator": {
  3841. "type": "boolean"
  3842. },
  3843. "lang": {
  3844. "type": "string"
  3845. },
  3846. "listed_count": {
  3847. "type": "integer"
  3848. },
  3849. "location": {
  3850. "type": "string"
  3851. },
  3852. "name": {
  3853. "type": "string"
  3854. },
  3855. "notifications": {
  3856. "type": "boolean"
  3857. },
  3858. "profile_background_color": {
  3859. "type": "string"
  3860. },
  3861. "profile_background_image_url": {
  3862. "type": "string"
  3863. },
  3864. "profile_background_image_url_https": {
  3865. "type": "string"
  3866. },
  3867. "profile_background_tile": {
  3868. "type": "string"
  3869. },
  3870. "profile_banner_url": {
  3871. "type": "string"
  3872. },
  3873. "profile_image_url": {
  3874. "type": "string"
  3875. },
  3876. "profile_image_url_https": {
  3877. "type": "string"
  3878. },
  3879. "profile_link_color": {
  3880. "type": "string"
  3881. },
  3882. "profile_sidebar_border_color": {
  3883. "type": "string"
  3884. },
  3885. "profile_sidebar_fill_color": {
  3886. "type": "string"
  3887. },
  3888. "profile_text_color": {
  3889. "type": "string"
  3890. },
  3891. "profile_use_background_image": {
  3892. "type": "boolean"
  3893. },
  3894. "protected": {
  3895. "type": "boolean"
  3896. },
  3897. "screen_name": {
  3898. "type": "string"
  3899. },
  3900. "show_all_inline_media": {
  3901. "type": "boolean"
  3902. },
  3903. "status": {
  3904. "$ref": "#/definitions/Tweets"
  3905. },
  3906. "statuses_count": {
  3907. "type": "integer"
  3908. },
  3909. "time_zone": {
  3910. "type": "string"
  3911. },
  3912. "url": {
  3913. "type": "string"
  3914. },
  3915. "utc_offset": {
  3916. "type": "integer"
  3917. },
  3918. "verified": {
  3919. "type": "boolean"
  3920. },
  3921. "withheld_in_countries": {
  3922. "type": "string"
  3923. },
  3924. "withheld_scope": {
  3925. "type": "string"
  3926. }
  3927. }
  3928. },
  3929. "Entities": {
  3930. "type": "object",
  3931. "properties": {
  3932. "hashtags": {
  3933. "type": "array",
  3934. "items": {
  3935. "$ref": "#/definitions/Hashtags"
  3936. }
  3937. },
  3938. "media": {
  3939. "type": "array",
  3940. "items": {
  3941. "$ref": "#/definitions/Media"
  3942. }
  3943. },
  3944. "urls": {
  3945. "type": "array",
  3946. "items": {
  3947. "$ref": "#/definitions/URL"
  3948. }
  3949. },
  3950. "user_mentions": {
  3951. "type": "array",
  3952. "items": {
  3953. "$ref": "#/definitions/User_Mention"
  3954. }
  3955. }
  3956. }
  3957. },
  3958. "Hashtags": {
  3959. "type": "object",
  3960. "properties": {
  3961. "indices": {
  3962. "type": "array",
  3963. "items": {
  3964. "type": "integer"
  3965. }
  3966. },
  3967. "text": {
  3968. "type": "string"
  3969. }
  3970. }
  3971. },
  3972. "Media": {
  3973. "type": "object",
  3974. "properties": {
  3975. "display_url": {
  3976. "type": "string"
  3977. },
  3978. "expanded_url": {
  3979. "type": "string"
  3980. },
  3981. "id": {
  3982. "type": "integer"
  3983. },
  3984. "id_str": {
  3985. "type": "string"
  3986. },
  3987. "indices": {
  3988. "type": "array",
  3989. "items": {
  3990. "type": "integer"
  3991. }
  3992. },
  3993. "media_url": {
  3994. "type": "string"
  3995. },
  3996. "media_url_https": {
  3997. "type": "string"
  3998. },
  3999. "sizes": {
  4000. "$ref": "#/definitions/Sizes"
  4001. },
  4002. "source_status_id": {
  4003. "type": "integer"
  4004. },
  4005. "source_status_id_str": {
  4006. "type": "integer"
  4007. },
  4008. "type": {
  4009. "type": "string"
  4010. },
  4011. "url": {
  4012. "type": "string"
  4013. }
  4014. }
  4015. },
  4016. "Size": {
  4017. "type": "object",
  4018. "properties": {
  4019. "h": {
  4020. "type": "integer"
  4021. },
  4022. "resize": {
  4023. "type": "string"
  4024. },
  4025. "w": {
  4026. "type": "integer"
  4027. }
  4028. }
  4029. },
  4030. "Sizes": {
  4031. "type": "object",
  4032. "properties": {
  4033. "thumb": {
  4034. "$ref": "#/definitions/Size"
  4035. },
  4036. "large": {
  4037. "$ref": "#/definitions/Size"
  4038. },
  4039. "medium": {
  4040. "$ref": "#/definitions/Size"
  4041. },
  4042. "small": {
  4043. "$ref": "#/definitions/Size"
  4044. }
  4045. }
  4046. },
  4047. "URL": {
  4048. "type": "object",
  4049. "properties": {
  4050. "display_url": {
  4051. "type": "string"
  4052. },
  4053. "expanded_url": {
  4054. "type": "string"
  4055. },
  4056. "indices": {
  4057. "type": "string"
  4058. },
  4059. "url": {
  4060. "type": "string"
  4061. }
  4062. }
  4063. },
  4064. "User_Mention": {
  4065. "type": "object",
  4066. "properties": {
  4067. "id": {
  4068. "type": "integer"
  4069. },
  4070. "id_str": {
  4071. "type": "string"
  4072. },
  4073. "indices": {
  4074. "type": "array",
  4075. "items": {
  4076. "type": "integer"
  4077. }
  4078. },
  4079. "name": {
  4080. "type": "string"
  4081. },
  4082. "screen_name": {
  4083. "type": "string"
  4084. }
  4085. }
  4086. },
  4087. "Places": {
  4088. "type": "object",
  4089. "properties": {
  4090. "attributes": {
  4091. "type": "object",
  4092. "additionalProperties": {}
  4093. },
  4094. "bounding_box": {
  4095. "$ref": "#/definitions/Bounding_box"
  4096. },
  4097. "country": {
  4098. "type": "string"
  4099. },
  4100. "country_code": {
  4101. "type": "string"
  4102. },
  4103. "full_name": {
  4104. "type": "string"
  4105. },
  4106. "id": {
  4107. "type": "string"
  4108. },
  4109. "name": {
  4110. "type": "string"
  4111. },
  4112. "place_type": {
  4113. "type": "string"
  4114. },
  4115. "url": {
  4116. "type": "string"
  4117. }
  4118. }
  4119. },
  4120. "Bounding_box": {
  4121. "type": "object",
  4122. "properties": {
  4123. "coordinates": {
  4124. "type": "array",
  4125. "items": {
  4126. "type": "array",
  4127. "items": {
  4128. "type": "number"
  4129. }
  4130. }
  4131. },
  4132. "type": {
  4133. "type": "string"
  4134. }
  4135. }
  4136. },
  4137. "Lists": {
  4138. "type": "object",
  4139. "properties": {
  4140. "created_at": {
  4141. "type": "string"
  4142. },
  4143. "slug": {
  4144. "type": "string"
  4145. },
  4146. "name": {
  4147. "type": "string"
  4148. },
  4149. "description": {
  4150. "type": "string"
  4151. },
  4152. "mode": {
  4153. "type": "string"
  4154. },
  4155. "following": {
  4156. "type": "boolean"
  4157. },
  4158. "user": {
  4159. "$ref": "#/definitions/Users"
  4160. },
  4161. "member_count": {
  4162. "type": "integer"
  4163. },
  4164. "id_str": {
  4165. "type": "string"
  4166. },
  4167. "subscriber_count": {
  4168. "type": "integer"
  4169. },
  4170. "id": {
  4171. "type": "integer"
  4172. },
  4173. "uri": {
  4174. "type": "string"
  4175. }
  4176. }
  4177. },
  4178. "Cursor_lists": {
  4179. "type": "object",
  4180. "properties": {
  4181. "previous_cursor": {
  4182. "type": "integer"
  4183. },
  4184. "lists": {
  4185. "type": "array",
  4186. "items": {
  4187. "$ref": "#/definitions/Lists"
  4188. }
  4189. },
  4190. "previous_cursor_str": {
  4191. "type": "string"
  4192. },
  4193. "next_cursor": {
  4194. "type": "integer"
  4195. },
  4196. "next_cursor_str": {
  4197. "type": "string"
  4198. }
  4199. }
  4200. },
  4201. "Cursor_users": {
  4202. "type": "object",
  4203. "properties": {
  4204. "previous_cursor": {
  4205. "type": "integer"
  4206. },
  4207. "users": {
  4208. "type": "array",
  4209. "items": {
  4210. "$ref": "#/definitions/Users"
  4211. }
  4212. },
  4213. "previous_cursor_str": {
  4214. "type": "string"
  4215. },
  4216. "next_cursor": {
  4217. "type": "integer"
  4218. },
  4219. "next_cursor_str": {
  4220. "type": "string"
  4221. }
  4222. }
  4223. },
  4224. "Cursor_ids": {
  4225. "type": "object",
  4226. "properties": {
  4227. "previous_cursor": {
  4228. "type": "integer"
  4229. },
  4230. "users": {
  4231. "type": "array",
  4232. "items": {
  4233. "type": "integer"
  4234. }
  4235. },
  4236. "previous_cursor_str": {
  4237. "type": "string"
  4238. },
  4239. "next_cursor": {
  4240. "type": "integer"
  4241. },
  4242. "next_cursor_str": {
  4243. "type": "string"
  4244. }
  4245. }
  4246. },
  4247. "Messages": {
  4248. "type": "object",
  4249. "properties": {
  4250. "created_at": {
  4251. "type": "string"
  4252. },
  4253. "entities": {
  4254. "$ref": "#/definitions/Entities"
  4255. },
  4256. "id": {
  4257. "type": "integer"
  4258. },
  4259. "id_string": {
  4260. "type": "string"
  4261. },
  4262. "recipient": {
  4263. "$ref": "#/definitions/Users"
  4264. },
  4265. "recipient_id": {
  4266. "type": "integer"
  4267. },
  4268. "recipient_screen_name": {
  4269. "type": "string"
  4270. },
  4271. "sender": {
  4272. "$ref": "#/definitions/Users"
  4273. },
  4274. "sender_id": {
  4275. "type": "integer"
  4276. },
  4277. "sender_screen_name": {
  4278. "type": "string"
  4279. },
  4280. "text": {
  4281. "type": "string"
  4282. }
  4283. }
  4284. },
  4285. "Query": {
  4286. "type": "object",
  4287. "properties": {
  4288. "created_at": {
  4289. "type": "string"
  4290. },
  4291. "id": {
  4292. "type": "integer"
  4293. },
  4294. "id_str": {
  4295. "type": "string"
  4296. },
  4297. "name": {
  4298. "type": "string"
  4299. },
  4300. "position": {
  4301. "type": "string"
  4302. },
  4303. "query": {
  4304. "type": "string"
  4305. }
  4306. }
  4307. },
  4308. "Friendship": {
  4309. "type": "object",
  4310. "properties": {
  4311. "relationship": {
  4312. "$ref": "#/definitions/Targets"
  4313. },
  4314. "source": {
  4315. "$ref": "#/definitions/Source"
  4316. }
  4317. }
  4318. },
  4319. "Targets": {
  4320. "type": "object",
  4321. "properties": {
  4322. "target": {
  4323. "$ref": "#/definitions/Target"
  4324. }
  4325. }
  4326. },
  4327. "Target": {
  4328. "type": "object",
  4329. "properties": {
  4330. "id_str": {
  4331. "type": "string"
  4332. },
  4333. "id": {
  4334. "type": "integer"
  4335. },
  4336. "followed_by": {
  4337. "type": "boolean"
  4338. },
  4339. "screen_name": {
  4340. "type": "string"
  4341. },
  4342. "following": {
  4343. "type": "boolean"
  4344. }
  4345. }
  4346. },
  4347. "Source": {
  4348. "type": "object",
  4349. "properties": {
  4350. "can_dm": {
  4351. "type": "boolean"
  4352. },
  4353. "blocking": {
  4354. "type": "boolean"
  4355. },
  4356. "id_str": {
  4357. "type": "boolean"
  4358. },
  4359. "all_replies": {
  4360. "type": "boolean"
  4361. },
  4362. "want_retweets": {
  4363. "type": "boolean"
  4364. },
  4365. "id": {
  4366. "type": "integer"
  4367. },
  4368. "marked_spam": {
  4369. "type": "boolean"
  4370. },
  4371. "followed_by": {
  4372. "type": "boolean"
  4373. },
  4374. "notifications_enable": {
  4375. "type": "boolean"
  4376. },
  4377. "screen_name": {
  4378. "type": "string"
  4379. },
  4380. "following": {
  4381. "type": "boolean"
  4382. }
  4383. }
  4384. },
  4385. "Settings": {
  4386. "type": "object",
  4387. "properties": {
  4388. "sleep_time": {
  4389. "$ref": "#/definitions/Sleep"
  4390. },
  4391. "use_cookie_personalization": {
  4392. "type": "boolean"
  4393. },
  4394. "trend_location": {
  4395. "type": "array",
  4396. "items": {
  4397. "$ref": "#/definitions/Location"
  4398. }
  4399. },
  4400. "language": {
  4401. "type": "string"
  4402. },
  4403. "discoverable_by_email": {
  4404. "type": "boolean"
  4405. },
  4406. "always_use_https": {
  4407. "type": "boolean"
  4408. },
  4409. "protected": {
  4410. "type": "boolean"
  4411. },
  4412. "geo_enabled": {
  4413. "type": "boolean"
  4414. },
  4415. "show_all_inline_media": {
  4416. "type": "boolean"
  4417. },
  4418. "screen_name": {
  4419. "type": "string"
  4420. }
  4421. }
  4422. },
  4423. "Sleep": {
  4424. "type": "object",
  4425. "properties": {
  4426. "end_time": {
  4427. "type": "string"
  4428. },
  4429. "enabled": {
  4430. "type": "boolean"
  4431. },
  4432. "start_time": {
  4433. "type": "string"
  4434. }
  4435. }
  4436. },
  4437. "Location": {
  4438. "type": "object",
  4439. "properties": {
  4440. "name": {
  4441. "type": "string"
  4442. },
  4443. "placeType": {
  4444. "$ref": "#/definitions/PlaceType"
  4445. },
  4446. "woeid": {
  4447. "type": "integer"
  4448. },
  4449. "country": {
  4450. "type": "string"
  4451. },
  4452. "url": {
  4453. "type": "string"
  4454. },
  4455. "countryCode": {
  4456. "type": "string"
  4457. },
  4458. "parentid": {
  4459. "type": "integer"
  4460. }
  4461. }
  4462. },
  4463. "PlaceType": {
  4464. "type": "object",
  4465. "properties": {
  4466. "name": {
  4467. "type": "string"
  4468. },
  4469. "code": {
  4470. "type": "integer"
  4471. }
  4472. }
  4473. },
  4474. "TrendInfo": {
  4475. "type": "object",
  4476. "properties": {
  4477. "as_of": {
  4478. "type": "string"
  4479. },
  4480. "created_at": {
  4481. "type": "string"
  4482. },
  4483. "locations": {
  4484. "type": "array",
  4485. "items": {
  4486. "$ref": "#/definitions/Location"
  4487. }
  4488. },
  4489. "trends": {
  4490. "type": "array",
  4491. "items": {
  4492. "$ref": "#/definitions/Trends"
  4493. }
  4494. }
  4495. }
  4496. },
  4497. "Trends": {
  4498. "type": "object",
  4499. "properties": {
  4500. "events": {
  4501. "type": "string"
  4502. },
  4503. "name": {
  4504. "type": "string"
  4505. },
  4506. "promoted_content": {
  4507. "type": "string"
  4508. },
  4509. "query": {
  4510. "type": "string"
  4511. },
  4512. "url": {
  4513. "type": "string"
  4514. }
  4515. }
  4516. },
  4517. "Help_Config": {
  4518. "type": "object",
  4519. "properties": {
  4520. "dm_text_character_limit": {
  4521. "type": "integer"
  4522. },
  4523. "characters_reserved_per_media": {
  4524. "type": "integer"
  4525. },
  4526. "max_media_per_upload": {
  4527. "type": "integer"
  4528. },
  4529. "non_username_paths": {
  4530. "type": "array",
  4531. "items": {
  4532. "type": "string"
  4533. }
  4534. },
  4535. "photo_size_limit": {
  4536. "type": "integer"
  4537. },
  4538. "photo_sizes": {
  4539. "$ref": "#/definitions/Sizes"
  4540. }
  4541. }
  4542. },
  4543. "Help_Language": {
  4544. "type": "object",
  4545. "properties": {
  4546. "code": {
  4547. "type": "string"
  4548. },
  4549. "status": {
  4550. "type": "string"
  4551. },
  4552. "name": {
  4553. "type": "string"
  4554. }
  4555. }
  4556. },
  4557. "Help_Privacy": {
  4558. "type": "object",
  4559. "properties": {
  4560. "privacy": {
  4561. "type": "string"
  4562. }
  4563. }
  4564. },
  4565. "Help_Tos": {
  4566. "type": "object",
  4567. "properties": {
  4568. "Tos": {
  4569. "type": "string"
  4570. }
  4571. }
  4572. }
  4573. }
  4574. }