qiwei-endpoints.json 131 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229
  1. {
  2. "version": "0.2.0",
  3. "updatedAt": "2026-07-10",
  4. "source": "企业微信开放接口资料",
  5. "gateway": {
  6. "baseUrl": "https://server.fmode.cn/api/qiwei",
  7. "endpoint": "POST {baseUrl}/doApi",
  8. "auth": "Authorization: Bearer <Fmode token>",
  9. "envelope": "Fmode 网关请求信封:{\"uid\": \"<本地稳定设备标识>\", \"method\": \"<接口 method 路径>\", \"params\": {...}};企业微信接口访问凭据和设备上下文由 Fmode 网关管理。",
  10. "note": "所有业务请求均通过 Fmode 网关转发的企业微信接口执行。清单未登记的普通 JSON 接口可用 qiwei_api_call 传 rawMethod + params;登录和设备接口必须使用 qiwei_login_* 专用工具。"
  11. },
  12. "modules": [
  13. "client",
  14. "cloud",
  15. "contact",
  16. "label",
  17. "login",
  18. "msg",
  19. "room",
  20. "session",
  21. "sns",
  22. "user"
  23. ],
  24. "endpoints": [
  25. {
  26. "id": "room.openidToId",
  27. "module": "room",
  28. "title": "OpenID转Roomid",
  29. "summary": "OpenID转Roomid 将 OpenID 转换为 Roomid,用于群聊等场景下的用户标识映射。",
  30. "method": "/room/openidToId",
  31. "category": [
  32. "API参考",
  33. "客户管理",
  34. "群模块"
  35. ],
  36. "docFile": "OpenID转Roomid.md",
  37. "tags": [
  38. "群模块",
  39. "room",
  40. "OpenID转Roomid",
  41. "客户管理",
  42. "API参考"
  43. ],
  44. "params": [
  45. {
  46. "name": "guid",
  47. "in": "body",
  48. "type": "string",
  49. "required": true,
  50. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  51. },
  52. {
  53. "name": "openRoomId",
  54. "in": "body",
  55. "type": "string",
  56. "required": true,
  57. "desc": "群openid。单个查询"
  58. },
  59. {
  60. "name": "openRoomIdList",
  61. "in": "body",
  62. "type": "array",
  63. "required": true,
  64. "desc": "群openid列表。批量查询(当单个查询时,批量查询不会生效,只能任选其一)"
  65. },
  66. {
  67. "name": "corpAgentId",
  68. "in": "body",
  69. "type": "string",
  70. "required": true,
  71. "desc": "企业应用id,请从企业模块-企业应用相关API中获取"
  72. }
  73. ],
  74. "responseHint": "data 字段:roomId(目标群聊 ID,可通过群分页或群详情接口获取 roomId);roomIdList(群Id列表)"
  75. },
  76. {
  77. "id": "contact.openidToId",
  78. "module": "contact",
  79. "title": "Openid转Userid",
  80. "summary": "Openid转Userid • OpenID:就是官方API的 external_userid(客户的唯一身份证)",
  81. "method": "/contact/openidToId",
  82. "category": [
  83. "API参考",
  84. "客户管理",
  85. "联系人模块"
  86. ],
  87. "docFile": "Openid转Userid.md",
  88. "tags": [
  89. "contact",
  90. "Openid转Userid",
  91. "联系人模块",
  92. "客户管理",
  93. "API参考"
  94. ],
  95. "params": [
  96. {
  97. "name": "guid",
  98. "in": "body",
  99. "type": "string",
  100. "required": true,
  101. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  102. },
  103. {
  104. "name": "openIdList",
  105. "in": "body",
  106. "type": "array",
  107. "required": true,
  108. "desc": "用户openid"
  109. },
  110. {
  111. "name": "openPartyIdList",
  112. "in": "body",
  113. "type": "array",
  114. "required": true,
  115. "desc": "部门openid"
  116. },
  117. {
  118. "name": "corpAgentId",
  119. "in": "body",
  120. "type": "string",
  121. "required": true,
  122. "desc": "企业应用id,请从企业模块-企业应用相关API中获取"
  123. }
  124. ],
  125. "responseHint": "data 字段:vid2UserIdList(Vid2用户Id列表);partyId2OpenPartyIdList(PartyId2OpenPartyId列表);vid2OpenIdList(Vid2OpenId列表)"
  126. },
  127. {
  128. "id": "room.openid",
  129. "module": "room",
  130. "title": "Roomid转OpenID",
  131. "summary": "Roomid转OpenID 将 Roomid 转换为 OpenID,用于跨场景的用户标识映射。",
  132. "method": "/room/openid",
  133. "category": [
  134. "API参考",
  135. "客户管理",
  136. "群模块"
  137. ],
  138. "docFile": "Roomid转OpenID.md",
  139. "tags": [
  140. "群模块",
  141. "room",
  142. "Roomid转OpenID",
  143. "客户管理",
  144. "API参考"
  145. ],
  146. "params": [
  147. {
  148. "name": "guid",
  149. "in": "body",
  150. "type": "string",
  151. "required": true,
  152. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  153. },
  154. {
  155. "name": "roomId",
  156. "in": "body",
  157. "type": "string",
  158. "required": true,
  159. "desc": "群聊 ID。"
  160. },
  161. {
  162. "name": "corpAgentId",
  163. "in": "body",
  164. "type": "string",
  165. "required": true,
  166. "desc": "请从企业模块-企业应用相关API中获取"
  167. }
  168. ],
  169. "responseHint": "data 字段:openRoomId(Open群Id)"
  170. },
  171. {
  172. "id": "contact.openid",
  173. "module": "contact",
  174. "title": "Userid转Openid",
  175. "summary": "Userid转Openid OpenID:就是官方API的 external_userid(客户的唯一身份证)",
  176. "method": "/contact/openid",
  177. "category": [
  178. "API参考",
  179. "客户管理",
  180. "联系人模块"
  181. ],
  182. "docFile": "Userid转Openid.md",
  183. "tags": [
  184. "contact",
  185. "联系人模块",
  186. "Userid转Openid",
  187. "客户管理",
  188. "API参考"
  189. ],
  190. "params": [
  191. {
  192. "name": "guid",
  193. "in": "body",
  194. "type": "string",
  195. "required": true,
  196. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  197. },
  198. {
  199. "name": "userIdList",
  200. "in": "body",
  201. "type": "array",
  202. "required": true,
  203. "desc": "用户id列表"
  204. },
  205. {
  206. "name": "corpAgentId",
  207. "in": "body",
  208. "type": "string",
  209. "required": true,
  210. "desc": "请从企业模块-企业应用相关API中获取"
  211. }
  212. ],
  213. "responseHint": "data 字段:openUserList(Open用户列表)"
  214. },
  215. {
  216. "id": "msg.syncCollectionMsg",
  217. "module": "msg",
  218. "title": "个人收藏-分页",
  219. "summary": "个人收藏-分页 • 接口返回结果包含 表情收藏列表 和 消息收藏列表 。",
  220. "method": "/msg/syncCollectionMsg",
  221. "category": [
  222. "API参考",
  223. "基础能力",
  224. "个人模块"
  225. ],
  226. "docFile": "个人收藏-分页.md",
  227. "tags": [
  228. "基础能力",
  229. "个人收藏-分页",
  230. "msg",
  231. "个人模块",
  232. "API参考"
  233. ],
  234. "params": [
  235. {
  236. "name": "guid",
  237. "in": "body",
  238. "type": "string",
  239. "required": true,
  240. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  241. },
  242. {
  243. "name": "msgSeq",
  244. "in": "body",
  245. "type": "integer",
  246. "required": true,
  247. "desc": "分页使用,首次传0,下次传入返回值seq"
  248. },
  249. {
  250. "name": "limit",
  251. "in": "body",
  252. "type": "integer",
  253. "required": true,
  254. "desc": "每页数量"
  255. }
  256. ],
  257. "responseHint": "data 字段:lastSeq(最后序号);list(列表)"
  258. },
  259. {
  260. "id": "msg.insertCollectionMsg",
  261. "module": "msg",
  262. "title": "个人收藏-添加GIF表情",
  263. "summary": "个人收藏-添加GIF表情 提示: 上传表情文件时,单文件大小不允许超过 1MB ,超出限制会导致添加失败",
  264. "method": "/msg/insertCollectionMsg",
  265. "category": [
  266. "API参考",
  267. "基础能力",
  268. "个人模块"
  269. ],
  270. "docFile": "个人收藏-添加GIF表情.md",
  271. "tags": [
  272. "基础能力",
  273. "个人收藏-添加GIF表情",
  274. "msg",
  275. "个人模块",
  276. "API参考"
  277. ],
  278. "params": [
  279. {
  280. "name": "guid",
  281. "in": "body",
  282. "type": "string",
  283. "required": true,
  284. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  285. },
  286. {
  287. "name": "msgData",
  288. "in": "body",
  289. "type": "object",
  290. "required": true,
  291. "desc": "消息数据",
  292. "children": [
  293. {
  294. "name": "fileMd5",
  295. "in": "body",
  296. "type": "string",
  297. "required": true,
  298. "desc": "图片md5"
  299. },
  300. {
  301. "name": "fileHttpUrl",
  302. "in": "body",
  303. "type": "string",
  304. "required": true,
  305. "desc": "接口详情见: 文件CDN转URL"
  306. }
  307. ]
  308. },
  309. {
  310. "name": "type",
  311. "in": "body",
  312. "type": "integer",
  313. "required": true,
  314. "desc": "类型编号。"
  315. }
  316. ]
  317. },
  318. {
  319. "id": "label.editLabel",
  320. "module": "label",
  321. "title": "个人标签-增删改",
  322. "summary": "个人标签-增删改 对个人标签进行新增、修改或删除操作。",
  323. "method": "/label/editLabel",
  324. "category": [
  325. "API参考",
  326. "客户管理",
  327. "标签模块"
  328. ],
  329. "docFile": "个人标签-增删改.md",
  330. "tags": [
  331. "label",
  332. "标签模块",
  333. "个人标签-增删改",
  334. "客户管理",
  335. "API参考"
  336. ],
  337. "params": [
  338. {
  339. "name": "guid",
  340. "in": "body",
  341. "type": "string",
  342. "required": true,
  343. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  344. },
  345. {
  346. "name": "opType",
  347. "in": "body",
  348. "type": "integer",
  349. "required": true,
  350. "desc": "1 新建标签, 此时必须设置 labelName 和 labelSuperId;2 删除标签,此时必须设置 labelId;3 修改标签, 此时必须设置 labelId 和 labelName,labelSuperId;"
  351. },
  352. {
  353. "name": "paramList",
  354. "in": "body",
  355. "type": "array",
  356. "required": true,
  357. "desc": "Param列表",
  358. "children": [
  359. {
  360. "name": "labelId",
  361. "in": "body",
  362. "type": "string",
  363. "required": false,
  364. "desc": "标签ID"
  365. },
  366. {
  367. "name": "labelSuperId",
  368. "in": "body",
  369. "type": "string",
  370. "required": false,
  371. "desc": "个人标签所属的分组ID"
  372. },
  373. {
  374. "name": "labelName",
  375. "in": "body",
  376. "type": "string",
  377. "required": false,
  378. "desc": "标签名称"
  379. }
  380. ]
  381. }
  382. ]
  383. },
  384. {
  385. "id": "cloud.wxDownload",
  386. "module": "cloud",
  387. "title": "个微文件下载",
  388. "summary": "个微文件下载 - 下载地址为临时云资源,非官方CDN,7–15天不定期清理,请及时下载。",
  389. "method": "/cloud/wxDownload",
  390. "category": [
  391. "API参考",
  392. "媒体与运营",
  393. "文件与媒体(下载",
  394. "上传)"
  395. ],
  396. "docFile": "个微文件下载.md",
  397. "tags": [
  398. "个微文件下载",
  399. "文件与媒体(下载",
  400. "上传)",
  401. "cloud",
  402. "媒体与运营",
  403. "API参考"
  404. ],
  405. "params": [
  406. {
  407. "name": "guid",
  408. "in": "body",
  409. "type": "string",
  410. "required": true,
  411. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  412. },
  413. {
  414. "name": "fileAeskey",
  415. "in": "body",
  416. "type": "string",
  417. "required": true,
  418. "desc": "文件Aeskey"
  419. },
  420. {
  421. "name": "fileAuthkey",
  422. "in": "body",
  423. "type": "string",
  424. "required": true,
  425. "desc": "文件Authkey"
  426. },
  427. {
  428. "name": "fileSize",
  429. "in": "body",
  430. "type": "integer",
  431. "required": true,
  432. "desc": "文件大小"
  433. },
  434. {
  435. "name": "fileType",
  436. "in": "body",
  437. "type": "integer",
  438. "required": true,
  439. "desc": "1: 大图. 如果【接收图片消息】中的字段 image_has_hd=1,或者fileBigHttpUrl有值, 则可以使用这个type下载2: 小图. 如果image_has_hd=0,或者fileMiddleHttpUrl有值, 则应该用这个type下载3: 视频/图片缩略图,对应thumb这个字段4: 视频5: 文件/语音文件"
  440. },
  441. {
  442. "name": "fileUrl",
  443. "in": "body",
  444. "type": "string",
  445. "required": true,
  446. "desc": "文件链接"
  447. }
  448. ],
  449. "responseHint": "data 字段:cloudUrl(云端文件地址。)"
  450. },
  451. {
  452. "id": "cloud.wxDownloadAsync",
  453. "module": "cloud",
  454. "title": "个微文件异步下载",
  455. "summary": "个微文件异步下载 - 下载地址为临时云资源,非官方CDN,7–15天不定期清理,请及时下载。• 异步下载结果通过回调通知,详情查阅回调结构说明中的 API 异步消息响应。• 根据回调返回的 requestId 值查询,requestId 一致即为对应下载结果。",
  456. "method": "/cloud/wxDownloadAsync",
  457. "category": [
  458. "API参考",
  459. "媒体与运营",
  460. "文件与媒体(下载",
  461. "上传)"
  462. ],
  463. "docFile": "个微文件异步下载.md",
  464. "tags": [
  465. "文件与媒体(下载",
  466. "上传)",
  467. "个微文件异步下载",
  468. "cloud",
  469. "媒体与运营",
  470. "API参考"
  471. ],
  472. "params": [
  473. {
  474. "name": "guid",
  475. "in": "body",
  476. "type": "string",
  477. "required": true,
  478. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  479. },
  480. {
  481. "name": "fileAeskey",
  482. "in": "body",
  483. "type": "string",
  484. "required": true,
  485. "desc": "文件Aeskey"
  486. },
  487. {
  488. "name": "fileAuthkey",
  489. "in": "body",
  490. "type": "string",
  491. "required": true,
  492. "desc": "文件Authkey"
  493. },
  494. {
  495. "name": "fileSize",
  496. "in": "body",
  497. "type": "integer",
  498. "required": true,
  499. "desc": "文件大小"
  500. },
  501. {
  502. "name": "fileType",
  503. "in": "body",
  504. "type": "integer",
  505. "required": true,
  506. "desc": "1: 大图. 如果【接收图片消息】中的字段 image_has_hd=1,或者fileBigHttpUrl有值, 则可以使用这个type下载2: 小图. 如果image_has_hd=0,或者fileMiddleHttpUrl有值, 则应该用这个type下载3: 视频/图片缩略图,对应thumb这个字段4: 视频5: 文件/语音文件"
  507. },
  508. {
  509. "name": "fileUrl",
  510. "in": "body",
  511. "type": "string",
  512. "required": true,
  513. "desc": "文件链接"
  514. }
  515. ],
  516. "responseHint": "data 字段:requestId(请使用requestId 去消息回调中获取文件地址)"
  517. },
  518. {
  519. "id": "login.verifyLoginQrcode",
  520. "module": "login",
  521. "title": "二维码-code验证(步骤4)",
  522. "summary": "二维码-code验证收到 6 位验证码后,调用本接口完成校验。 收到6位数验证码,执行此接口验证• 验证码校验成功后,必须再次调用 二维码状态-检测(步骤3) 接口,此时状态码将变为 Status=2,代表登录成功。",
  523. "method": "/login/verifyLoginQrcode",
  524. "category": [
  525. "API参考",
  526. "基础能力",
  527. "登录模块"
  528. ],
  529. "docFile": "二维码-code验证(步骤4).md",
  530. "tags": [
  531. "基础能力",
  532. "二维码-code验证(步骤4)",
  533. "登录模块",
  534. "login",
  535. "API参考"
  536. ],
  537. "params": [
  538. {
  539. "name": "guid",
  540. "in": "body",
  541. "type": "string",
  542. "required": true,
  543. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  544. },
  545. {
  546. "name": "code",
  547. "in": "body",
  548. "type": "string",
  549. "required": true,
  550. "desc": "手机端 6 位验证码。"
  551. }
  552. ]
  553. },
  554. {
  555. "id": "login.getLoginQrcode",
  556. "module": "login",
  557. "title": "二维码-获取(步骤2)",
  558. "summary": "二维码-获取 获取登录二维码及 loginQrcodeKey,供手机企微扫码完成设备绑定。 • 首次登录:请使用参数 useCache=false,获取全新二维码。 • 旧设备异常:提示设备不存在/不在线时,先调用恢复设备接口,再获取二维码。 • 恢复设备后:请使用参数 useCache=true,获取缓存二维码。",
  559. "method": "/login/getLoginQrcode",
  560. "category": [
  561. "API参考",
  562. "基础能力",
  563. "登录模块"
  564. ],
  565. "docFile": "二维码-获取(步骤2).md",
  566. "tags": [
  567. "基础能力",
  568. "登录模块",
  569. "login",
  570. "二维码-获取(步骤2)",
  571. "API参考"
  572. ],
  573. "params": [
  574. {
  575. "name": "guid",
  576. "in": "body",
  577. "type": "string",
  578. "required": true,
  579. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  580. },
  581. {
  582. "name": "useCache",
  583. "in": "body",
  584. "type": "boolean",
  585. "required": true,
  586. "desc": "是否使用缓存二维码,首次登录传 false。"
  587. }
  588. ],
  589. "responseHint": "data 字段:loginQrcodeBase64Data(二维码 Base64 图片。);loginQrcodeKey(二维码key)"
  590. },
  591. {
  592. "id": "login.checkLoginQrCode",
  593. "module": "login",
  594. "title": "二维码状态-检测(步骤3)",
  595. "summary": "二维码状态-检测 获取二维码后,需轮询调用本接口,实时获取用户的扫码进度。 核心逻辑 • 请求频率:建议轮询间隔 2-3 秒,避免请求过于频繁。 • 生命周期:从“获取二维码”开始,到“登录成功/失败”结束。超时将报错。",
  596. "method": "/login/checkLoginQrCode",
  597. "category": [
  598. "API参考",
  599. "基础能力",
  600. "登录模块"
  601. ],
  602. "docFile": "二维码状态-检测(步骤3).md",
  603. "tags": [
  604. "基础能力",
  605. "登录模块",
  606. "二维码状态-检测(步骤3)",
  607. "login",
  608. "API参考"
  609. ],
  610. "params": [
  611. {
  612. "name": "guid",
  613. "in": "body",
  614. "type": "string",
  615. "required": true,
  616. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  617. }
  618. ],
  619. "responseHint": "data 字段:corpId(企业 ID。);corpLogo(企业 Logo URL。);loginQrcodeKey(二维码 Key);loginQrcodeStatus(扫码状态:-1 未登陆,需要扫码登陆 · 0 未登陆,可免扫码登陆 · 1 已扫码待确认 · 2 登陆成功 · 4 用户取消登陆 · 10 已扫码确认,待检测6位验证码);nickname(昵称);userId(用户id);avatarUrl(头像 URL。)"
  620. },
  621. {
  622. "id": "cloud.cdnBigFileUploadByUrlAsync",
  623. "module": "cloud",
  624. "title": "企微大文件异步上传",
  625. "summary": "企微大文件异步上传 - 异步上传结果通过回调通知,详情查阅回调结构说明中的 API 异步消息响应。• 根据回调返回的 requestId 值查询,requestId 一致即为对应上传结果。",
  626. "method": "/cloud/cdnBigFileUploadByUrlAsync",
  627. "category": [
  628. "API参考",
  629. "媒体与运营",
  630. "文件与媒体(下载",
  631. "上传)"
  632. ],
  633. "docFile": "企微大文件异步上传.md",
  634. "tags": [
  635. "文件与媒体(下载",
  636. "企微大文件异步上传",
  637. "上传)",
  638. "cloud",
  639. "媒体与运营",
  640. "API参考"
  641. ],
  642. "params": [
  643. {
  644. "name": "guid",
  645. "in": "body",
  646. "type": "string",
  647. "required": true
  648. },
  649. {
  650. "name": "filename",
  651. "in": "body",
  652. "type": "string",
  653. "required": true
  654. },
  655. {
  656. "name": "fileUrl",
  657. "in": "body",
  658. "type": "string",
  659. "required": true
  660. },
  661. {
  662. "name": "fileType",
  663. "in": "body",
  664. "type": "integer",
  665. "required": true,
  666. "desc": "22大视频 35文件"
  667. }
  668. ],
  669. "responseHint": "data 字段:requestId(请求Id)"
  670. },
  671. {
  672. "id": "cloud.wxWorkDownload",
  673. "module": "cloud",
  674. "title": "企微文件下载",
  675. "summary": "企微文件下载 - 下载地址为临时云资源,非官方CDN,7–15天不定期清理,请及时下载。",
  676. "method": "/cloud/wxWorkDownload",
  677. "category": [
  678. "API参考",
  679. "媒体与运营",
  680. "文件与媒体(下载",
  681. "上传)"
  682. ],
  683. "docFile": "企微文件下载.md",
  684. "tags": [
  685. "文件与媒体(下载",
  686. "企微文件下载",
  687. "上传)",
  688. "cloud",
  689. "媒体与运营",
  690. "API参考"
  691. ],
  692. "params": [
  693. {
  694. "name": "guid",
  695. "in": "body",
  696. "type": "string",
  697. "required": true,
  698. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  699. },
  700. {
  701. "name": "fileAeskey",
  702. "in": "body",
  703. "type": "string",
  704. "required": true,
  705. "desc": "文件Aeskey"
  706. },
  707. {
  708. "name": "fileId",
  709. "in": "body",
  710. "type": "string",
  711. "required": true,
  712. "desc": "文件 ID"
  713. },
  714. {
  715. "name": "fileSize",
  716. "in": "body",
  717. "type": "integer",
  718. "required": true,
  719. "desc": "文件大小"
  720. },
  721. {
  722. "name": "fileType",
  723. "in": "body",
  724. "type": "integer",
  725. "required": true,
  726. "desc": "文件类型编号。"
  727. }
  728. ],
  729. "responseHint": "data 字段:cloudUrl(云端文件地址。)"
  730. },
  731. {
  732. "id": "cloud.cdnUploadByUrlAsync",
  733. "module": "cloud",
  734. "title": "企微文件异步上传",
  735. "summary": "企微文件异步上传 - 异步上传结果通过回调通知,详情查阅回调结构说明中的 API 异步消息响应。• 根据回调返回的 requestId 值查询,requestId 一致即为对应上传结果。",
  736. "method": "/cloud/cdnUploadByUrlAsync",
  737. "category": [
  738. "API参考",
  739. "媒体与运营",
  740. "文件与媒体(下载",
  741. "上传)"
  742. ],
  743. "docFile": "企微文件异步上传.md",
  744. "tags": [
  745. "文件与媒体(下载",
  746. "企微文件异步上传",
  747. "上传)",
  748. "cloud",
  749. "媒体与运营",
  750. "API参考"
  751. ],
  752. "params": [
  753. {
  754. "name": "guid",
  755. "in": "body",
  756. "type": "string",
  757. "required": true,
  758. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  759. },
  760. {
  761. "name": "filename",
  762. "in": "body",
  763. "type": "string",
  764. "required": true,
  765. "desc": "文件名称"
  766. },
  767. {
  768. "name": "fileUrl",
  769. "in": "body",
  770. "type": "string",
  771. "required": true,
  772. "desc": "文件url地址"
  773. },
  774. {
  775. "name": "fileType",
  776. "in": "body",
  777. "type": "integer",
  778. "required": true,
  779. "desc": "1: jpg图片4: mp4视频5: 文件(也包括语音silk文件)"
  780. }
  781. ],
  782. "responseHint": "data 字段:requestId(请求Id)"
  783. },
  784. {
  785. "id": "cloud.wxWorkDownloadAsync",
  786. "module": "cloud",
  787. "title": "企微文件异步下载",
  788. "summary": "企微文件异步下载 - 下载地址为临时云资源,非官方CDN,7–15天不定期清理,请及时下载。• 异步下载结果通过回调通知,详情查阅回调结构说明中的 API 异步消息响应。• 根据回调返回的 requestId 值查询,requestId 一致即为对应下载结果。",
  789. "method": "/cloud/wxWorkDownloadAsync",
  790. "category": [
  791. "API参考",
  792. "媒体与运营",
  793. "文件与媒体(下载",
  794. "上传)"
  795. ],
  796. "docFile": "企微文件异步下载.md",
  797. "tags": [
  798. "文件与媒体(下载",
  799. "企微文件异步下载",
  800. "上传)",
  801. "cloud",
  802. "媒体与运营",
  803. "API参考"
  804. ],
  805. "params": [
  806. {
  807. "name": "guid",
  808. "in": "body",
  809. "type": "string",
  810. "required": true,
  811. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  812. },
  813. {
  814. "name": "fileAeskey",
  815. "in": "body",
  816. "type": "string",
  817. "required": true,
  818. "desc": "文件Aeskey"
  819. },
  820. {
  821. "name": "fileId",
  822. "in": "body",
  823. "type": "string",
  824. "required": true,
  825. "desc": "文件 ID"
  826. },
  827. {
  828. "name": "fileSize",
  829. "in": "body",
  830. "type": "integer",
  831. "required": true,
  832. "desc": "文件大小"
  833. },
  834. {
  835. "name": "fileType",
  836. "in": "body",
  837. "type": "integer",
  838. "required": true,
  839. "desc": "1: 大图. 如果【接收图片消息】中的字段 image_has_hd=1, 则可以使用这个type下载2: 小图. 如果image_has_hd=0, 则应该用这个type下载3: 视频/图片缩略图,对应thumb这个字段4: 视频5: 文件/语音文件"
  840. }
  841. ],
  842. "responseHint": "data 字段:requestId(请使用requestId 去消息回调中获取文件地址)"
  843. },
  844. {
  845. "id": "session.getSessionPage",
  846. "module": "session",
  847. "title": "会话分页",
  848. "summary": "会话分页 分页查询会话列表,包含单聊与群聊会话。 注意:须传入 guid,为已登录云设备唯一标识,通过创建设备接口获取。",
  849. "method": "/session/getSessionPage",
  850. "category": [
  851. "API参考",
  852. "会话与消息",
  853. "会话模块"
  854. ],
  855. "docFile": "会话分页.md",
  856. "tags": [
  857. "会话与消息",
  858. "会话模块",
  859. "session",
  860. "会话分页",
  861. "API参考"
  862. ],
  863. "params": [
  864. {
  865. "name": "guid",
  866. "in": "body",
  867. "type": "string",
  868. "required": true,
  869. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  870. },
  871. {
  872. "name": "currentSeq",
  873. "in": "body",
  874. "type": "integer",
  875. "required": true,
  876. "desc": "暂时不支持。分页使用,首次传0,下次传入返回值currentSeq"
  877. }
  878. ],
  879. "responseHint": "data 字段:currentSeq(下次请求时应传入的currentSeq);hasMore(是否有更多);sessionCount(会话数量);sessionList(会话列表)"
  880. },
  881. {
  882. "id": "session.getSessionList",
  883. "module": "session",
  884. "title": "会话组-查询",
  885. "summary": "会话组-查询 查询会话分组列表及每个分组下的会话归属。 注意:须传入 guid,为已登录云设备唯一标识,通过创建设备接口获取。",
  886. "method": "/session/getSessionList",
  887. "category": [
  888. "API参考",
  889. "会话与消息",
  890. "会话模块"
  891. ],
  892. "docFile": "会话组-查询.md",
  893. "tags": [
  894. "会话与消息",
  895. "会话模块",
  896. "session",
  897. "会话组-查询",
  898. "API参考"
  899. ],
  900. "params": [
  901. {
  902. "name": "guid",
  903. "in": "body",
  904. "type": "string",
  905. "required": true,
  906. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  907. }
  908. ],
  909. "responseHint": "data 字段:collectList(通讯录列表);shieldList(免打扰列表);topList(置顶列表);markList(标记列表)"
  910. },
  911. {
  912. "id": "session.setSessionCmd",
  913. "module": "session",
  914. "title": "会话组-编辑",
  915. "summary": "会话组-编辑 创建、修改或删除会话分组,整理会话列表结构。 注意:须传入 guid,为已登录云设备唯一标识,通过创建设备接口获取。",
  916. "method": "/session/setSessionCmd",
  917. "category": [
  918. "API参考",
  919. "会话与消息",
  920. "会话模块"
  921. ],
  922. "docFile": "会话组-编辑.md",
  923. "tags": [
  924. "会话与消息",
  925. "会话组-编辑",
  926. "会话模块",
  927. "session",
  928. "API参考"
  929. ],
  930. "params": [
  931. {
  932. "name": "guid",
  933. "in": "body",
  934. "type": "string",
  935. "required": true,
  936. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  937. },
  938. {
  939. "name": "chatId",
  940. "in": "body",
  941. "type": "string",
  942. "required": true,
  943. "desc": "会话id"
  944. },
  945. {
  946. "name": "chatType",
  947. "in": "body",
  948. "type": "integer",
  949. "required": true,
  950. "desc": "1: 置顶 2: 取消置顶 3: 开启免打扰 4: 取消免打扰 5: 保存群聊到通讯录 6: 从通讯录移除群聊 7: 标记 8:取消标记"
  951. }
  952. ]
  953. },
  954. {
  955. "id": "msg.statusModify",
  956. "module": "msg",
  957. "title": "修改消息状态",
  958. "summary": "修改消息状态 批量查询朋友圈动态的详细内容,包括图片、视频与互动信息。 注意:须传入 guid,为已登录云设备唯一标识,通过创建设备接口获取。",
  959. "method": "/msg/statusModify",
  960. "category": [
  961. "API参考",
  962. "会话与消息",
  963. "消息模块 "
  964. ],
  965. "docFile": "修改消息状态.md",
  966. "tags": [
  967. "修改消息状态",
  968. "会话与消息",
  969. "msg",
  970. "消息模块 ",
  971. "API参考"
  972. ],
  973. "params": [
  974. {
  975. "name": "guid",
  976. "in": "body",
  977. "type": "string",
  978. "required": true,
  979. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  980. },
  981. {
  982. "name": "chatId",
  983. "in": "body",
  984. "type": "string",
  985. "required": true,
  986. "desc": "会话id,=sessionId"
  987. },
  988. {
  989. "name": "modifyType",
  990. "in": "body",
  991. "type": "integer",
  992. "required": true,
  993. "desc": "1: 标记为已读 2: 标记为未读 3: 清空聊天记录 4: 从聊天列表删除该聊天"
  994. }
  995. ]
  996. },
  997. {
  998. "id": "room.modifyRoomNotice",
  999. "module": "room",
  1000. "title": "修改群公告",
  1001. "summary": "修改群公告 修改指定群聊的公告内容。",
  1002. "method": "/room/modifyRoomNotice",
  1003. "category": [
  1004. "API参考",
  1005. "客户管理",
  1006. "群模块"
  1007. ],
  1008. "docFile": "修改群公告.md",
  1009. "tags": [
  1010. "修改群公告",
  1011. "群模块",
  1012. "room",
  1013. "客户管理",
  1014. "API参考"
  1015. ],
  1016. "params": [
  1017. {
  1018. "name": "guid",
  1019. "in": "body",
  1020. "type": "string",
  1021. "required": true,
  1022. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  1023. },
  1024. {
  1025. "name": "roomId",
  1026. "in": "body",
  1027. "type": "string",
  1028. "required": true,
  1029. "desc": "群聊 ID。"
  1030. },
  1031. {
  1032. "name": "notice",
  1033. "in": "body",
  1034. "type": "string",
  1035. "required": true,
  1036. "desc": "群公告。"
  1037. }
  1038. ]
  1039. },
  1040. {
  1041. "id": "room.modifyRoomNickname",
  1042. "module": "room",
  1043. "title": "修改群内昵称",
  1044. "summary": "修改群内昵称 修改当前账号在指定群内的显示昵称。",
  1045. "method": "/room/modifyRoomNickname",
  1046. "category": [
  1047. "API参考",
  1048. "客户管理",
  1049. "群模块"
  1050. ],
  1051. "docFile": "修改群内昵称.md",
  1052. "tags": [
  1053. "群模块",
  1054. "room",
  1055. "修改群内昵称",
  1056. "客户管理",
  1057. "API参考"
  1058. ],
  1059. "params": [
  1060. {
  1061. "name": "guid",
  1062. "in": "body",
  1063. "type": "string",
  1064. "required": true,
  1065. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  1066. },
  1067. {
  1068. "name": "roomId",
  1069. "in": "body",
  1070. "type": "string",
  1071. "required": true,
  1072. "desc": "群聊 ID。"
  1073. },
  1074. {
  1075. "name": "nickname",
  1076. "in": "body",
  1077. "type": "string",
  1078. "required": true,
  1079. "desc": "用户昵称。"
  1080. }
  1081. ]
  1082. },
  1083. {
  1084. "id": "room.modifyRoomName",
  1085. "module": "room",
  1086. "title": "修改群名称",
  1087. "summary": "修改群名称 修改指定群聊的名称。",
  1088. "method": "/room/modifyRoomName",
  1089. "category": [
  1090. "API参考",
  1091. "客户管理",
  1092. "群模块"
  1093. ],
  1094. "docFile": "修改群名称.md",
  1095. "tags": [
  1096. "群模块",
  1097. "room",
  1098. "客户管理",
  1099. "修改群名称",
  1100. "API参考"
  1101. ],
  1102. "params": [
  1103. {
  1104. "name": "guid",
  1105. "in": "body",
  1106. "type": "string",
  1107. "required": true,
  1108. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  1109. },
  1110. {
  1111. "name": "roomId",
  1112. "in": "body",
  1113. "type": "string",
  1114. "required": true,
  1115. "desc": "群聊 ID。"
  1116. },
  1117. {
  1118. "name": "name",
  1119. "in": "body",
  1120. "type": "string",
  1121. "required": true,
  1122. "desc": "名称"
  1123. }
  1124. ]
  1125. },
  1126. {
  1127. "id": "room.modifyRoomRemarkName",
  1128. "module": "room",
  1129. "title": "修改群备注",
  1130. "summary": "修改群备注 群备注仅自己可见",
  1131. "method": "/room/modifyRoomRemarkName",
  1132. "category": [
  1133. "API参考",
  1134. "客户管理",
  1135. "群模块"
  1136. ],
  1137. "docFile": "修改群备注.md",
  1138. "tags": [
  1139. "群模块",
  1140. "room",
  1141. "修改群备注",
  1142. "客户管理",
  1143. "API参考"
  1144. ],
  1145. "params": [
  1146. {
  1147. "name": "guid",
  1148. "in": "body",
  1149. "type": "string",
  1150. "required": true,
  1151. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  1152. },
  1153. {
  1154. "name": "roomId",
  1155. "in": "body",
  1156. "type": "string",
  1157. "required": true,
  1158. "desc": "群聊 ID。"
  1159. },
  1160. {
  1161. "name": "remarkName",
  1162. "in": "body",
  1163. "type": "string",
  1164. "required": true,
  1165. "desc": "备注名称"
  1166. }
  1167. ]
  1168. },
  1169. {
  1170. "id": "client.stopClient",
  1171. "module": "client",
  1172. "title": "停用设备",
  1173. "summary": "停用设备 设备切换 如需更换新设备或重新开始流程,请遵循 “先停再建” 原则:• 第一步:停用设备 调用「停用设备」接口,释放当前占用的资源。• 第二步:创建设备 调用 创建设备(步骤1) 接口,初始化全新的设备环境。",
  1174. "method": "/client/stopClient",
  1175. "category": [
  1176. "API参考",
  1177. "基础能力",
  1178. "登录模块"
  1179. ],
  1180. "docFile": "停用设备.md",
  1181. "tags": [
  1182. "基础能力",
  1183. "登录模块",
  1184. "client",
  1185. "停用设备",
  1186. "API参考"
  1187. ],
  1188. "params": [
  1189. {
  1190. "name": "guid",
  1191. "in": "body",
  1192. "type": "string",
  1193. "required": true,
  1194. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  1195. }
  1196. ]
  1197. },
  1198. {
  1199. "id": "contact.updateWxWorkContact",
  1200. "module": "contact",
  1201. "title": "内部联系人信息-更新",
  1202. "summary": "内部联系人信息-更新 更新内部联系人的备注等资料信息。",
  1203. "method": "/contact/updateWxWorkContact",
  1204. "category": [
  1205. "API参考",
  1206. "客户管理",
  1207. "联系人模块"
  1208. ],
  1209. "docFile": "内部联系人信息-更新.md",
  1210. "tags": [
  1211. "contact",
  1212. "联系人模块",
  1213. "客户管理",
  1214. "内部联系人信息-更新",
  1215. "API参考"
  1216. ],
  1217. "params": [
  1218. {
  1219. "name": "guid",
  1220. "in": "body",
  1221. "type": "string",
  1222. "required": true,
  1223. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  1224. },
  1225. {
  1226. "name": "userId",
  1227. "in": "body",
  1228. "type": "string",
  1229. "required": true,
  1230. "desc": "用户id"
  1231. },
  1232. {
  1233. "name": "remark",
  1234. "in": "body",
  1235. "type": "string",
  1236. "required": true,
  1237. "desc": "备注名。"
  1238. },
  1239. {
  1240. "name": "desc",
  1241. "in": "body",
  1242. "type": "string",
  1243. "required": true,
  1244. "desc": "描述"
  1245. }
  1246. ]
  1247. },
  1248. {
  1249. "id": "contact.getWxWorkContactList",
  1250. "module": "contact",
  1251. "title": "内部联系人分页",
  1252. "summary": "内部联系人分页 分页拉取企业内部联系人(同事)列表。",
  1253. "method": "/contact/getWxWorkContactList",
  1254. "category": [
  1255. "API参考",
  1256. "客户管理",
  1257. "联系人模块"
  1258. ],
  1259. "docFile": "内部联系人分页.md",
  1260. "tags": [
  1261. "contact",
  1262. "内部联系人分页",
  1263. "联系人模块",
  1264. "客户管理",
  1265. "API参考"
  1266. ],
  1267. "params": [
  1268. {
  1269. "name": "guid",
  1270. "in": "body",
  1271. "type": "string",
  1272. "required": true,
  1273. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  1274. },
  1275. {
  1276. "name": "clientVersion",
  1277. "in": "body",
  1278. "type": "string",
  1279. "required": true,
  1280. "desc": "客户端版本号。"
  1281. },
  1282. {
  1283. "name": "limit",
  1284. "in": "body",
  1285. "type": "integer",
  1286. "required": true,
  1287. "desc": "每页数量"
  1288. }
  1289. ],
  1290. "responseHint": "data 字段:contactCount(联系人数量);contactList(联系人列表);currentVersion(下次请求时应传入的currentVersion);hasMore(是否有更多)"
  1291. },
  1292. {
  1293. "id": "label.syncLabelList",
  1294. "module": "label",
  1295. "title": "列表分页",
  1296. "summary": "列表分页 分页查询列表数据。",
  1297. "method": "/label/syncLabelList",
  1298. "category": [
  1299. "API参考",
  1300. "客户管理",
  1301. "标签模块"
  1302. ],
  1303. "docFile": "列表分页.md",
  1304. "tags": [
  1305. "label",
  1306. "标签模块",
  1307. "客户管理",
  1308. "列表分页",
  1309. "API参考"
  1310. ],
  1311. "params": [
  1312. {
  1313. "name": "guid",
  1314. "in": "body",
  1315. "type": "string",
  1316. "required": true,
  1317. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  1318. },
  1319. {
  1320. "name": "currentSeq",
  1321. "in": "body",
  1322. "type": "integer",
  1323. "required": true,
  1324. "desc": "分页使用,首次传0,下次传入返回值currentSeq"
  1325. },
  1326. {
  1327. "name": "labelType",
  1328. "in": "body",
  1329. "type": "integer",
  1330. "required": true,
  1331. "desc": "1 企业标签 =2 个人标签"
  1332. }
  1333. ],
  1334. "responseHint": "data 字段:currentSeq(下次请求时应传入的currentSeq);hasMore(是否有更多);labelCount(标签数量);labelList(标签列表)"
  1335. },
  1336. {
  1337. "id": "room.createRoom",
  1338. "module": "room",
  1339. "title": "创建群",
  1340. "summary": "创建群 创建新的群聊。",
  1341. "method": "/room/createRoom",
  1342. "category": [
  1343. "API参考",
  1344. "客户管理",
  1345. "群模块"
  1346. ],
  1347. "docFile": "创建群.md",
  1348. "tags": [
  1349. "群模块",
  1350. "room",
  1351. "客户管理",
  1352. "创建群",
  1353. "API参考"
  1354. ],
  1355. "params": [
  1356. {
  1357. "name": "guid",
  1358. "in": "body",
  1359. "type": "string",
  1360. "required": true,
  1361. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  1362. },
  1363. {
  1364. "name": "isOuterRoom",
  1365. "in": "body",
  1366. "type": "integer",
  1367. "required": true,
  1368. "desc": "是否外部群"
  1369. },
  1370. {
  1371. "name": "memberList",
  1372. "in": "body",
  1373. "type": "array",
  1374. "required": true,
  1375. "desc": "成员列表。"
  1376. }
  1377. ],
  1378. "responseHint": "data 字段:memberList(群成员列表);roomCreatetime(创建时间);roomCreatorId(创建人id);roomId(群id)"
  1379. },
  1380. {
  1381. "id": "client.createClient",
  1382. "module": "client",
  1383. "title": "创建设备(步骤1)",
  1384. "summary": "创建设备 — 获取虚拟设备实例 通过该接口创建一个企业微信云设备实例,返回 guid(设备唯一标识)。后续所有操作(扫码登录、收发消息等)均依赖此 guid。 重要:创建/恢复设备后 5 分钟内未完成登录,该实例将自动清理。代理地区务必与企微手机登录所在地一致,严禁异省,否则可能导致登录失败。",
  1385. "method": "/client/createClient",
  1386. "category": [
  1387. "API参考",
  1388. "基础能力",
  1389. "登录模块"
  1390. ],
  1391. "docFile": "创建设备(步骤1).md",
  1392. "tags": [
  1393. "基础能力",
  1394. "登录模块",
  1395. "创建设备(步骤1)",
  1396. "client",
  1397. "API参考"
  1398. ],
  1399. "params": [
  1400. {
  1401. "name": "proxyUrl",
  1402. "in": "body",
  1403. "type": "string",
  1404. "required": false,
  1405. "desc": "- **网络方式2:自定义代理ip** 格式必须为: socks5://user:password@ip:port,如无验证直接写地址即可。目前只支持socks5。 示例:socks5://root:123456@192.168.88.242:1080"
  1406. },
  1407. {
  1408. "name": "areaCode",
  1409. "in": "body",
  1410. "type": "integer",
  1411. "required": false,
  1412. "desc": "- **网络方式1:使用地区ID** 110000:北京市 | 120000:天津市 | 130000:河北省 | 140000:山西省 150000:内蒙古 | 210000:辽宁省 | 220000:吉林省 | 230000:黑龙江省 310000:上海市 | 320000:江苏省 | 330000:浙江省 | 340000:安徽省 350000:福建省 | 360000:江西省 | 370000:山东省 | 410000:河南省 420000:湖北省 | 430000:湖南省 | 440000:广东省 | 450000:广 西 460000:海南省 | 500000:重庆市 | 510000:四川省 | 520000:贵州省 530000:云南省 | 540000:西 藏 | 610000:陕西省 | 620000:甘肃省 630000:青海省 | 640000:宁 夏 | 650000:新 疆"
  1413. },
  1414. {
  1415. "name": "deviceName",
  1416. "in": "body",
  1417. "type": "string",
  1418. "required": true,
  1419. "desc": "用于在控制台辨识不同设备,如「张三的iPad"
  1420. },
  1421. {
  1422. "name": "deviceType",
  1423. "in": "body",
  1424. "type": "integer",
  1425. "required": true,
  1426. "desc": "设备类型:0 = iPad(推荐),2 = Windows"
  1427. },
  1428. {
  1429. "name": "clientVersion",
  1430. "in": "body",
  1431. "type": "string",
  1432. "required": true,
  1433. "desc": "iPad 最新版5.0.2.206376 = ,Windows 最新版5.0.2.6011。如无特殊需求置空即可"
  1434. },
  1435. {
  1436. "name": "aid",
  1437. "in": "body",
  1438. "type": "string",
  1439. "required": false,
  1440. "desc": "- **网络方式3:本地代理** 需配合 Aid 客户端工具使用:[Win Aid 工具下载](https://download-1308498490.cos.ap-guangzhou.myqcloud.com/gewe-AidNet-win64.exe_20260425_200627.zip?q-sign-algorithm=sha1&q-ak=AKIDmOkqfDUUDfqjMincBSSAbleGaeQv96mB&q-sign-time=1777118830;10417032430&q-key-time=1777118830;10417032430&q-header-list=host&q-url-param-list=&q-signature=3a7cabdea6463d09f51936f1f5fdad111dc70e9c) 需在本地电脑运行 Aid 客户端 24小时在线 提供最稳定、最纯净的网络环境"
  1441. }
  1442. ],
  1443. "responseHint": "data 字段:guid(参数 guid)"
  1444. },
  1445. {
  1446. "id": "sns.deleteSns",
  1447. "module": "sns",
  1448. "title": "删除朋友圈",
  1449. "summary": "删除朋友圈 删除指定朋友圈动态。",
  1450. "method": "/sns/deleteSns",
  1451. "category": [
  1452. "API参考",
  1453. "媒体与运营",
  1454. "朋友圈模块"
  1455. ],
  1456. "docFile": "删除朋友圈.md",
  1457. "tags": [
  1458. "sns",
  1459. "朋友圈模块",
  1460. "删除朋友圈",
  1461. "媒体与运营",
  1462. "API参考"
  1463. ],
  1464. "params": [
  1465. {
  1466. "name": "guid",
  1467. "in": "body",
  1468. "type": "string",
  1469. "required": true,
  1470. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  1471. },
  1472. {
  1473. "name": "snsId",
  1474. "in": "body",
  1475. "type": "number",
  1476. "required": true,
  1477. "desc": "朋友圈Id"
  1478. }
  1479. ]
  1480. },
  1481. {
  1482. "id": "contact.deleteContact",
  1483. "module": "contact",
  1484. "title": "删除联系人",
  1485. "summary": "删除联系人 删除指定联系人,解除好友关系或从列表中移除。",
  1486. "method": "/contact/deleteContact",
  1487. "category": [
  1488. "API参考",
  1489. "客户管理",
  1490. "联系人模块"
  1491. ],
  1492. "docFile": "删除联系人.md",
  1493. "tags": [
  1494. "contact",
  1495. "联系人模块",
  1496. "删除联系人",
  1497. "客户管理",
  1498. "API参考"
  1499. ],
  1500. "params": [
  1501. {
  1502. "name": "guid",
  1503. "in": "body",
  1504. "type": "string",
  1505. "required": true,
  1506. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  1507. },
  1508. {
  1509. "name": "userId",
  1510. "in": "body",
  1511. "type": "string",
  1512. "required": true,
  1513. "desc": "用户id"
  1514. }
  1515. ]
  1516. },
  1517. {
  1518. "id": "msg.sendGif",
  1519. "module": "msg",
  1520. "title": "发送GIF表情消息",
  1521. "summary": "发送GIF表情消息 发送GIF表情步骤方法一: GIF图片上传:调用 文件上传 接口。 获取GIF的CdnUrl:调用 文件CDN转URL 接口。 发送GIF表情步骤方法二: 获取收藏表情列表:通过调用 收藏分页 API,过滤出 表情收藏列表 。",
  1522. "method": "/msg/sendGif",
  1523. "category": [
  1524. "API参考",
  1525. "会话与消息",
  1526. "消息模块 "
  1527. ],
  1528. "docFile": "发送GIF表情消息.md",
  1529. "tags": [
  1530. "会话与消息",
  1531. "发送GIF表情消息",
  1532. "msg",
  1533. "消息模块 ",
  1534. "API参考"
  1535. ],
  1536. "params": [
  1537. {
  1538. "name": "guid",
  1539. "in": "body",
  1540. "type": "string",
  1541. "required": true,
  1542. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  1543. },
  1544. {
  1545. "name": "wxFileUrl",
  1546. "in": "body",
  1547. "type": "string",
  1548. "required": true,
  1549. "desc": "Wx文件链接"
  1550. },
  1551. {
  1552. "name": "toId",
  1553. "in": "body",
  1554. "type": "string",
  1555. "required": true,
  1556. "desc": "接收方 ID,联系人传 userId,群聊传 roomId。"
  1557. }
  1558. ],
  1559. "responseHint": "data 字段:isSendSuccess(是否发送成功);msgServerId(消息id,用于撤回消息);msgType(是否发送成功);msgUniqueIdentifier(消息唯一标识);seq(消息序号);timestamp(时间戳)"
  1560. },
  1561. {
  1562. "id": "msg.sendPersonalCard",
  1563. "module": "msg",
  1564. "title": "发送名片消息",
  1565. "summary": "发送名片消息 取消群内置顶消息。 注意:须传入 guid,为已登录云设备唯一标识,通过创建设备接口获取。",
  1566. "method": "/msg/sendPersonalCard",
  1567. "category": [
  1568. "API参考",
  1569. "会话与消息",
  1570. "消息模块 "
  1571. ],
  1572. "docFile": "发送名片消息.md",
  1573. "tags": [
  1574. "会话与消息",
  1575. "发送名片消息",
  1576. "msg",
  1577. "消息模块 ",
  1578. "API参考"
  1579. ],
  1580. "params": [
  1581. {
  1582. "name": "guid",
  1583. "in": "body",
  1584. "type": "string",
  1585. "required": true,
  1586. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  1587. },
  1588. {
  1589. "name": "sharedId",
  1590. "in": "body",
  1591. "type": "string",
  1592. "required": true,
  1593. "desc": "要分享的好友id"
  1594. },
  1595. {
  1596. "name": "toId",
  1597. "in": "body",
  1598. "type": "string",
  1599. "required": true,
  1600. "desc": "接收方 ID,联系人传 userId,群聊传 roomId。"
  1601. }
  1602. ],
  1603. "responseHint": "data 字段:isSendSuccess(是否发送成功);msgServerId(消息id,用于撤回消息);msgType(消息类型);msgUniqueIdentifier(消息唯一标识);seq(消息序号);timestamp(时间戳)"
  1604. },
  1605. {
  1606. "id": "msg.sendImage",
  1607. "module": "msg",
  1608. "title": "发送图片消息",
  1609. "summary": "发送图片消息 图片格式 JPG 图片消息参数:通过接口 文件上传 或 文件上传-URL 获取发送图片参数。也可通过回调获取相应参数。",
  1610. "method": "/msg/sendImage",
  1611. "category": [
  1612. "API参考",
  1613. "会话与消息",
  1614. "消息模块 "
  1615. ],
  1616. "docFile": "发送图片消息.md",
  1617. "tags": [
  1618. "发送图片消息",
  1619. "会话与消息",
  1620. "msg",
  1621. "消息模块 ",
  1622. "API参考"
  1623. ],
  1624. "params": [
  1625. {
  1626. "name": "guid",
  1627. "in": "body",
  1628. "type": "string",
  1629. "required": true,
  1630. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  1631. },
  1632. {
  1633. "name": "fileAesKey",
  1634. "in": "body",
  1635. "type": "string",
  1636. "required": true,
  1637. "desc": "文件密钥"
  1638. },
  1639. {
  1640. "name": "fileId",
  1641. "in": "body",
  1642. "type": "string",
  1643. "required": true,
  1644. "desc": "文件id"
  1645. },
  1646. {
  1647. "name": "fileMd5",
  1648. "in": "body",
  1649. "type": "string",
  1650. "required": true,
  1651. "desc": "文件md5值"
  1652. },
  1653. {
  1654. "name": "fileSize",
  1655. "in": "body",
  1656. "type": "integer",
  1657. "required": true,
  1658. "desc": "文件大小"
  1659. },
  1660. {
  1661. "name": "filename",
  1662. "in": "body",
  1663. "type": "string",
  1664. "required": true,
  1665. "desc": "文件名称"
  1666. },
  1667. {
  1668. "name": "toId",
  1669. "in": "body",
  1670. "type": "string",
  1671. "required": true,
  1672. "desc": "接收方 ID,联系人传 userId,群聊传 roomId。"
  1673. }
  1674. ],
  1675. "responseHint": "data 字段:isSendSuccess(是否发送成功);msgServerId(消息id,用于撤回消息);msgType(消息类型);msgUniqueIdentifier(消息唯一标识);seq(消息序号);timestamp(时间戳)"
  1676. },
  1677. {
  1678. "id": "msg.sendLocation",
  1679. "module": "msg",
  1680. "title": "发送定位消息",
  1681. "summary": "发送定位消息 查询群发任务的执行状态与发送结果。 注意:须传入 guid,为已登录云设备唯一标识,通过创建设备接口获取。",
  1682. "method": "/msg/sendLocation",
  1683. "category": [
  1684. "API参考",
  1685. "会话与消息",
  1686. "消息模块 "
  1687. ],
  1688. "docFile": "发送定位消息.md",
  1689. "tags": [
  1690. "会话与消息",
  1691. "msg",
  1692. "发送定位消息",
  1693. "消息模块 ",
  1694. "API参考"
  1695. ],
  1696. "params": [
  1697. {
  1698. "name": "guid",
  1699. "in": "body",
  1700. "type": "string",
  1701. "required": true,
  1702. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  1703. },
  1704. {
  1705. "name": "title",
  1706. "in": "body",
  1707. "type": "string",
  1708. "required": true,
  1709. "desc": "标题"
  1710. },
  1711. {
  1712. "name": "address",
  1713. "in": "body",
  1714. "type": "string",
  1715. "required": true,
  1716. "desc": "地址"
  1717. },
  1718. {
  1719. "name": "latitude",
  1720. "in": "body",
  1721. "type": "number",
  1722. "required": true,
  1723. "desc": "纬度"
  1724. },
  1725. {
  1726. "name": "longitude",
  1727. "in": "body",
  1728. "type": "number",
  1729. "required": true,
  1730. "desc": "经度"
  1731. },
  1732. {
  1733. "name": "toId",
  1734. "in": "body",
  1735. "type": "string",
  1736. "required": true,
  1737. "desc": "接收方 ID,联系人传 userId,群聊传 roomId。"
  1738. }
  1739. ],
  1740. "responseHint": "data 字段:isSendSuccess(是否发送成功);msgServerId(消息id,用于撤回消息);msgType(消息类型);msgUniqueIdentifier(消息唯一标识);seq(消息序号);timestamp(时间戳)"
  1741. },
  1742. {
  1743. "id": "msg.sendWeapp",
  1744. "module": "msg",
  1745. "title": "发送小程序消息",
  1746. "summary": "发送小程序消息 将指定消息设为群内置顶,方便成员查看重要通知。 注意:须传入 guid,为已登录云设备唯一标识,通过创建设备接口获取。",
  1747. "method": "/msg/sendWeapp",
  1748. "category": [
  1749. "API参考",
  1750. "会话与消息",
  1751. "消息模块 "
  1752. ],
  1753. "docFile": "发送小程序消息.md",
  1754. "tags": [
  1755. "发送小程序消息",
  1756. "会话与消息",
  1757. "msg",
  1758. "消息模块 ",
  1759. "API参考"
  1760. ],
  1761. "params": [
  1762. {
  1763. "name": "guid",
  1764. "in": "body",
  1765. "type": "string",
  1766. "required": true,
  1767. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  1768. },
  1769. {
  1770. "name": "appId",
  1771. "in": "body",
  1772. "type": "string",
  1773. "required": true,
  1774. "desc": "小程序appid"
  1775. },
  1776. {
  1777. "name": "coverFileAesKey",
  1778. "in": "body",
  1779. "type": "string",
  1780. "required": true,
  1781. "desc": "封面文件AesKey"
  1782. },
  1783. {
  1784. "name": "coverFileId",
  1785. "in": "body",
  1786. "type": "string",
  1787. "required": true,
  1788. "desc": "封面图id"
  1789. },
  1790. {
  1791. "name": "coverFileSize",
  1792. "in": "body",
  1793. "type": "integer",
  1794. "required": true,
  1795. "desc": "封面图大小"
  1796. },
  1797. {
  1798. "name": "desc",
  1799. "in": "body",
  1800. "type": "string",
  1801. "required": true,
  1802. "desc": "描述"
  1803. },
  1804. {
  1805. "name": "pagePath",
  1806. "in": "body",
  1807. "type": "string",
  1808. "required": true,
  1809. "desc": "小程序页面路径。"
  1810. },
  1811. {
  1812. "name": "thumbUrl",
  1813. "in": "body",
  1814. "type": "string",
  1815. "required": true,
  1816. "desc": "缩略图 URL。"
  1817. },
  1818. {
  1819. "name": "title",
  1820. "in": "body",
  1821. "type": "string",
  1822. "required": true,
  1823. "desc": "标题"
  1824. },
  1825. {
  1826. "name": "username",
  1827. "in": "body",
  1828. "type": "string",
  1829. "required": true,
  1830. "desc": "账号原始id"
  1831. },
  1832. {
  1833. "name": "toId",
  1834. "in": "body",
  1835. "type": "string",
  1836. "required": true,
  1837. "desc": "接收方 ID,联系人传 userId,群聊传 roomId。"
  1838. }
  1839. ],
  1840. "responseHint": "data 字段:isSendSuccess(是否发送成功);msgServerId(消息id,用于撤回消息);msgType(消息类型);msgUniqueIdentifier(消息唯一标识);seq(消息序号);timestamp(时间戳)"
  1841. },
  1842. {
  1843. "id": "msg.sendFile",
  1844. "module": "msg",
  1845. "title": "发送文件消息",
  1846. "summary": "发送纯文本消息 向指定联系人或群聊发送文件。发送前请确认接收方 ID(toId 或 roomId)正确。",
  1847. "method": "/msg/sendFile",
  1848. "category": [
  1849. "API参考",
  1850. "会话与消息",
  1851. "消息模块 "
  1852. ],
  1853. "docFile": "发送文件消息.md",
  1854. "tags": [
  1855. "会话与消息",
  1856. "发送文件消息",
  1857. "msg",
  1858. "消息模块 ",
  1859. "API参考"
  1860. ],
  1861. "params": [
  1862. {
  1863. "name": "guid",
  1864. "in": "body",
  1865. "type": "string",
  1866. "required": true,
  1867. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  1868. },
  1869. {
  1870. "name": "fileAesKey",
  1871. "in": "body",
  1872. "type": "string",
  1873. "required": true,
  1874. "desc": "大文件时,可为空;否则必填"
  1875. },
  1876. {
  1877. "name": "fileId",
  1878. "in": "body",
  1879. "type": "string",
  1880. "required": true,
  1881. "desc": "文件id"
  1882. },
  1883. {
  1884. "name": "fileSize",
  1885. "in": "body",
  1886. "type": "integer",
  1887. "required": true,
  1888. "desc": "文件大小"
  1889. },
  1890. {
  1891. "name": "filename",
  1892. "in": "body",
  1893. "type": "string",
  1894. "required": true,
  1895. "desc": "文件名称"
  1896. },
  1897. {
  1898. "name": "toId",
  1899. "in": "body",
  1900. "type": "string",
  1901. "required": true,
  1902. "desc": "接收方 ID,联系人传 userId,群聊传 roomId。"
  1903. }
  1904. ],
  1905. "responseHint": "data 字段:isSendSuccess(是否发送成功);msgServerId(消息id,用于撤回消息);msgType(消息类型);msgUniqueIdentifier(消息唯一标识);seq(消息序号);timestamp(时间戳)"
  1906. },
  1907. {
  1908. "id": "sns.postSns",
  1909. "module": "sns",
  1910. "title": "发送朋友圈",
  1911. "summary": "发送朋友圈 • 支持文本 + 图片/视频/视频号/链接等类型的发送,其中图片一次可以发送多个。• 图片/视频/视频号/链接,每次发送最多只能选择其中的一种类型。",
  1912. "method": "/sns/postSns",
  1913. "category": [
  1914. "API参考",
  1915. "媒体与运营",
  1916. "朋友圈模块"
  1917. ],
  1918. "docFile": "发送朋友圈.md",
  1919. "tags": [
  1920. "sns",
  1921. "朋友圈模块",
  1922. "发送朋友圈",
  1923. "媒体与运营",
  1924. "API参考"
  1925. ],
  1926. "params": [
  1927. {
  1928. "name": "guid",
  1929. "in": "body",
  1930. "type": "string",
  1931. "required": true,
  1932. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  1933. },
  1934. {
  1935. "name": "postType",
  1936. "in": "body",
  1937. "type": "integer",
  1938. "required": true,
  1939. "desc": "0图片/视频,1链接/视频号"
  1940. },
  1941. {
  1942. "name": "content",
  1943. "in": "body",
  1944. "type": "string",
  1945. "required": true,
  1946. "desc": "消息内容"
  1947. },
  1948. {
  1949. "name": "visibleUserIdList",
  1950. "in": "body",
  1951. "type": "array",
  1952. "required": true,
  1953. "desc": "指定好友可见。可不传,此时全部好友可见"
  1954. },
  1955. {
  1956. "name": "mediaList",
  1957. "in": "body",
  1958. "type": "array",
  1959. "required": true,
  1960. "desc": "Media列表",
  1961. "children": [
  1962. {
  1963. "name": "fileType",
  1964. "in": "body",
  1965. "type": "integer",
  1966. "required": false,
  1967. "desc": "1:图片2: 视频 【注:如果发送视频,则 media_list 必须携带视频缩略图的参数,成对】3: 视频缩略图"
  1968. },
  1969. {
  1970. "name": "fileSize",
  1971. "in": "body",
  1972. "type": "integer",
  1973. "required": false,
  1974. "desc": "文件大小"
  1975. },
  1976. {
  1977. "name": "fileId",
  1978. "in": "body",
  1979. "type": "string",
  1980. "required": false,
  1981. "desc": "文件id"
  1982. },
  1983. {
  1984. "name": "videoLength",
  1985. "in": "body",
  1986. "type": "integer",
  1987. "required": false
  1988. },
  1989. {
  1990. "name": "fileWidth",
  1991. "in": "body",
  1992. "type": "integer",
  1993. "required": false,
  1994. "desc": "文件宽度"
  1995. },
  1996. {
  1997. "name": "fileHeight",
  1998. "in": "body",
  1999. "type": "integer",
  2000. "required": false,
  2001. "desc": "文件高度"
  2002. }
  2003. ]
  2004. },
  2005. {
  2006. "name": "linkInfo",
  2007. "in": "body",
  2008. "type": "object",
  2009. "required": false,
  2010. "desc": "postType=1时必填;=0时置空即可",
  2011. "children": [
  2012. {
  2013. "name": "title",
  2014. "in": "body",
  2015. "type": "string",
  2016. "required": false,
  2017. "desc": "视频号消息回调=channelName"
  2018. },
  2019. {
  2020. "name": "contentUrl",
  2021. "in": "body",
  2022. "type": "string",
  2023. "required": false,
  2024. "desc": "消息链接"
  2025. },
  2026. {
  2027. "name": "wxFinderInfo",
  2028. "in": "body",
  2029. "type": "object",
  2030. "required": false,
  2031. "desc": "视频号信息",
  2032. "children": [
  2033. {
  2034. "name": "desc",
  2035. "in": "body",
  2036. "type": "string",
  2037. "required": true,
  2038. "desc": "视频号消息回调=channelName,or自定义"
  2039. },
  2040. {
  2041. "name": "coverUrl",
  2042. "in": "body",
  2043. "type": "string",
  2044. "required": true,
  2045. "desc": "视频号消息回调=coverUrl,or自定义"
  2046. },
  2047. {
  2048. "name": "thumbUrl",
  2049. "in": "body",
  2050. "type": "string",
  2051. "required": true,
  2052. "desc": "视频号消息回调=coverUrl,or自定义"
  2053. },
  2054. {
  2055. "name": "extras",
  2056. "in": "body",
  2057. "type": "string",
  2058. "required": true,
  2059. "desc": "视频号消息回调=encodeData"
  2060. },
  2061. {
  2062. "name": "feedId",
  2063. "in": "body",
  2064. "type": "string",
  2065. "required": true,
  2066. "desc": "视频号消息回调=feedId"
  2067. },
  2068. {
  2069. "name": "feedNo",
  2070. "in": "body",
  2071. "type": "string",
  2072. "required": true,
  2073. "desc": "视频号消息回调=feedNo"
  2074. },
  2075. {
  2076. "name": "avatar",
  2077. "in": "body",
  2078. "type": "string",
  2079. "required": true,
  2080. "desc": "视频号消息回调=headImgUrl"
  2081. },
  2082. {
  2083. "name": "nickname",
  2084. "in": "body",
  2085. "type": "string",
  2086. "required": true,
  2087. "desc": "视频号消息回调=headImgUrl"
  2088. },
  2089. {
  2090. "name": "feedType",
  2091. "in": "body",
  2092. "type": "integer",
  2093. "required": true,
  2094. "desc": "视频号=4"
  2095. }
  2096. ]
  2097. }
  2098. ]
  2099. }
  2100. ],
  2101. "responseHint": "data 字段:snsDetail(朋友圈Detail);totalSendCount(总数发送数量)"
  2102. },
  2103. {
  2104. "id": "msg.sendHyperText",
  2105. "module": "msg",
  2106. "title": "发送混合文本消息",
  2107. "summary": "发送纯文本消息 向指定联系人或群聊发送混合文本。发送前请确认接收方 ID(toId 或 roomId)正确。",
  2108. "method": "/msg/sendHyperText",
  2109. "category": [
  2110. "API参考",
  2111. "会话与消息",
  2112. "消息模块 "
  2113. ],
  2114. "docFile": "发送混合文本消息.md",
  2115. "tags": [
  2116. "会话与消息",
  2117. "发送混合文本消息",
  2118. "msg",
  2119. "消息模块 ",
  2120. "API参考"
  2121. ],
  2122. "params": [
  2123. {
  2124. "name": "guid",
  2125. "in": "body",
  2126. "type": "string",
  2127. "required": true,
  2128. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  2129. },
  2130. {
  2131. "name": "content",
  2132. "in": "body",
  2133. "type": "array",
  2134. "required": true,
  2135. "desc": "消息内容",
  2136. "children": [
  2137. {
  2138. "name": "subtype",
  2139. "in": "body",
  2140. "type": "integer",
  2141. "required": false,
  2142. "desc": "=0表示普通文本 =1表示@具体人,text为对方的userId, 当送0时为@所有人 =2表示系统表情 eg:[微笑][憨笑]"
  2143. },
  2144. {
  2145. "name": "text",
  2146. "in": "body",
  2147. "type": "string",
  2148. "required": false
  2149. }
  2150. ]
  2151. },
  2152. {
  2153. "name": "toId",
  2154. "in": "body",
  2155. "type": "string",
  2156. "required": true,
  2157. "desc": "接收方 ID,联系人传 userId,群聊传 roomId。"
  2158. }
  2159. ],
  2160. "responseHint": "data 字段:isSendSuccess(是否发送成功);msgServerId(消息id,用于撤回消息);msgType(消息类型);msgUniqueIdentifier(消息唯一标识);seq(消息序号);timestamp(时间戳)"
  2161. },
  2162. {
  2163. "id": "msg.sendText",
  2164. "module": "msg",
  2165. "title": "发送纯文本消息",
  2166. "summary": "发送纯文本消息 向指定联系人或群聊发送纯文本。发送前请确认接收方 ID(toId 或 roomId)正确。",
  2167. "method": "/msg/sendText",
  2168. "category": [
  2169. "API参考",
  2170. "会话与消息",
  2171. "消息模块 "
  2172. ],
  2173. "docFile": "发送纯文本消息.md",
  2174. "tags": [
  2175. "会话与消息",
  2176. "msg",
  2177. "消息模块 ",
  2178. "发送纯文本消息",
  2179. "API参考"
  2180. ],
  2181. "params": [
  2182. {
  2183. "name": "guid",
  2184. "in": "body",
  2185. "type": "string",
  2186. "required": true,
  2187. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  2188. },
  2189. {
  2190. "name": "content",
  2191. "in": "body",
  2192. "type": "string",
  2193. "required": true,
  2194. "desc": "消息内容"
  2195. },
  2196. {
  2197. "name": "toId",
  2198. "in": "body",
  2199. "type": "string",
  2200. "required": true,
  2201. "desc": "接收方 ID,联系人传 userId,群聊传 roomId。"
  2202. },
  2203. {
  2204. "name": "isNoNeedRead",
  2205. "in": "body",
  2206. "type": "boolean",
  2207. "required": true,
  2208. "desc": "是否禁止回执,默认不禁止 false(true/false)"
  2209. }
  2210. ],
  2211. "responseHint": "data 字段:isSendSuccess(是否发送成功);msgServerId(用于撤回消息);msgType(消息类型);msgUniqueIdentifier(消息唯一标识);seq(消息序号);timestamp(时间戳)"
  2212. },
  2213. {
  2214. "id": "msg.sendFeedVideo",
  2215. "module": "msg",
  2216. "title": "发送视频号消息",
  2217. "summary": "发送视频号消息 通过群发助手向多个客户批量发送消息,适用于营销通知等场景。 注意:须传入 guid,为已登录云设备唯一标识,通过创建设备接口获取。",
  2218. "method": "/msg/sendFeedVideo",
  2219. "category": [
  2220. "API参考",
  2221. "会话与消息",
  2222. "消息模块 "
  2223. ],
  2224. "docFile": "发送视频号消息.md",
  2225. "tags": [
  2226. "发送视频号消息",
  2227. "会话与消息",
  2228. "msg",
  2229. "消息模块 ",
  2230. "API参考"
  2231. ],
  2232. "params": [
  2233. {
  2234. "name": "guid",
  2235. "in": "body",
  2236. "type": "string",
  2237. "required": true,
  2238. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  2239. },
  2240. {
  2241. "name": "channelName",
  2242. "in": "body",
  2243. "type": "string",
  2244. "required": true,
  2245. "desc": "频道名称"
  2246. },
  2247. {
  2248. "name": "channelUrl",
  2249. "in": "body",
  2250. "type": "string",
  2251. "required": true,
  2252. "desc": "频道链接"
  2253. },
  2254. {
  2255. "name": "coverUrl",
  2256. "in": "body",
  2257. "type": "string",
  2258. "required": true,
  2259. "desc": "封面链接"
  2260. },
  2261. {
  2262. "name": "encodeData",
  2263. "in": "body",
  2264. "type": "string",
  2265. "required": true,
  2266. "desc": "编码数据"
  2267. },
  2268. {
  2269. "name": "headImgUrl",
  2270. "in": "body",
  2271. "type": "string",
  2272. "required": true,
  2273. "desc": "头像图片链接"
  2274. },
  2275. {
  2276. "name": "feedId",
  2277. "in": "body",
  2278. "type": "string",
  2279. "required": true,
  2280. "desc": "动态Id"
  2281. },
  2282. {
  2283. "name": "feedNo",
  2284. "in": "body",
  2285. "type": "string",
  2286. "required": true,
  2287. "desc": "动态编号"
  2288. },
  2289. {
  2290. "name": "username",
  2291. "in": "body",
  2292. "type": "string",
  2293. "required": true,
  2294. "desc": "用户名"
  2295. },
  2296. {
  2297. "name": "toId",
  2298. "in": "body",
  2299. "type": "string",
  2300. "required": true,
  2301. "desc": "接收方 ID,联系人传 userId,群聊传 roomId。"
  2302. }
  2303. ],
  2304. "responseHint": "data 字段:isSendSuccess(是否发送成功);msgServerId(消息id,用于撤回消息);msgType(是否发送成功);msgUniqueIdentifier(消息唯一标识);seq(消息序号);timestamp(时间戳)"
  2305. },
  2306. {
  2307. "id": "msg.sendVideo",
  2308. "module": "msg",
  2309. "title": "发送视频消息",
  2310. "summary": "发送视频消息 MP4格式",
  2311. "method": "/msg/sendVideo",
  2312. "category": [
  2313. "API参考",
  2314. "会话与消息",
  2315. "消息模块 "
  2316. ],
  2317. "docFile": "发送视频消息.md",
  2318. "tags": [
  2319. "会话与消息",
  2320. "发送视频消息",
  2321. "msg",
  2322. "消息模块 ",
  2323. "API参考"
  2324. ],
  2325. "params": [
  2326. {
  2327. "name": "guid",
  2328. "in": "body",
  2329. "type": "string",
  2330. "required": true,
  2331. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  2332. },
  2333. {
  2334. "name": "fileAesKey",
  2335. "in": "body",
  2336. "type": "string",
  2337. "required": true,
  2338. "desc": "fileId包含*字符时非必须,为空即可"
  2339. },
  2340. {
  2341. "name": "fileId",
  2342. "in": "body",
  2343. "type": "string",
  2344. "required": true,
  2345. "desc": "文件 ID"
  2346. },
  2347. {
  2348. "name": "fileMd5",
  2349. "in": "body",
  2350. "type": "string",
  2351. "required": true,
  2352. "desc": "文件md5值"
  2353. },
  2354. {
  2355. "name": "fileSize",
  2356. "in": "body",
  2357. "type": "integer",
  2358. "required": true,
  2359. "desc": "文件大小"
  2360. },
  2361. {
  2362. "name": "filename",
  2363. "in": "body",
  2364. "type": "string",
  2365. "required": true,
  2366. "desc": "文件名称"
  2367. },
  2368. {
  2369. "name": "coverImageSize",
  2370. "in": "body",
  2371. "type": "integer",
  2372. "required": true,
  2373. "desc": "封面图片尺寸"
  2374. },
  2375. {
  2376. "name": "duration",
  2377. "in": "body",
  2378. "type": "integer",
  2379. "required": true,
  2380. "desc": "时长(秒)。"
  2381. },
  2382. {
  2383. "name": "toId",
  2384. "in": "body",
  2385. "type": "string",
  2386. "required": true,
  2387. "desc": "接收方 ID,联系人传 userId,群聊传 roomId。"
  2388. },
  2389. {
  2390. "name": "previewImgUrl",
  2391. "in": "body",
  2392. "type": "string",
  2393. "required": true,
  2394. "desc": "fileId包含*字符时上送,否则为空即可"
  2395. }
  2396. ],
  2397. "responseHint": "data 字段:isSendSuccess(是否发送成功);msgServerId(消息id,用于撤回消息);msgType(消息类型);msgUniqueIdentifier(消息唯一标识);seq(消息序号);timestamp(时间戳)"
  2398. },
  2399. {
  2400. "id": "msg.sendVoice",
  2401. "module": "msg",
  2402. "title": "发送语音消息",
  2403. "summary": "发送语音消息 修改消息的已读/未读等状态标记。 注意:须传入 guid,为已登录云设备唯一标识,通过创建设备接口获取。",
  2404. "method": "/msg/sendVoice",
  2405. "category": [
  2406. "API参考",
  2407. "会话与消息",
  2408. "消息模块 "
  2409. ],
  2410. "docFile": "发送语音消息.md",
  2411. "tags": [
  2412. "会话与消息",
  2413. "发送语音消息",
  2414. "msg",
  2415. "消息模块 ",
  2416. "API参考"
  2417. ],
  2418. "params": [
  2419. {
  2420. "name": "guid",
  2421. "in": "body",
  2422. "type": "string",
  2423. "required": true,
  2424. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  2425. },
  2426. {
  2427. "name": "fileAesKey",
  2428. "in": "body",
  2429. "type": "string",
  2430. "required": true,
  2431. "desc": "文件密钥"
  2432. },
  2433. {
  2434. "name": "fileId",
  2435. "in": "body",
  2436. "type": "string",
  2437. "required": true,
  2438. "desc": "文件id"
  2439. },
  2440. {
  2441. "name": "fileSize",
  2442. "in": "body",
  2443. "type": "integer",
  2444. "required": true,
  2445. "desc": "文件大小"
  2446. },
  2447. {
  2448. "name": "voiceTime",
  2449. "in": "body",
  2450. "type": "integer",
  2451. "required": true,
  2452. "desc": "Voice时间"
  2453. },
  2454. {
  2455. "name": "toId",
  2456. "in": "body",
  2457. "type": "string",
  2458. "required": true,
  2459. "desc": "接收方 ID,联系人传 userId,群聊传 roomId。"
  2460. }
  2461. ],
  2462. "responseHint": "data 字段:isSendSuccess(是否发送成功);msgServerId(消息id,用于撤回消息);msgType(消息类型);msgUniqueIdentifier(消息唯一标识);seq(消息序号);timestamp(时间戳)"
  2463. },
  2464. {
  2465. "id": "msg.sendLink",
  2466. "module": "msg",
  2467. "title": "发送链接消息",
  2468. "summary": "发送链接消息 查询指定群聊的置顶消息列表。 注意:须传入 guid,为已登录云设备唯一标识,通过创建设备接口获取。",
  2469. "method": "/msg/sendLink",
  2470. "category": [
  2471. "API参考",
  2472. "会话与消息",
  2473. "消息模块 "
  2474. ],
  2475. "docFile": "发送链接消息.md",
  2476. "tags": [
  2477. "会话与消息",
  2478. "发送链接消息",
  2479. "msg",
  2480. "消息模块 ",
  2481. "API参考"
  2482. ],
  2483. "params": [
  2484. {
  2485. "name": "guid",
  2486. "in": "body",
  2487. "type": "string",
  2488. "required": true,
  2489. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  2490. },
  2491. {
  2492. "name": "title",
  2493. "in": "body",
  2494. "type": "string",
  2495. "required": true,
  2496. "desc": "标题"
  2497. },
  2498. {
  2499. "name": "iconUrl",
  2500. "in": "body",
  2501. "type": "string",
  2502. "required": true,
  2503. "desc": "图标链接"
  2504. },
  2505. {
  2506. "name": "linkUrl",
  2507. "in": "body",
  2508. "type": "string",
  2509. "required": true,
  2510. "desc": "链接链接"
  2511. },
  2512. {
  2513. "name": "desc",
  2514. "in": "body",
  2515. "type": "string",
  2516. "required": true,
  2517. "desc": "描述"
  2518. },
  2519. {
  2520. "name": "toId",
  2521. "in": "body",
  2522. "type": "string",
  2523. "required": true,
  2524. "desc": "接收方 ID,联系人传 userId,群聊传 roomId。"
  2525. }
  2526. ],
  2527. "responseHint": "data 字段:isSendSuccess(是否发送成功);msgServerId(消息id,用于撤回消息);msgType(消息类型);msgUniqueIdentifier(消息唯一标识);seq(消息序号);timestamp(时间戳)"
  2528. },
  2529. {
  2530. "id": "room.roomRemoveAdmin",
  2531. "module": "room",
  2532. "title": "取消群管理员",
  2533. "summary": "取消群管理员 取消群聊管理员身份。",
  2534. "method": "/room/roomRemoveAdmin",
  2535. "category": [
  2536. "API参考",
  2537. "客户管理",
  2538. "群模块"
  2539. ],
  2540. "docFile": "取消群管理员.md",
  2541. "tags": [
  2542. "群模块",
  2543. "room",
  2544. "取消群管理员",
  2545. "客户管理",
  2546. "API参考"
  2547. ],
  2548. "params": [
  2549. {
  2550. "name": "guid",
  2551. "in": "body",
  2552. "type": "string",
  2553. "required": true,
  2554. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  2555. },
  2556. {
  2557. "name": "roomId",
  2558. "in": "body",
  2559. "type": "string",
  2560. "required": true,
  2561. "desc": "群聊 ID。"
  2562. },
  2563. {
  2564. "name": "memberList",
  2565. "in": "body",
  2566. "type": "array",
  2567. "required": true,
  2568. "desc": "成员列表。"
  2569. }
  2570. ]
  2571. },
  2572. {
  2573. "id": "contact.agreeContact",
  2574. "module": "contact",
  2575. "title": "同意申请",
  2576. "summary": "同意申请 同意好友或入群等相关申请。",
  2577. "method": "/contact/agreeContact",
  2578. "category": [
  2579. "API参考",
  2580. "客户管理",
  2581. "联系人模块"
  2582. ],
  2583. "docFile": "同意申请.md",
  2584. "tags": [
  2585. "contact",
  2586. "联系人模块",
  2587. "客户管理",
  2588. "同意申请",
  2589. "API参考"
  2590. ],
  2591. "params": [
  2592. {
  2593. "name": "guid",
  2594. "in": "body",
  2595. "type": "string",
  2596. "required": true,
  2597. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  2598. },
  2599. {
  2600. "name": "userId",
  2601. "in": "body",
  2602. "type": "string",
  2603. "required": true,
  2604. "desc": "用户id"
  2605. },
  2606. {
  2607. "name": "corpId",
  2608. "in": "body",
  2609. "type": "string",
  2610. "required": false,
  2611. "desc": "企业 ID。"
  2612. }
  2613. ]
  2614. },
  2615. {
  2616. "id": "msg.syncMsg",
  2617. "module": "msg",
  2618. "title": "同步历史消息分页",
  2619. "summary": "同步历史消息分页 为外部联系人添加或移除客户标签,用于客户分层管理。 注意:须传入 guid,为已登录云设备唯一标识,通过创建设备接口获取。",
  2620. "method": "/msg/syncMsg",
  2621. "category": [
  2622. "API参考",
  2623. "会话与消息",
  2624. "消息模块 "
  2625. ],
  2626. "docFile": "同步历史消息分页.md",
  2627. "tags": [
  2628. "同步历史消息分页",
  2629. "会话与消息",
  2630. "msg",
  2631. "消息模块 ",
  2632. "API参考"
  2633. ],
  2634. "params": [
  2635. {
  2636. "name": "guid",
  2637. "in": "body",
  2638. "type": "string",
  2639. "required": true,
  2640. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  2641. },
  2642. {
  2643. "name": "msgSeq",
  2644. "in": "body",
  2645. "type": "integer",
  2646. "required": true,
  2647. "desc": "分页使用,首次传0,下次传入返回值msgSeq"
  2648. },
  2649. {
  2650. "name": "limit",
  2651. "in": "body",
  2652. "type": "integer",
  2653. "required": true,
  2654. "desc": "每页数量"
  2655. }
  2656. ],
  2657. "responseHint": "data 字段:hasMore(是否有更多);syncMsgList(Sync消息列表);travelSyncKey(同步 Key)"
  2658. },
  2659. {
  2660. "id": "contact.updateWxContact",
  2661. "module": "contact",
  2662. "title": "外部联系人信息-更新",
  2663. "summary": "外部联系人信息-更新 更新外部联系人的备注、标签等可编辑信息。",
  2664. "method": "/contact/updateWxContact",
  2665. "category": [
  2666. "API参考",
  2667. "客户管理",
  2668. "联系人模块"
  2669. ],
  2670. "docFile": "外部联系人信息-更新.md",
  2671. "tags": [
  2672. "contact",
  2673. "联系人模块",
  2674. "客户管理",
  2675. "外部联系人信息-更新",
  2676. "API参考"
  2677. ],
  2678. "params": [
  2679. {
  2680. "name": "guid",
  2681. "in": "body",
  2682. "type": "string",
  2683. "required": true,
  2684. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  2685. },
  2686. {
  2687. "name": "userId",
  2688. "in": "body",
  2689. "type": "string",
  2690. "required": true,
  2691. "desc": "用户id"
  2692. },
  2693. {
  2694. "name": "remark",
  2695. "in": "body",
  2696. "type": "string",
  2697. "required": true,
  2698. "desc": "备注名。"
  2699. },
  2700. {
  2701. "name": "desc",
  2702. "in": "body",
  2703. "type": "string",
  2704. "required": true,
  2705. "desc": "描述"
  2706. },
  2707. {
  2708. "name": "mobileList",
  2709. "in": "body",
  2710. "type": "array",
  2711. "required": true,
  2712. "desc": "手机号列表"
  2713. }
  2714. ]
  2715. },
  2716. {
  2717. "id": "contact.getWxContactList",
  2718. "module": "contact",
  2719. "title": "外部联系人分页",
  2720. "summary": "外部联系人分页 通过查询 外部联系人分页 获取 userid ,再调用 联系人详情 - 批量 接口进行查询联系人信息。 查询后保存 ,不用一直调用,后续可以根据回调保存数据",
  2721. "method": "/contact/getWxContactList",
  2722. "category": [
  2723. "API参考",
  2724. "客户管理",
  2725. "联系人模块"
  2726. ],
  2727. "docFile": "外部联系人分页.md",
  2728. "tags": [
  2729. "contact",
  2730. "外部联系人分页",
  2731. "联系人模块",
  2732. "客户管理",
  2733. "API参考"
  2734. ],
  2735. "params": [
  2736. {
  2737. "name": "guid",
  2738. "in": "body",
  2739. "type": "string",
  2740. "required": true,
  2741. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  2742. },
  2743. {
  2744. "name": "currentSeq",
  2745. "in": "body",
  2746. "type": "integer",
  2747. "required": true,
  2748. "desc": "联系人比较多时,可以用此字段分页查询。首次传0,之后传上一次查询返回的值; 传这个值可以只拉取出现变更的好友;"
  2749. },
  2750. {
  2751. "name": "limit",
  2752. "in": "body",
  2753. "type": "integer",
  2754. "required": true,
  2755. "desc": "每页数量"
  2756. },
  2757. {
  2758. "name": "bizType",
  2759. "in": "body",
  2760. "type": "integer",
  2761. "required": true,
  2762. "desc": "1、外部联系人信息变动的数据 2、好友申请的数据 收到好友申请通知时,需要通过这个值来拉取好友申请通知。"
  2763. }
  2764. ],
  2765. "responseHint": "data 字段:currentSeq(下次请求时应传入的currentSeq);contactCount(联系人数量);hasMore(是否有更多);contactList(联系人列表)"
  2766. },
  2767. {
  2768. "id": "label.contactEditLabel",
  2769. "module": "label",
  2770. "title": "客户标签-增删",
  2771. "summary": "客户标签-增删 客户标签说明 客户标签分为两类:企业标签、个人标签。 请求参数 labelIdList 、 labelSuperIdList 、 labelOwnerList 必须一一对应,且数组长度必须保持一致。",
  2772. "method": "/label/contactEditLabel",
  2773. "category": [
  2774. "API参考",
  2775. "客户管理",
  2776. "标签模块"
  2777. ],
  2778. "docFile": "客户标签-增删.md",
  2779. "tags": [
  2780. "客户标签-增删",
  2781. "label",
  2782. "标签模块",
  2783. "客户管理",
  2784. "API参考"
  2785. ],
  2786. "params": [
  2787. {
  2788. "name": "guid",
  2789. "in": "body",
  2790. "type": "string",
  2791. "required": true,
  2792. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  2793. },
  2794. {
  2795. "name": "opType",
  2796. "in": "body",
  2797. "type": "integer",
  2798. "required": true,
  2799. "desc": "1:增加成员 2:删除成员"
  2800. },
  2801. {
  2802. "name": "paramList",
  2803. "in": "body",
  2804. "type": "array",
  2805. "required": true,
  2806. "desc": "Param列表",
  2807. "children": [
  2808. {
  2809. "name": "labelIdList",
  2810. "in": "body",
  2811. "type": "array",
  2812. "required": false,
  2813. "desc": "标签id列表"
  2814. },
  2815. {
  2816. "name": "labelSuperIdList",
  2817. "in": "body",
  2818. "type": "array",
  2819. "required": false,
  2820. "desc": "个人标签所属的分组ID"
  2821. },
  2822. {
  2823. "name": "labelOwnerList",
  2824. "in": "body",
  2825. "type": "array",
  2826. "required": false,
  2827. "desc": "个人标签送标签创建人userId,企业标签送corpId"
  2828. },
  2829. {
  2830. "name": "userId",
  2831. "in": "body",
  2832. "type": "string",
  2833. "required": false,
  2834. "desc": "用户id"
  2835. }
  2836. ]
  2837. }
  2838. ]
  2839. },
  2840. {
  2841. "id": "room.enableChangeRoomName",
  2842. "module": "room",
  2843. "title": "开启群改名",
  2844. "summary": "开启群改名 设置是否允许群成员修改群名称。",
  2845. "method": "/room/enableChangeRoomName",
  2846. "category": [
  2847. "API参考",
  2848. "客户管理",
  2849. "群模块"
  2850. ],
  2851. "docFile": "开启群改名.md",
  2852. "tags": [
  2853. "群模块",
  2854. "room",
  2855. "客户管理",
  2856. "开启群改名",
  2857. "API参考"
  2858. ],
  2859. "params": [
  2860. {
  2861. "name": "guid",
  2862. "in": "body",
  2863. "type": "string",
  2864. "required": true,
  2865. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  2866. },
  2867. {
  2868. "name": "roomId",
  2869. "in": "body",
  2870. "type": "string",
  2871. "required": true,
  2872. "desc": "群聊 ID。"
  2873. },
  2874. {
  2875. "name": "newFlag",
  2876. "in": "body",
  2877. "type": "integer",
  2878. "required": true,
  2879. "desc": "从群详情/或群成员变动API中获取,注意区别roomFlag与roomNewFlag"
  2880. },
  2881. {
  2882. "name": "disable",
  2883. "in": "body",
  2884. "type": "boolean",
  2885. "required": true,
  2886. "desc": "是否开启"
  2887. }
  2888. ]
  2889. },
  2890. {
  2891. "id": "room.openInviteConfirm",
  2892. "module": "room",
  2893. "title": "开启群邀请确认",
  2894. "summary": "开启群邀请确认 提示: roomFlag 传错可能导致群其它状态错乱",
  2895. "method": "/room/openInviteConfirm",
  2896. "category": [
  2897. "API参考",
  2898. "客户管理",
  2899. "群模块"
  2900. ],
  2901. "docFile": "开启群邀请确认.md",
  2902. "tags": [
  2903. "群模块",
  2904. "room",
  2905. "开启群邀请确认",
  2906. "客户管理",
  2907. "API参考"
  2908. ],
  2909. "params": [
  2910. {
  2911. "name": "guid",
  2912. "in": "body",
  2913. "type": "string",
  2914. "required": true,
  2915. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  2916. },
  2917. {
  2918. "name": "roomId",
  2919. "in": "body",
  2920. "type": "string",
  2921. "required": true,
  2922. "desc": "群聊 ID。"
  2923. },
  2924. {
  2925. "name": "isOpen",
  2926. "in": "body",
  2927. "type": "boolean",
  2928. "required": true,
  2929. "desc": "是否开启"
  2930. },
  2931. {
  2932. "name": "roomFlag",
  2933. "in": "body",
  2934. "type": "integer",
  2935. "required": true,
  2936. "desc": "群原Flag,可通过群分页或群详情接口获取"
  2937. }
  2938. ]
  2939. },
  2940. {
  2941. "id": "client.restoreClient",
  2942. "module": "client",
  2943. "title": "恢复设备",
  2944. "summary": "恢复设备 • 离线后先调用此接口恢复设备,在调用二维码-获取(步骤2)进行登录扫码操作",
  2945. "method": "/client/restoreClient",
  2946. "category": [
  2947. "API参考",
  2948. "基础能力",
  2949. "登录模块"
  2950. ],
  2951. "docFile": "恢复设备.md",
  2952. "tags": [
  2953. "基础能力",
  2954. "恢复设备",
  2955. "登录模块",
  2956. "client",
  2957. "API参考"
  2958. ],
  2959. "params": [
  2960. {
  2961. "name": "guid",
  2962. "in": "body",
  2963. "type": "string",
  2964. "required": true,
  2965. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  2966. }
  2967. ]
  2968. },
  2969. {
  2970. "id": "room.agreeInviteByLink",
  2971. "module": "room",
  2972. "title": "接受群邀请-By链接",
  2973. "summary": "接受群邀请-By链接 通过群邀请链接加入群聊。",
  2974. "method": "/room/agreeInviteByLink",
  2975. "category": [
  2976. "API参考",
  2977. "客户管理",
  2978. "群模块"
  2979. ],
  2980. "docFile": "接受群邀请-By链接.md",
  2981. "tags": [
  2982. "群模块",
  2983. "room",
  2984. "客户管理",
  2985. "接受群邀请-By链接",
  2986. "API参考"
  2987. ],
  2988. "params": [
  2989. {
  2990. "name": "guid",
  2991. "in": "body",
  2992. "type": "string",
  2993. "required": true,
  2994. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  2995. },
  2996. {
  2997. "name": "joinCode",
  2998. "in": "body",
  2999. "type": "string",
  3000. "required": true,
  3001. "desc": "加入码"
  3002. },
  3003. {
  3004. "name": "joinType",
  3005. "in": "body",
  3006. "type": "integer",
  3007. "required": true,
  3008. "desc": "默认2,从回调处信息中获取"
  3009. }
  3010. ],
  3011. "responseHint": "data 字段:status(Success/InviteTicketUsed);roomId(Success时不为空);vid(Vid 标识)"
  3012. },
  3013. {
  3014. "id": "msg.revokeMsg",
  3015. "module": "msg",
  3016. "title": "撤回消息",
  3017. "summary": "撤回消息 查询群发助手可用规则与配额限制。 注意:须传入 guid,为已登录云设备唯一标识,通过创建设备接口获取。",
  3018. "method": "/msg/revokeMsg",
  3019. "category": [
  3020. "API参考",
  3021. "会话与消息",
  3022. "消息模块 "
  3023. ],
  3024. "docFile": "撤回消息.md",
  3025. "tags": [
  3026. "会话与消息",
  3027. "msg",
  3028. "消息模块 ",
  3029. "撤回消息",
  3030. "API参考"
  3031. ],
  3032. "params": [
  3033. {
  3034. "name": "guid",
  3035. "in": "body",
  3036. "type": "string",
  3037. "required": true,
  3038. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  3039. },
  3040. {
  3041. "name": "chatId",
  3042. "in": "body",
  3043. "type": "string",
  3044. "required": true,
  3045. "desc": "会话id,=sessionId"
  3046. },
  3047. {
  3048. "name": "msgServerId",
  3049. "in": "body",
  3050. "type": "integer",
  3051. "required": true,
  3052. "desc": "消息id"
  3053. }
  3054. ]
  3055. },
  3056. {
  3057. "id": "cloud.cdnWxDownload",
  3058. "module": "cloud",
  3059. "title": "文件CDN转URL",
  3060. "summary": "文件CDN转URL - 返回响应地址是官方CDN地址",
  3061. "method": "/cloud/cdnWxDownload",
  3062. "category": [
  3063. "API参考",
  3064. "媒体与运营",
  3065. "文件与媒体(下载",
  3066. "上传)"
  3067. ],
  3068. "docFile": "文件CDN转URL.md",
  3069. "tags": [
  3070. "文件与媒体(下载",
  3071. "上传)",
  3072. "文件CDN转URL",
  3073. "cloud",
  3074. "媒体与运营",
  3075. "API参考"
  3076. ],
  3077. "params": [
  3078. {
  3079. "name": "guid",
  3080. "in": "body",
  3081. "type": "string",
  3082. "required": true,
  3083. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  3084. },
  3085. {
  3086. "name": "fileAeskey",
  3087. "in": "body",
  3088. "type": "string",
  3089. "required": true,
  3090. "desc": "文件Aeskey"
  3091. },
  3092. {
  3093. "name": "fileId",
  3094. "in": "body",
  3095. "type": "string",
  3096. "required": true,
  3097. "desc": "文件 ID"
  3098. },
  3099. {
  3100. "name": "fileMd5",
  3101. "in": "body",
  3102. "type": "string",
  3103. "required": true,
  3104. "desc": "文件 MD5"
  3105. }
  3106. ],
  3107. "responseHint": "data 字段:coverUrl(缩略图url);fileUrl(原图url);fileMd5(原图md5)"
  3108. },
  3109. {
  3110. "id": "cloud.cloudUpload",
  3111. "module": "cloud",
  3112. "title": "文件上传-SDK云存储",
  3113. "summary": "文件上传-SDK云存储 此接口只是单纯将文件上传到sdk配置对象内容存储服务上,并不会和企业微信服务API交互!!! 此接口上传数据只能做用短期临时存储,所有数据会定期全部清理",
  3114. "method": "/cloud/cloudUpload",
  3115. "category": [
  3116. "API参考",
  3117. "媒体与运营",
  3118. "文件与媒体(下载",
  3119. "上传)"
  3120. ],
  3121. "docFile": "文件上传-SDK云存储.md",
  3122. "tags": [
  3123. "文件上传-SDK云存储",
  3124. "文件与媒体(下载",
  3125. "上传)",
  3126. "cloud",
  3127. "媒体与运营",
  3128. "API参考"
  3129. ],
  3130. "params": [
  3131. {
  3132. "name": "guid",
  3133. "in": "body",
  3134. "type": "string",
  3135. "required": true,
  3136. "desc": "实例id"
  3137. },
  3138. {
  3139. "name": "file",
  3140. "in": "body",
  3141. "type": "string",
  3142. "required": true,
  3143. "desc": "文件"
  3144. }
  3145. ],
  3146. "apiPath": "/api/qw/doFileApi",
  3147. "contentType": "multipart/form-data",
  3148. "flatParams": true,
  3149. "responseHint": "data 字段:cloudUrl(云端文件地址。)"
  3150. },
  3151. {
  3152. "id": "cloud.cdnBigUploadByUrl",
  3153. "module": "cloud",
  3154. "title": "文件上传-URL",
  3155. "summary": "文件上传-URL 通过 URL 上传文件到云端,获取后续消息发送所需的文件标识。",
  3156. "method": "/cloud/cdnBigUploadByUrl",
  3157. "category": [
  3158. "API参考",
  3159. "媒体与运营",
  3160. "文件与媒体(下载",
  3161. "上传)"
  3162. ],
  3163. "docFile": "文件上传-URL.md",
  3164. "tags": [
  3165. "文件与媒体(下载",
  3166. "上传)",
  3167. "cloud",
  3168. "文件上传-URL",
  3169. "媒体与运营",
  3170. "API参考"
  3171. ],
  3172. "params": [
  3173. {
  3174. "name": "guid",
  3175. "in": "body",
  3176. "type": "string",
  3177. "required": true,
  3178. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  3179. },
  3180. {
  3181. "name": "filename",
  3182. "in": "body",
  3183. "type": "string",
  3184. "required": true,
  3185. "desc": "文件名"
  3186. },
  3187. {
  3188. "name": "fileUrl",
  3189. "in": "body",
  3190. "type": "string",
  3191. "required": true,
  3192. "desc": "文件链接"
  3193. },
  3194. {
  3195. "name": "fileType",
  3196. "in": "body",
  3197. "type": "integer",
  3198. "required": true,
  3199. "desc": "1: jpg图片4: mp4视频5: 文件(也包括语音amr文件)"
  3200. }
  3201. ],
  3202. "responseHint": "data 字段:fileId(文件 ID);fileKey(文件Key);fileMd5(文件 MD5);fileSize(文件大小);fileThumbSize(文件缩略图尺寸);cloudUrl(云端文件地址。);fileAesKey(文件密钥);filename(文件名)"
  3203. },
  3204. {
  3205. "id": "sns.upload",
  3206. "module": "sns",
  3207. "title": "文件上传",
  3208. "summary": "文件上传 调用 文件上传 完成相关操作。",
  3209. "method": "/sns/upload",
  3210. "category": [
  3211. "API参考",
  3212. "媒体与运营",
  3213. "朋友圈模块"
  3214. ],
  3215. "docFile": "文件上传.md",
  3216. "tags": [
  3217. "sns",
  3218. "朋友圈模块",
  3219. "文件上传",
  3220. "媒体与运营",
  3221. "API参考"
  3222. ],
  3223. "params": [
  3224. {
  3225. "name": "guid",
  3226. "in": "body",
  3227. "type": "string",
  3228. "required": true
  3229. },
  3230. {
  3231. "name": "file",
  3232. "in": "body",
  3233. "type": "string",
  3234. "required": true
  3235. },
  3236. {
  3237. "name": "fileType",
  3238. "in": "body",
  3239. "type": "integer",
  3240. "required": true,
  3241. "desc": "文件类型1: 图片2: 视频3: 视频缩略图"
  3242. }
  3243. ],
  3244. "apiPath": "/api/qw/doFileApi",
  3245. "contentType": "multipart/form-data",
  3246. "flatParams": true,
  3247. "responseHint": "data 字段:fileId(文件 ID);fileKey(文件Key);fileMd5(文件md5值);fileSize(文件大小);cloudUrl(云端文件地址。);fileConvertId(发送朋友圈消息、聊天消息时取此字段=fileId);fileWidth(图片格式:jpg,png,gif 时有值);fileHeight(图片格式:jpg,png,gif 时有值);previewImgUrl(预览图片链接);PreviewImgSize(预览图片尺寸);duration(视频时长,单位:秒)"
  3248. },
  3249. {
  3250. "id": "user.setProfile",
  3251. "module": "user",
  3252. "title": "更新个人信息",
  3253. "summary": "更新个人信息 修改当前账号的可编辑个人资料字段。",
  3254. "method": "/user/setProfile",
  3255. "category": [
  3256. "API参考",
  3257. "基础能力",
  3258. "个人模块"
  3259. ],
  3260. "docFile": "更新个人信息.md",
  3261. "tags": [
  3262. "基础能力",
  3263. "更新个人信息",
  3264. "user",
  3265. "个人模块",
  3266. "API参考"
  3267. ],
  3268. "params": [
  3269. {
  3270. "name": "guid",
  3271. "in": "body",
  3272. "type": "string",
  3273. "required": true,
  3274. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  3275. },
  3276. {
  3277. "name": "name",
  3278. "in": "body",
  3279. "type": "string",
  3280. "required": true,
  3281. "desc": "名字"
  3282. },
  3283. {
  3284. "name": "alias",
  3285. "in": "body",
  3286. "type": "string",
  3287. "required": true,
  3288. "desc": "别名"
  3289. },
  3290. {
  3291. "name": "email",
  3292. "in": "body",
  3293. "type": "string",
  3294. "required": true,
  3295. "desc": "邮箱"
  3296. },
  3297. {
  3298. "name": "mobile",
  3299. "in": "body",
  3300. "type": "string",
  3301. "required": true,
  3302. "desc": "手机号"
  3303. },
  3304. {
  3305. "name": "address",
  3306. "in": "body",
  3307. "type": "string",
  3308. "required": true,
  3309. "desc": "地址"
  3310. },
  3311. {
  3312. "name": "gender",
  3313. "in": "body",
  3314. "type": "integer",
  3315. "required": true,
  3316. "desc": "性别"
  3317. }
  3318. ]
  3319. },
  3320. {
  3321. "id": "sns.getSnsRecord",
  3322. "module": "sns",
  3323. "title": "朋友圈列表分页",
  3324. "summary": "朋友圈列表分页 分页查询朋友圈动态列表。",
  3325. "method": "/sns/getSnsRecord",
  3326. "category": [
  3327. "API参考",
  3328. "媒体与运营",
  3329. "朋友圈模块"
  3330. ],
  3331. "docFile": "朋友圈列表分页.md",
  3332. "tags": [
  3333. "sns",
  3334. "朋友圈模块",
  3335. "朋友圈列表分页",
  3336. "媒体与运营",
  3337. "API参考"
  3338. ],
  3339. "params": [
  3340. {
  3341. "name": "guid",
  3342. "in": "body",
  3343. "type": "string",
  3344. "required": true,
  3345. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  3346. },
  3347. {
  3348. "name": "maxSeq",
  3349. "in": "body",
  3350. "type": "integer",
  3351. "required": true,
  3352. "desc": "查询 maxSeq 时间戳(毫秒) 之前发布的朋友圈;0:查全部"
  3353. },
  3354. {
  3355. "name": "limit",
  3356. "in": "body",
  3357. "type": "integer",
  3358. "required": true,
  3359. "desc": "每页数量"
  3360. }
  3361. ],
  3362. "responseHint": "data 字段:snsDetailList(朋友圈Detail列表)"
  3363. },
  3364. {
  3365. "id": "cloud.cdnBigUpload",
  3366. "module": "cloud",
  3367. "title": "本地文件上传",
  3368. "summary": "本地文件上传 提示: 上传文件超过2M,建议试用异步上传 :::",
  3369. "method": "/cloud/cdnBigUpload",
  3370. "category": [
  3371. "API参考",
  3372. "媒体与运营",
  3373. "文件与媒体(下载",
  3374. "上传)"
  3375. ],
  3376. "docFile": "本地文件上传.md",
  3377. "tags": [
  3378. "文件与媒体(下载",
  3379. "本地文件上传",
  3380. "上传)",
  3381. "cloud",
  3382. "媒体与运营",
  3383. "API参考"
  3384. ],
  3385. "params": [
  3386. {
  3387. "name": "guid",
  3388. "in": "body",
  3389. "type": "string",
  3390. "required": true,
  3391. "desc": "实例id"
  3392. },
  3393. {
  3394. "name": "file",
  3395. "in": "body",
  3396. "type": "string",
  3397. "required": true,
  3398. "desc": "文件"
  3399. },
  3400. {
  3401. "name": "fileType",
  3402. "in": "body",
  3403. "type": "integer",
  3404. "required": true,
  3405. "desc": "1: jpg图片4: mp4视频5: 文件(也包括语音amr文件)"
  3406. }
  3407. ],
  3408. "apiPath": "/api/qw/doFileApi",
  3409. "contentType": "multipart/form-data",
  3410. "flatParams": true,
  3411. "responseHint": "data 字段:fileAesKey(文件密钥);fileId(文件 ID);fileKey(文件Key);fileMd5(文件md5值);fileSize(文件大小);fileThumbSize(文件缩略图尺寸);filename(文件名称);cloudUrl(云端文件地址。)"
  3412. },
  3413. {
  3414. "id": "user.getCorpInfo",
  3415. "module": "user",
  3416. "title": "查询企业信息",
  3417. "summary": "查询企业信息 查询当前账号所属企业的基本信息。 注意:须传入 guid,为已登录云设备唯一标识,通过创建设备接口获取。",
  3418. "method": "/user/getCorpInfo",
  3419. "category": [
  3420. "API参考",
  3421. "基础能力",
  3422. "个人模块"
  3423. ],
  3424. "docFile": "查询企业信息.md",
  3425. "tags": [
  3426. "基础能力",
  3427. "user",
  3428. "个人模块",
  3429. "查询企业信息",
  3430. "API参考"
  3431. ],
  3432. "params": [
  3433. {
  3434. "name": "guid",
  3435. "in": "body",
  3436. "type": "string",
  3437. "required": true,
  3438. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  3439. },
  3440. {
  3441. "name": "corpIdList",
  3442. "in": "body",
  3443. "type": "array",
  3444. "required": true,
  3445. "desc": "默认为空时,查询当前账号企业"
  3446. }
  3447. ],
  3448. "responseHint": "data 字段:corpAdminId(企业管理员Id);corpCreateTime(创建时间);corpFullName(企业主体名称);corpId(企业ID);corpName(企业全称);corpOwnerName(企业负责人名称);corpLogo(企业 Logo URL。);corpDesc(企业描述)"
  3449. },
  3450. {
  3451. "id": "contact.addSearchWxContact",
  3452. "module": "contact",
  3453. "title": "添加个微",
  3454. "summary": "添加个微 通过搜索结果,添加个人微信为外部联系人。",
  3455. "method": "/contact/addSearchWxContact",
  3456. "category": [
  3457. "API参考",
  3458. "客户管理",
  3459. "联系人模块"
  3460. ],
  3461. "docFile": "添加个微.md",
  3462. "tags": [
  3463. "contact",
  3464. "联系人模块",
  3465. "客户管理",
  3466. "添加个微",
  3467. "API参考"
  3468. ],
  3469. "params": [
  3470. {
  3471. "name": "guid",
  3472. "in": "body",
  3473. "type": "string",
  3474. "required": true,
  3475. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  3476. },
  3477. {
  3478. "name": "userId",
  3479. "in": "body",
  3480. "type": "string",
  3481. "required": true,
  3482. "desc": "用户id"
  3483. },
  3484. {
  3485. "name": "unionId",
  3486. "in": "body",
  3487. "type": "string",
  3488. "required": true,
  3489. "desc": "用户unionId"
  3490. },
  3491. {
  3492. "name": "verifyText",
  3493. "in": "body",
  3494. "type": "string",
  3495. "required": true,
  3496. "desc": "验证消息"
  3497. }
  3498. ]
  3499. },
  3500. {
  3501. "id": "contact.addSearchWxWorkContact",
  3502. "module": "contact",
  3503. "title": "添加企微",
  3504. "summary": "添加企微 通过搜索结果,添加企业微信联系人。",
  3505. "method": "/contact/addSearchWxWorkContact",
  3506. "category": [
  3507. "API参考",
  3508. "客户管理",
  3509. "联系人模块"
  3510. ],
  3511. "docFile": "添加企微.md",
  3512. "tags": [
  3513. "contact",
  3514. "添加企微",
  3515. "联系人模块",
  3516. "客户管理",
  3517. "API参考"
  3518. ],
  3519. "params": [
  3520. {
  3521. "name": "guid",
  3522. "in": "body",
  3523. "type": "string",
  3524. "required": true,
  3525. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  3526. },
  3527. {
  3528. "name": "userId",
  3529. "in": "body",
  3530. "type": "string",
  3531. "required": true,
  3532. "desc": "用户id"
  3533. },
  3534. {
  3535. "name": "corpId",
  3536. "in": "body",
  3537. "type": "string",
  3538. "required": true,
  3539. "desc": "企业 ID。"
  3540. },
  3541. {
  3542. "name": "ticket",
  3543. "in": "body",
  3544. "type": "string",
  3545. "required": true,
  3546. "desc": "Ticket 凭证"
  3547. },
  3548. {
  3549. "name": "verifyText",
  3550. "in": "body",
  3551. "type": "string",
  3552. "required": true,
  3553. "desc": "验证消息"
  3554. }
  3555. ]
  3556. },
  3557. {
  3558. "id": "contact.addCardContact",
  3559. "module": "contact",
  3560. "title": "添加企微名片",
  3561. "summary": "添加企微名片 通过企微名片添加联系人。",
  3562. "method": "/contact/addCardContact",
  3563. "category": [
  3564. "API参考",
  3565. "客户管理",
  3566. "联系人模块"
  3567. ],
  3568. "docFile": "添加企微名片.md",
  3569. "tags": [
  3570. "contact",
  3571. "添加企微名片",
  3572. "联系人模块",
  3573. "客户管理",
  3574. "API参考"
  3575. ],
  3576. "params": [
  3577. {
  3578. "name": "guid",
  3579. "in": "body",
  3580. "type": "string",
  3581. "required": true,
  3582. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  3583. },
  3584. {
  3585. "name": "presenterId",
  3586. "in": "body",
  3587. "type": "string",
  3588. "required": true,
  3589. "desc": "推荐者userid"
  3590. },
  3591. {
  3592. "name": "fromRoomId",
  3593. "in": "body",
  3594. "type": "string",
  3595. "required": true,
  3596. "desc": "接收人id"
  3597. },
  3598. {
  3599. "name": "userId",
  3600. "in": "body",
  3601. "type": "string",
  3602. "required": true,
  3603. "desc": "用户id"
  3604. },
  3605. {
  3606. "name": "verifyText",
  3607. "in": "body",
  3608. "type": "string",
  3609. "required": true,
  3610. "desc": "验证消息"
  3611. }
  3612. ]
  3613. },
  3614. {
  3615. "id": "contact.addDeletedContact",
  3616. "module": "contact",
  3617. "title": "添加删除联系人",
  3618. "summary": "添加删除联系人 - 该场景适用于好友已将您删除,需您主动重新发起好友验证申请。",
  3619. "method": "/contact/addDeletedContact",
  3620. "category": [
  3621. "API参考",
  3622. "客户管理",
  3623. "联系人模块"
  3624. ],
  3625. "docFile": "添加删除联系人.md",
  3626. "tags": [
  3627. "contact",
  3628. "添加删除联系人",
  3629. "联系人模块",
  3630. "客户管理",
  3631. "API参考"
  3632. ],
  3633. "params": [
  3634. {
  3635. "name": "guid",
  3636. "in": "body",
  3637. "type": "string",
  3638. "required": true,
  3639. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  3640. },
  3641. {
  3642. "name": "userId",
  3643. "in": "body",
  3644. "type": "string",
  3645. "required": true,
  3646. "desc": "用户id"
  3647. },
  3648. {
  3649. "name": "verifyText",
  3650. "in": "body",
  3651. "type": "string",
  3652. "required": true,
  3653. "desc": "验证消息"
  3654. }
  3655. ]
  3656. },
  3657. {
  3658. "id": "contact.addRoomContact",
  3659. "module": "contact",
  3660. "title": "添加群成员好友",
  3661. "summary": "添加群成员好友 添加群成员为好友。",
  3662. "method": "/contact/addRoomContact",
  3663. "category": [
  3664. "API参考",
  3665. "客户管理",
  3666. "联系人模块"
  3667. ],
  3668. "docFile": "添加群成员好友.md",
  3669. "tags": [
  3670. "contact",
  3671. "添加群成员好友",
  3672. "联系人模块",
  3673. "客户管理",
  3674. "API参考"
  3675. ],
  3676. "params": [
  3677. {
  3678. "name": "guid",
  3679. "in": "body",
  3680. "type": "string",
  3681. "required": true,
  3682. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  3683. },
  3684. {
  3685. "name": "userId",
  3686. "in": "body",
  3687. "type": "string",
  3688. "required": true,
  3689. "desc": "用户id"
  3690. },
  3691. {
  3692. "name": "verifyText",
  3693. "in": "body",
  3694. "type": "string",
  3695. "required": true,
  3696. "desc": "验证消息"
  3697. },
  3698. {
  3699. "name": "roomId",
  3700. "in": "body",
  3701. "type": "string",
  3702. "required": true,
  3703. "desc": "群聊 ID。"
  3704. }
  3705. ]
  3706. },
  3707. {
  3708. "id": "room.roomAddAdmin",
  3709. "module": "room",
  3710. "title": "添加群管理员",
  3711. "summary": "添加群管理员 为群聊添加管理员。",
  3712. "method": "/room/roomAddAdmin",
  3713. "category": [
  3714. "API参考",
  3715. "客户管理",
  3716. "群模块"
  3717. ],
  3718. "docFile": "添加群管理员.md",
  3719. "tags": [
  3720. "群模块",
  3721. "room",
  3722. "添加群管理员",
  3723. "客户管理",
  3724. "API参考"
  3725. ],
  3726. "params": [
  3727. {
  3728. "name": "guid",
  3729. "in": "body",
  3730. "type": "string",
  3731. "required": true,
  3732. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  3733. },
  3734. {
  3735. "name": "roomId",
  3736. "in": "body",
  3737. "type": "string",
  3738. "required": true,
  3739. "desc": "群聊 ID。"
  3740. },
  3741. {
  3742. "name": "memberList",
  3743. "in": "body",
  3744. "type": "array",
  3745. "required": true,
  3746. "desc": "成员列表。"
  3747. }
  3748. ]
  3749. },
  3750. {
  3751. "id": "sns.snsLike",
  3752. "module": "sns",
  3753. "title": "点赞/取消赞",
  3754. "summary": "点赞/取消赞 下载企微/个微文件资源,或将 CDN 文件转为可访问 URL。 注意:须传入 guid,为已登录云设备唯一标识,通过创建设备接口获取。",
  3755. "method": "/sns/snsLike",
  3756. "category": [
  3757. "API参考",
  3758. "媒体与运营",
  3759. "朋友圈模块"
  3760. ],
  3761. "docFile": "点赞_取消赞.md",
  3762. "tags": [
  3763. "sns",
  3764. "朋友圈模块",
  3765. "点赞/取消赞",
  3766. "媒体与运营",
  3767. "API参考"
  3768. ],
  3769. "params": [
  3770. {
  3771. "name": "guid",
  3772. "in": "body",
  3773. "type": "string",
  3774. "required": true,
  3775. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  3776. },
  3777. {
  3778. "name": "snsId",
  3779. "in": "body",
  3780. "type": "number",
  3781. "required": true,
  3782. "desc": "朋友圈Id"
  3783. },
  3784. {
  3785. "name": "snsStatus",
  3786. "in": "body",
  3787. "type": "integer",
  3788. "required": true,
  3789. "desc": "0点赞,1取消点赞"
  3790. }
  3791. ]
  3792. },
  3793. {
  3794. "id": "user.getQrcodeCard",
  3795. "module": "user",
  3796. "title": "生成二维码",
  3797. "summary": "生成二维码 生成当前账号的个人二维码名片,可用于展示或分享。",
  3798. "method": "/user/getQrcodeCard",
  3799. "category": [
  3800. "API参考",
  3801. "基础能力",
  3802. "个人模块"
  3803. ],
  3804. "docFile": "生成二维码.md",
  3805. "tags": [
  3806. "基础能力",
  3807. "user",
  3808. "生成二维码",
  3809. "个人模块",
  3810. "API参考"
  3811. ],
  3812. "params": [
  3813. {
  3814. "name": "guid",
  3815. "in": "body",
  3816. "type": "string",
  3817. "required": true,
  3818. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  3819. }
  3820. ],
  3821. "responseHint": "data 字段:qrcodeUrl(二维码地址)"
  3822. },
  3823. {
  3824. "id": "login.checkLogin",
  3825. "module": "login",
  3826. "title": "用户状态",
  3827. "summary": "用户状态 用于查询指定设备的当前登录状态,确认是否已在线。",
  3828. "method": "/login/checkLogin",
  3829. "category": [
  3830. "API参考",
  3831. "基础能力",
  3832. "登录模块"
  3833. ],
  3834. "docFile": "用户状态.md",
  3835. "tags": [
  3836. "基础能力",
  3837. "登录模块",
  3838. "用户状态",
  3839. "login",
  3840. "API参考"
  3841. ],
  3842. "params": [
  3843. {
  3844. "name": "guid",
  3845. "in": "body",
  3846. "type": "string",
  3847. "required": true,
  3848. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  3849. }
  3850. ],
  3851. "responseHint": "data 字段:errorCode(错误码);errorMsg(错误消息);userId(用户id);lastActiveTime(最后活跃时间);userOnlineStatus(=-1 未登陆,需要扫码登陆 =0 未登陆,可免扫码登陆 =1 已扫码,待确认 =2 登陆成功 =4 用户取消登陆 =10 已扫码确认,待检测6位验证码);corpLogo(企业 Logo URL。);corpName(公司名称);nickname(昵称)"
  3852. },
  3853. {
  3854. "id": "login.manualLogin",
  3855. "module": "login",
  3856. "title": "用户登录(免扫码登录)",
  3857. "summary": "用户登录(免扫码登录) • 无特殊情况下,无需调用此接口。• 使用条件: 该设备( GUID )之前扫码登录过,且手机端没有剔除该设备。",
  3858. "method": "/login/manualLogin",
  3859. "category": [
  3860. "API参考",
  3861. "基础能力",
  3862. "登录模块"
  3863. ],
  3864. "docFile": "用户登录(免扫码登录).md",
  3865. "tags": [
  3866. "基础能力",
  3867. "登录模块",
  3868. "用户登录(免扫码登录)",
  3869. "login",
  3870. "API参考"
  3871. ],
  3872. "params": [
  3873. {
  3874. "name": "guid",
  3875. "in": "body",
  3876. "type": "string",
  3877. "required": true,
  3878. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  3879. }
  3880. ]
  3881. },
  3882. {
  3883. "id": "room.prohibitAddMember",
  3884. "module": "room",
  3885. "title": "禁止群成员互相添加",
  3886. "summary": "禁止群成员互相添加 设置是否禁止群成员互相添加好友。",
  3887. "method": "/room/prohibitAddMember",
  3888. "category": [
  3889. "API参考",
  3890. "客户管理",
  3891. "群模块"
  3892. ],
  3893. "docFile": "禁止群成员互相添加.md",
  3894. "tags": [
  3895. "禁止群成员互相添加",
  3896. "群模块",
  3897. "room",
  3898. "客户管理",
  3899. "API参考"
  3900. ],
  3901. "params": [
  3902. {
  3903. "name": "guid",
  3904. "in": "body",
  3905. "type": "string",
  3906. "required": true,
  3907. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  3908. },
  3909. {
  3910. "name": "roomId",
  3911. "in": "body",
  3912. "type": "string",
  3913. "required": true,
  3914. "desc": "群聊 ID。"
  3915. },
  3916. {
  3917. "name": "disable",
  3918. "in": "body",
  3919. "type": "boolean",
  3920. "required": true,
  3921. "desc": "是否禁止"
  3922. },
  3923. {
  3924. "name": "newFlag",
  3925. "in": "body",
  3926. "type": "integer",
  3927. "required": true,
  3928. "desc": "从群详情/或群成员变动API中获取,注意区别roomFlag与roomNewFlag"
  3929. }
  3930. ]
  3931. },
  3932. {
  3933. "id": "room.prohibitChangeRoomName",
  3934. "module": "room",
  3935. "title": "禁止群改名",
  3936. "summary": "禁止群改名 禁止群成员修改群名称。",
  3937. "method": "/room/prohibitChangeRoomName",
  3938. "category": [
  3939. "API参考",
  3940. "客户管理",
  3941. "群模块"
  3942. ],
  3943. "docFile": "禁止群改名.md",
  3944. "tags": [
  3945. "群模块",
  3946. "room",
  3947. "禁止群改名",
  3948. "客户管理",
  3949. "API参考"
  3950. ],
  3951. "params": [
  3952. {
  3953. "name": "guid",
  3954. "in": "body",
  3955. "type": "string",
  3956. "required": true,
  3957. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  3958. },
  3959. {
  3960. "name": "roomId",
  3961. "in": "body",
  3962. "type": "string",
  3963. "required": true,
  3964. "desc": "目标群聊 ID,可通过群分页或群详情接口获取 roomId"
  3965. },
  3966. {
  3967. "name": "newFlag",
  3968. "in": "body",
  3969. "type": "integer",
  3970. "required": true,
  3971. "desc": "是否禁止"
  3972. },
  3973. {
  3974. "name": "disable",
  3975. "in": "body",
  3976. "type": "boolean",
  3977. "required": true,
  3978. "desc": "从群详情/或群成员变动API中获取,注意区别roomFlag与roomNewFlag"
  3979. }
  3980. ]
  3981. },
  3982. {
  3983. "id": "room.removeRoomMember",
  3984. "module": "room",
  3985. "title": "移除成员",
  3986. "summary": "移除成员 将成员移出群聊。",
  3987. "method": "/room/removeRoomMember",
  3988. "category": [
  3989. "API参考",
  3990. "客户管理",
  3991. "群模块"
  3992. ],
  3993. "docFile": "移除成员.md",
  3994. "tags": [
  3995. "群模块",
  3996. "room",
  3997. "移除成员",
  3998. "客户管理",
  3999. "API参考"
  4000. ],
  4001. "params": [
  4002. {
  4003. "name": "guid",
  4004. "in": "body",
  4005. "type": "string",
  4006. "required": true,
  4007. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  4008. },
  4009. {
  4010. "name": "roomId",
  4011. "in": "body",
  4012. "type": "string",
  4013. "required": true,
  4014. "desc": "群聊 ID。"
  4015. },
  4016. {
  4017. "name": "isOuterRoom",
  4018. "in": "body",
  4019. "type": "integer",
  4020. "required": true,
  4021. "desc": "是否外部群"
  4022. },
  4023. {
  4024. "name": "memberList",
  4025. "in": "body",
  4026. "type": "array",
  4027. "required": true,
  4028. "desc": "成员列表。"
  4029. }
  4030. ]
  4031. },
  4032. {
  4033. "id": "room.getRoomQrCode",
  4034. "module": "room",
  4035. "title": "群二维码",
  4036. "summary": "群二维码 获取群聊邀请二维码,可用于分享入群。",
  4037. "method": "/room/getRoomQrCode",
  4038. "category": [
  4039. "API参考",
  4040. "客户管理",
  4041. "群模块"
  4042. ],
  4043. "docFile": "群二维码.md",
  4044. "tags": [
  4045. "群模块",
  4046. "群二维码",
  4047. "room",
  4048. "客户管理",
  4049. "API参考"
  4050. ],
  4051. "params": [
  4052. {
  4053. "name": "guid",
  4054. "in": "body",
  4055. "type": "string",
  4056. "required": true,
  4057. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  4058. },
  4059. {
  4060. "name": "roomId",
  4061. "in": "body",
  4062. "type": "string",
  4063. "required": true,
  4064. "desc": "群聊 ID。"
  4065. }
  4066. ],
  4067. "responseHint": "data 字段:qrcodeData(二维码数据);roomHeadimgUrl(群Headimg链接)"
  4068. },
  4069. {
  4070. "id": "room.getRoomList",
  4071. "module": "room",
  4072. "title": "群分页",
  4073. "summary": "群分页 本接口仅支持查询本人创建的群组。如需查询全部群组,需结合 会话分页 接口使用,包含已保存至通讯录的群聊及其他临时群会话。 sessionType=1 时为群 id。",
  4074. "method": "/room/getRoomList",
  4075. "category": [
  4076. "API参考",
  4077. "客户管理",
  4078. "群模块"
  4079. ],
  4080. "docFile": "群分页.md",
  4081. "tags": [
  4082. "群模块",
  4083. "群分页",
  4084. "room",
  4085. "客户管理",
  4086. "API参考"
  4087. ],
  4088. "params": [
  4089. {
  4090. "name": "guid",
  4091. "in": "body",
  4092. "type": "string",
  4093. "required": true,
  4094. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  4095. },
  4096. {
  4097. "name": "nextStartIndex",
  4098. "in": "body",
  4099. "type": "integer",
  4100. "required": true,
  4101. "desc": "分页使用,首次传0,下次传入返回值nextStartIndex"
  4102. }
  4103. ],
  4104. "responseHint": "data 字段:hasMore(是否有更多);nextStartIndex(下次请求时应传入的nextStartIndex);roomCount(数量);roomList(群列表。)"
  4105. },
  4106. {
  4107. "id": "msg.sendGroupMsgStatus",
  4108. "module": "msg",
  4109. "title": "群发助手-状态查询",
  4110. "summary": "群发助手-状态查询 删除朋友圈动态下的指定评论。 注意:须传入 guid,为已登录云设备唯一标识,通过创建设备接口获取。",
  4111. "method": "/msg/sendGroupMsgStatus",
  4112. "category": [
  4113. "API参考",
  4114. "会话与消息",
  4115. "消息模块 "
  4116. ],
  4117. "docFile": "群发助手-状态查询.md",
  4118. "tags": [
  4119. "会话与消息",
  4120. "群发助手-状态查询",
  4121. "msg",
  4122. "消息模块 ",
  4123. "API参考"
  4124. ],
  4125. "params": [
  4126. {
  4127. "name": "guid",
  4128. "in": "body",
  4129. "type": "string",
  4130. "required": true,
  4131. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  4132. },
  4133. {
  4134. "name": "groupMsgId",
  4135. "in": "body",
  4136. "type": "string",
  4137. "required": true,
  4138. "desc": "群发消息id"
  4139. },
  4140. {
  4141. "name": "endDetailId",
  4142. "in": "body",
  4143. "type": "integer",
  4144. "required": true,
  4145. "desc": "用户状态列表最大查询量"
  4146. }
  4147. ],
  4148. "responseHint": "data 字段:customerList(用户状态列表);hasSend(是否发送);isEnd(是否End);total(总数)"
  4149. },
  4150. {
  4151. "id": "msg.sendGroupMsgRule",
  4152. "module": "msg",
  4153. "title": "群发助手-规则查询",
  4154. "summary": "群发助手-规则查询 对个人标签进行新增、修改或删除操作。 注意:须传入 guid,为已登录云设备唯一标识,通过创建设备接口获取。",
  4155. "method": "/msg/sendGroupMsgRule",
  4156. "category": [
  4157. "API参考",
  4158. "会话与消息",
  4159. "消息模块 "
  4160. ],
  4161. "docFile": "群发助手-规则查询.md",
  4162. "tags": [
  4163. "会话与消息",
  4164. "msg",
  4165. "消息模块 ",
  4166. "群发助手-规则查询",
  4167. "API参考"
  4168. ],
  4169. "params": [
  4170. {
  4171. "name": "guid",
  4172. "in": "body",
  4173. "type": "string",
  4174. "required": true,
  4175. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  4176. }
  4177. ],
  4178. "responseHint": "data 字段:type(1=每日可接收1条;2=每周可接收7条;3=每月可接收条数为当月天数)"
  4179. },
  4180. {
  4181. "id": "msg.sendGroupMsg",
  4182. "module": "msg",
  4183. "title": "群发助手发送",
  4184. "summary": "群发助手发送 对朋友圈动态发表评论或追评。 注意:须传入 guid,为已登录云设备唯一标识,通过创建设备接口获取。",
  4185. "method": "/msg/sendGroupMsg",
  4186. "category": [
  4187. "API参考",
  4188. "会话与消息",
  4189. "消息模块 "
  4190. ],
  4191. "docFile": "群发助手发送.md",
  4192. "tags": [
  4193. "会话与消息",
  4194. "群发助手发送",
  4195. "msg",
  4196. "消息模块 ",
  4197. "API参考"
  4198. ],
  4199. "params": [
  4200. {
  4201. "name": "guid",
  4202. "in": "body",
  4203. "type": "string",
  4204. "required": true,
  4205. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  4206. },
  4207. {
  4208. "name": "msgList",
  4209. "in": "body",
  4210. "type": "array",
  4211. "required": true,
  4212. "desc": "消息列表",
  4213. "children": [
  4214. {
  4215. "name": "msgData",
  4216. "in": "body",
  4217. "type": "object",
  4218. "required": false,
  4219. "desc": "【与发送消息里面的字段相同, 不需要'toId'这个字段】",
  4220. "children": [
  4221. {
  4222. "name": "content",
  4223. "in": "body",
  4224. "type": "string",
  4225. "required": true
  4226. }
  4227. ]
  4228. },
  4229. {
  4230. "name": "type",
  4231. "in": "body",
  4232. "type": "integer",
  4233. "required": false,
  4234. "desc": "0: 文本 13: 链接 14: 图片 15: 文件 23: 视频 78: 小程序"
  4235. }
  4236. ]
  4237. },
  4238. {
  4239. "name": "sendType",
  4240. "in": "body",
  4241. "type": "integer",
  4242. "required": true,
  4243. "desc": "0: 表示外部联系人 1: 表示外部群"
  4244. },
  4245. {
  4246. "name": "toIdList",
  4247. "in": "body",
  4248. "type": "array",
  4249. "required": true,
  4250. "desc": "发送成员列表"
  4251. }
  4252. ],
  4253. "responseHint": "data 字段:groupMsgId(分组消息Id)"
  4254. },
  4255. {
  4256. "id": "room.getRoomIncrSync",
  4257. "module": "room",
  4258. "title": "群成员变动查询",
  4259. "summary": "群成员变动查询 •用于解决群成员数量较多时,添加、删除成员同步成本高、工作量大的问题。",
  4260. "method": "/room/getRoomIncrSync",
  4261. "category": [
  4262. "API参考",
  4263. "客户管理",
  4264. "群模块"
  4265. ],
  4266. "docFile": "群成员变动查询.md",
  4267. "tags": [
  4268. "群成员变动查询",
  4269. "群模块",
  4270. "room",
  4271. "客户管理",
  4272. "API参考"
  4273. ],
  4274. "params": [
  4275. {
  4276. "name": "guid",
  4277. "in": "body",
  4278. "type": "string",
  4279. "required": true,
  4280. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  4281. },
  4282. {
  4283. "name": "roomId",
  4284. "in": "body",
  4285. "type": "string",
  4286. "required": true,
  4287. "desc": "群聊 ID。"
  4288. },
  4289. {
  4290. "name": "ver",
  4291. "in": "body",
  4292. "type": "string",
  4293. "required": true,
  4294. "desc": "首次为0,查询指定偏移之后所有变动"
  4295. },
  4296. {
  4297. "name": "nowMemberCount",
  4298. "in": "body",
  4299. "type": "string",
  4300. "required": true,
  4301. "desc": "群成员数量"
  4302. }
  4303. ],
  4304. "responseHint": "data 字段:roomList(群列表);msg(返回说明。)"
  4305. },
  4306. {
  4307. "id": "room.confirmInvitedMemberList",
  4308. "module": "room",
  4309. "title": "群成员邀请确认(管理员)",
  4310. "summary": "群成员邀请确认(管理员) 管理员确认群成员邀请。",
  4311. "method": "/room/confirmInvitedMemberList",
  4312. "category": [
  4313. "API参考",
  4314. "客户管理",
  4315. "群模块"
  4316. ],
  4317. "docFile": "群成员邀请确认(管理员).md",
  4318. "tags": [
  4319. "群成员邀请确认(管理员)",
  4320. "群模块",
  4321. "room",
  4322. "客户管理",
  4323. "API参考"
  4324. ],
  4325. "params": [
  4326. {
  4327. "name": "guid",
  4328. "in": "body",
  4329. "type": "string",
  4330. "required": true,
  4331. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  4332. },
  4333. {
  4334. "name": "roomId",
  4335. "in": "body",
  4336. "type": "string",
  4337. "required": true,
  4338. "desc": "群聊 ID。"
  4339. },
  4340. {
  4341. "name": "inviterId",
  4342. "in": "body",
  4343. "type": "string",
  4344. "required": true,
  4345. "desc": "邀请人 ID"
  4346. },
  4347. {
  4348. "name": "InviteMsgServerId",
  4349. "in": "body",
  4350. "type": "string",
  4351. "required": true,
  4352. "desc": "邀请消息服务端Id"
  4353. },
  4354. {
  4355. "name": "inviteCode",
  4356. "in": "body",
  4357. "type": "string",
  4358. "required": true,
  4359. "desc": "邀请码"
  4360. },
  4361. {
  4362. "name": "InvitedMemberList",
  4363. "in": "body",
  4364. "type": "array",
  4365. "required": true,
  4366. "desc": "Invited成员列表"
  4367. }
  4368. ]
  4369. },
  4370. {
  4371. "id": "msg.roomTopMessageList",
  4372. "module": "msg",
  4373. "title": "群消息置顶-列表",
  4374. "summary": "群消息置顶-列表 发布一条朋友圈动态,可包含文字、图片或视频。 注意:须传入 guid,为已登录云设备唯一标识,通过创建设备接口获取。",
  4375. "method": "/msg/roomTopMessageList",
  4376. "category": [
  4377. "API参考",
  4378. "会话与消息",
  4379. "消息模块 "
  4380. ],
  4381. "docFile": "群消息置顶-列表.md",
  4382. "tags": [
  4383. "会话与消息",
  4384. "群消息置顶-列表",
  4385. "msg",
  4386. "消息模块 ",
  4387. "API参考"
  4388. ],
  4389. "params": [
  4390. {
  4391. "name": "guid",
  4392. "in": "body",
  4393. "type": "string",
  4394. "required": true,
  4395. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  4396. },
  4397. {
  4398. "name": "roomId",
  4399. "in": "body",
  4400. "type": "string",
  4401. "required": true,
  4402. "desc": "群聊 ID。"
  4403. }
  4404. ],
  4405. "responseHint": "data 字段:list(列表)"
  4406. },
  4407. {
  4408. "id": "msg.roomTopMessageSet",
  4409. "module": "msg",
  4410. "title": "群消息置顶-添加",
  4411. "summary": "群消息置顶-添加 删除已发布的朋友圈动态。 注意:须传入 guid,为已登录云设备唯一标识,通过创建设备接口获取。",
  4412. "method": "/msg/roomTopMessageSet",
  4413. "category": [
  4414. "API参考",
  4415. "会话与消息",
  4416. "消息模块 "
  4417. ],
  4418. "docFile": "群消息置顶-添加.md",
  4419. "tags": [
  4420. "会话与消息",
  4421. "群消息置顶-添加",
  4422. "msg",
  4423. "消息模块 ",
  4424. "API参考"
  4425. ],
  4426. "params": [
  4427. {
  4428. "name": "guid",
  4429. "in": "body",
  4430. "type": "string",
  4431. "required": true,
  4432. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  4433. },
  4434. {
  4435. "name": "roomId",
  4436. "in": "body",
  4437. "type": "string",
  4438. "required": true,
  4439. "desc": "群聊 ID。"
  4440. },
  4441. {
  4442. "name": "msgId",
  4443. "in": "body",
  4444. "type": "string",
  4445. "required": true,
  4446. "desc": "消息 ID,用于引用、撤回。"
  4447. },
  4448. {
  4449. "name": "msgSenderId",
  4450. "in": "body",
  4451. "type": "string",
  4452. "required": true,
  4453. "desc": "消息发送人userId"
  4454. },
  4455. {
  4456. "name": "msgTimestamp",
  4457. "in": "body",
  4458. "type": "integer",
  4459. "required": true,
  4460. "desc": "消息发送时间戳"
  4461. },
  4462. {
  4463. "name": "msgData",
  4464. "in": "body",
  4465. "type": "object",
  4466. "required": true,
  4467. "desc": "消息内容,根据msgType不同,msgData也不同。数据格式详见各个消息的发送api",
  4468. "children": [
  4469. {
  4470. "name": "content",
  4471. "in": "body",
  4472. "type": "string",
  4473. "required": true
  4474. }
  4475. ]
  4476. },
  4477. {
  4478. "name": "msgType",
  4479. "in": "body",
  4480. "type": "integer",
  4481. "required": true,
  4482. "desc": "消息类型编号。"
  4483. }
  4484. ]
  4485. },
  4486. {
  4487. "id": "msg.roomTopMessageCancel",
  4488. "module": "msg",
  4489. "title": "群消息置顶-移除",
  4490. "summary": "群消息置顶-移除 对朋友圈动态点赞或取消点赞。 注意:须传入 guid,为已登录云设备唯一标识,通过创建设备接口获取。",
  4491. "method": "/msg/roomTopMessageCancel",
  4492. "category": [
  4493. "API参考",
  4494. "会话与消息",
  4495. "消息模块 "
  4496. ],
  4497. "docFile": "群消息置顶-移除.md",
  4498. "tags": [
  4499. "会话与消息",
  4500. "群消息置顶-移除",
  4501. "msg",
  4502. "消息模块 ",
  4503. "API参考"
  4504. ],
  4505. "params": [
  4506. {
  4507. "name": "guid",
  4508. "in": "body",
  4509. "type": "string",
  4510. "required": true,
  4511. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  4512. },
  4513. {
  4514. "name": "roomId",
  4515. "in": "body",
  4516. "type": "string",
  4517. "required": true,
  4518. "desc": "群聊 ID。"
  4519. },
  4520. {
  4521. "name": "seq",
  4522. "in": "body",
  4523. "type": "integer",
  4524. "required": true,
  4525. "desc": "消息序号"
  4526. }
  4527. ]
  4528. },
  4529. {
  4530. "id": "room.dismissRoom",
  4531. "module": "room",
  4532. "title": "群解散",
  4533. "summary": "群解散 解散指定群聊,解散后群聊不可恢复,请谨慎操作。",
  4534. "method": "/room/dismissRoom",
  4535. "category": [
  4536. "API参考",
  4537. "客户管理",
  4538. "群模块"
  4539. ],
  4540. "docFile": "群解散.md",
  4541. "tags": [
  4542. "群模块",
  4543. "room",
  4544. "群解散",
  4545. "客户管理",
  4546. "API参考"
  4547. ],
  4548. "params": [
  4549. {
  4550. "name": "guid",
  4551. "in": "body",
  4552. "type": "string",
  4553. "required": true,
  4554. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  4555. },
  4556. {
  4557. "name": "roomId",
  4558. "in": "body",
  4559. "type": "string",
  4560. "required": true,
  4561. "desc": "群聊 ID。"
  4562. }
  4563. ]
  4564. },
  4565. {
  4566. "id": "room.batchGetRoomDetail",
  4567. "module": "room",
  4568. "title": "群详情-批量",
  4569. "summary": "群详情-批量 群成员名称需调用 联系人详情 接口获取。 本接口查询群基本信息,支持批量查询。 查询群详情时,先调用 群分页 获取群 roomId ,并将群数据缓存至本地,再根据 roomId 查询详情。",
  4570. "method": "/room/batchGetRoomDetail",
  4571. "category": [
  4572. "API参考",
  4573. "客户管理",
  4574. "群模块"
  4575. ],
  4576. "docFile": "群详情-批量.md",
  4577. "tags": [
  4578. "群模块",
  4579. "room",
  4580. "群详情-批量",
  4581. "客户管理",
  4582. "API参考"
  4583. ],
  4584. "params": [
  4585. {
  4586. "name": "guid",
  4587. "in": "body",
  4588. "type": "string",
  4589. "required": true,
  4590. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  4591. },
  4592. {
  4593. "name": "roomIdList",
  4594. "in": "body",
  4595. "type": "array",
  4596. "required": true,
  4597. "desc": "群id列表"
  4598. }
  4599. ],
  4600. "responseHint": "data 字段:roomList(群列表)"
  4601. },
  4602. {
  4603. "id": "contact.searchContact",
  4604. "module": "contact",
  4605. "title": "联系人搜索",
  4606. "summary": "联系人搜索 按手机号搜索联系人,可快速定位目标用户。",
  4607. "method": "/contact/searchContact",
  4608. "category": [
  4609. "API参考",
  4610. "客户管理",
  4611. "联系人模块"
  4612. ],
  4613. "docFile": "联系人搜索.md",
  4614. "tags": [
  4615. "contact",
  4616. "联系人模块",
  4617. "客户管理",
  4618. "联系人搜索",
  4619. "API参考"
  4620. ],
  4621. "params": [
  4622. {
  4623. "name": "guid",
  4624. "in": "body",
  4625. "type": "string",
  4626. "required": true,
  4627. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  4628. },
  4629. {
  4630. "name": "keyword",
  4631. "in": "body",
  4632. "type": "string",
  4633. "required": true,
  4634. "desc": "搜索手机号。"
  4635. }
  4636. ],
  4637. "responseHint": "data 字段:searchStatus(Search状态);workUserInfo(企微用户信息);wxUserInfo(微信用户信息)"
  4638. },
  4639. {
  4640. "id": "contact.searchContact.联系人详情_By二维码",
  4641. "module": "contact",
  4642. "title": "联系人详情-By二维码",
  4643. "summary": "联系人详情-By二维码 调用方需要将个微、企V名片二维码中的url提取出来",
  4644. "method": "/contact/searchContact",
  4645. "category": [
  4646. "API参考",
  4647. "客户管理",
  4648. "联系人模块"
  4649. ],
  4650. "docFile": "联系人详情-By二维码.md",
  4651. "tags": [
  4652. "contact",
  4653. "联系人详情-By二维码",
  4654. "联系人模块",
  4655. "客户管理",
  4656. "API参考"
  4657. ],
  4658. "params": [
  4659. {
  4660. "name": "guid",
  4661. "in": "body",
  4662. "type": "string",
  4663. "required": true,
  4664. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  4665. },
  4666. {
  4667. "name": "qrUrl",
  4668. "in": "body",
  4669. "type": "string",
  4670. "required": true,
  4671. "desc": "二维码中的url"
  4672. }
  4673. ],
  4674. "responseHint": "data 字段:recommendContact(企V账号信息);wxInfo(个V账号信息)"
  4675. },
  4676. {
  4677. "id": "contact.batchGetUserinfo",
  4678. "module": "contact",
  4679. "title": "联系人详情-批量",
  4680. "summary": "联系人详情-批量 本接口用于查询联系人基本信息,支持批量查询。 允许查询好友、非好友的联系人信息。 查询联系人详情时,需先调用 外部联系人分页 获取用户 userid ,并将联系人数据缓存至本地,再根据 userid 查询详情。",
  4681. "method": "/contact/batchGetUserinfo",
  4682. "category": [
  4683. "API参考",
  4684. "客户管理",
  4685. "联系人模块"
  4686. ],
  4687. "docFile": "联系人详情-批量.md",
  4688. "tags": [
  4689. "contact",
  4690. "联系人详情-批量",
  4691. "联系人模块",
  4692. "客户管理",
  4693. "API参考"
  4694. ],
  4695. "params": [
  4696. {
  4697. "name": "guid",
  4698. "in": "body",
  4699. "type": "string",
  4700. "required": true,
  4701. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  4702. },
  4703. {
  4704. "name": "userIdList",
  4705. "in": "body",
  4706. "type": "array",
  4707. "required": true,
  4708. "desc": "用户id列表"
  4709. }
  4710. ],
  4711. "responseHint": "data 字段:contactList(联系人列表)"
  4712. },
  4713. {
  4714. "id": "user.getProfile",
  4715. "module": "user",
  4716. "title": "获取个人信息",
  4717. "summary": "获取个人信息 获取当前登录账号的个人资料,包括昵称、头像、企业等信息。 guid 即后台登录的设备 ID,是接口调用时标识设备身份的关键参数。",
  4718. "method": "/user/getProfile",
  4719. "category": [
  4720. "API参考",
  4721. "基础能力",
  4722. "个人模块"
  4723. ],
  4724. "docFile": "获取个人信息.md",
  4725. "tags": [
  4726. "基础能力",
  4727. "user",
  4728. "个人模块",
  4729. "获取个人信息",
  4730. "API参考"
  4731. ],
  4732. "params": [
  4733. {
  4734. "name": "guid",
  4735. "in": "body",
  4736. "type": "string",
  4737. "required": true,
  4738. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  4739. }
  4740. ],
  4741. "responseHint": "data 字段:acctid(账户id);alias(别名);corpId(企业 ID。);gender(0未,1男,2女);groupId(分组Id);internationCode(86);mobile(手机号);nickname(昵称);realName(真实姓名);userId(用户id);avatarUrl(头像 URL。)"
  4742. },
  4743. {
  4744. "id": "sns.getSnsDetail",
  4745. "module": "sns",
  4746. "title": "获取详情-批量",
  4747. "summary": "获取详情-批量 根据 userId 列表批量查询联系人朋友圈详细信息。",
  4748. "method": "/sns/getSnsDetail",
  4749. "category": [
  4750. "API参考",
  4751. "媒体与运营",
  4752. "朋友圈模块"
  4753. ],
  4754. "docFile": "获取详情-批量.md",
  4755. "tags": [
  4756. "获取详情-批量",
  4757. "sns",
  4758. "朋友圈模块",
  4759. "媒体与运营",
  4760. "API参考"
  4761. ],
  4762. "params": [
  4763. {
  4764. "name": "guid",
  4765. "in": "body",
  4766. "type": "string",
  4767. "required": true,
  4768. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  4769. },
  4770. {
  4771. "name": "snsIdList",
  4772. "in": "body",
  4773. "type": "array",
  4774. "required": true,
  4775. "desc": "朋友圈Id列表"
  4776. }
  4777. ],
  4778. "responseHint": "data 字段:snsDetailList(朋友圈Detail列表)"
  4779. },
  4780. {
  4781. "id": "client.setCallback",
  4782. "module": "client",
  4783. "title": "设置回调地址",
  4784. "summary": "设置回调地址 • 作用范围: 按 Token 配置,一个 Token 下的所有账号共用此回调地址。• 数据隔离: 回调内容包含 guid ,方便您的后端区分是哪个账号收到的消息。• msgType 包含系统、聊天消息类型,详见回调结构说明。 注意:回调地址须为公网可访问的 HTTPS URL 或者 域名。",
  4785. "method": "/client/setCallback",
  4786. "category": [
  4787. "API参考",
  4788. "基础能力",
  4789. "登录模块"
  4790. ],
  4791. "docFile": "设置回调地址.md",
  4792. "tags": [
  4793. "基础能力",
  4794. "登录模块",
  4795. "client",
  4796. "设置回调地址",
  4797. "API参考"
  4798. ],
  4799. "params": [
  4800. {
  4801. "name": "callbackUrl",
  4802. "in": "body",
  4803. "type": "string",
  4804. "required": true,
  4805. "desc": "Webhook 回调地址,需公网可访问的 https URL。"
  4806. },
  4807. {
  4808. "name": "authSecret",
  4809. "in": "body",
  4810. "type": "string",
  4811. "required": true,
  4812. "desc": "鉴权密钥"
  4813. },
  4814. {
  4815. "name": "authType",
  4816. "in": "body",
  4817. "type": "string",
  4818. "required": true,
  4819. "desc": "Authorization"
  4820. }
  4821. ]
  4822. },
  4823. {
  4824. "id": "sns.snsComment",
  4825. "module": "sns",
  4826. "title": "评论/追评",
  4827. "summary": "评论/追评 调用 评论/追评,需传入已登录设备的 guid。 注意:须传入 guid,为已登录云设备唯一标识,通过创建设备接口获取。",
  4828. "method": "/sns/snsComment",
  4829. "category": [
  4830. "API参考",
  4831. "媒体与运营",
  4832. "朋友圈模块"
  4833. ],
  4834. "docFile": "评论_追评.md",
  4835. "tags": [
  4836. "评论/追评",
  4837. "sns",
  4838. "朋友圈模块",
  4839. "媒体与运营",
  4840. "API参考"
  4841. ],
  4842. "params": [
  4843. {
  4844. "name": "guid",
  4845. "in": "body",
  4846. "type": "string",
  4847. "required": true,
  4848. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  4849. },
  4850. {
  4851. "name": "snsId",
  4852. "in": "body",
  4853. "type": "number",
  4854. "required": true,
  4855. "desc": "朋友圈消息对应的id"
  4856. },
  4857. {
  4858. "name": "content",
  4859. "in": "body",
  4860. "type": "string",
  4861. "required": true,
  4862. "desc": "消息内容。"
  4863. },
  4864. {
  4865. "name": "refCommentId",
  4866. "in": "body",
  4867. "type": "integer",
  4868. "required": true,
  4869. "desc": "默认传0 如果需要回复别人的评论则传别人评论的id 从获取朋友圈列表中获取"
  4870. }
  4871. ]
  4872. },
  4873. {
  4874. "id": "sns.deleteSnsComment",
  4875. "module": "sns",
  4876. "title": "评论删除",
  4877. "summary": "评论删除 调用 评论删除,需传入已登录设备的 guid。 注意:须传入 guid,为已登录云设备唯一标识,通过创建设备接口获取。",
  4878. "method": "/sns/deleteSnsComment",
  4879. "category": [
  4880. "API参考",
  4881. "媒体与运营",
  4882. "朋友圈模块"
  4883. ],
  4884. "docFile": "评论删除.md",
  4885. "tags": [
  4886. "sns",
  4887. "朋友圈模块",
  4888. "评论删除",
  4889. "媒体与运营",
  4890. "API参考"
  4891. ],
  4892. "params": [
  4893. {
  4894. "name": "guid",
  4895. "in": "body",
  4896. "type": "string",
  4897. "required": true,
  4898. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  4899. },
  4900. {
  4901. "name": "snsId",
  4902. "in": "body",
  4903. "type": "number",
  4904. "required": true,
  4905. "desc": "朋友圈消息对应的id"
  4906. },
  4907. {
  4908. "name": "content",
  4909. "in": "body",
  4910. "type": "string",
  4911. "required": true,
  4912. "desc": "消息内容。"
  4913. },
  4914. {
  4915. "name": "commentId",
  4916. "in": "body",
  4917. "type": "integer",
  4918. "required": true,
  4919. "desc": "评论id"
  4920. }
  4921. ]
  4922. },
  4923. {
  4924. "id": "msg.voiceToTextQuery",
  4925. "module": "msg",
  4926. "title": "语音转文字-任务查询",
  4927. "summary": "语音转文字-任务查询 分页拉取朋友圈动态列表。 注意:须传入 guid,为已登录云设备唯一标识,通过创建设备接口获取。",
  4928. "method": "/msg/voiceToTextQuery",
  4929. "category": [
  4930. "API参考",
  4931. "会话与消息",
  4932. "消息模块 "
  4933. ],
  4934. "docFile": "语音转文字-任务查询.md",
  4935. "tags": [
  4936. "会话与消息",
  4937. "语音转文字-任务查询",
  4938. "msg",
  4939. "消息模块 ",
  4940. "API参考"
  4941. ],
  4942. "params": [
  4943. {
  4944. "name": "guid",
  4945. "in": "body",
  4946. "type": "string",
  4947. "required": true,
  4948. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  4949. },
  4950. {
  4951. "name": "msgServerId",
  4952. "in": "body",
  4953. "type": "integer",
  4954. "required": true,
  4955. "desc": "消息id"
  4956. },
  4957. {
  4958. "name": "voiceId",
  4959. "in": "body",
  4960. "type": "string",
  4961. "required": true,
  4962. "desc": "语音 ID"
  4963. }
  4964. ],
  4965. "responseHint": "data 字段:text(文本);isEnd(任务是否执行完成)"
  4966. },
  4967. {
  4968. "id": "msg.voiceToTextApply",
  4969. "module": "msg",
  4970. "title": "语音转文字-任务申请",
  4971. "summary": "语音转文字-任务申请 分页拉取历史聊天记录,适用于消息归档与同步场景。 注意:须传入 guid,为已登录云设备唯一标识,通过创建设备接口获取。",
  4972. "method": "/msg/voiceToTextApply",
  4973. "category": [
  4974. "API参考",
  4975. "会话与消息",
  4976. "消息模块 "
  4977. ],
  4978. "docFile": "语音转文字-任务申请.md",
  4979. "tags": [
  4980. "会话与消息",
  4981. "msg",
  4982. "消息模块 ",
  4983. "语音转文字-任务申请",
  4984. "API参考"
  4985. ],
  4986. "params": [
  4987. {
  4988. "name": "guid",
  4989. "in": "body",
  4990. "type": "string",
  4991. "required": true,
  4992. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  4993. },
  4994. {
  4995. "name": "msgServerId",
  4996. "in": "body",
  4997. "type": "integer",
  4998. "required": true,
  4999. "desc": "消息id"
  5000. }
  5001. ],
  5002. "responseHint": "data 字段:voiceId(语音 ID)"
  5003. },
  5004. {
  5005. "id": "user.logout",
  5006. "module": "user",
  5007. "title": "账号退出",
  5008. "summary": "账号退出 退出当前设备绑定的企微账号登录状态。",
  5009. "method": "/user/logout",
  5010. "category": [
  5011. "API参考",
  5012. "基础能力",
  5013. "登录模块"
  5014. ],
  5015. "docFile": "账号退出.md",
  5016. "tags": [
  5017. "基础能力",
  5018. "登录模块",
  5019. "账号退出",
  5020. "user",
  5021. "API参考"
  5022. ],
  5023. "params": [
  5024. {
  5025. "name": "guid",
  5026. "in": "body",
  5027. "type": "string",
  5028. "required": true,
  5029. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  5030. }
  5031. ]
  5032. },
  5033. {
  5034. "id": "room.changeRoomMaster",
  5035. "module": "room",
  5036. "title": "转让群主",
  5037. "summary": "转让群主 将群主身份转让给其他群成员。",
  5038. "method": "/room/changeRoomMaster",
  5039. "category": [
  5040. "API参考",
  5041. "客户管理",
  5042. "群模块"
  5043. ],
  5044. "docFile": "转让群主.md",
  5045. "tags": [
  5046. "群模块",
  5047. "room",
  5048. "转让群主",
  5049. "客户管理",
  5050. "API参考"
  5051. ],
  5052. "params": [
  5053. {
  5054. "name": "guid",
  5055. "in": "body",
  5056. "type": "string",
  5057. "required": true,
  5058. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  5059. },
  5060. {
  5061. "name": "roomId",
  5062. "in": "body",
  5063. "type": "string",
  5064. "required": true,
  5065. "desc": "群聊 ID。"
  5066. },
  5067. {
  5068. "name": "newOwnerId",
  5069. "in": "body",
  5070. "type": "string",
  5071. "required": true,
  5072. "desc": "新群主id"
  5073. }
  5074. ]
  5075. },
  5076. {
  5077. "id": "room.quitRoom",
  5078. "module": "room",
  5079. "title": "退群",
  5080. "summary": "退群 退出指定群聊。",
  5081. "method": "/room/quitRoom",
  5082. "category": [
  5083. "API参考",
  5084. "客户管理",
  5085. "群模块"
  5086. ],
  5087. "docFile": "退群.md",
  5088. "tags": [
  5089. "退群",
  5090. "群模块",
  5091. "room",
  5092. "客户管理",
  5093. "API参考"
  5094. ],
  5095. "params": [
  5096. {
  5097. "name": "guid",
  5098. "in": "body",
  5099. "type": "string",
  5100. "required": true,
  5101. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  5102. },
  5103. {
  5104. "name": "roomId",
  5105. "in": "body",
  5106. "type": "string",
  5107. "required": true,
  5108. "desc": "群聊 ID。"
  5109. }
  5110. ]
  5111. },
  5112. {
  5113. "id": "room.inviteRoomMember",
  5114. "module": "room",
  5115. "title": "邀请/添加成员",
  5116. "summary": "邀请/添加成员 向已有群聊邀请或添加新成员。",
  5117. "method": "/room/inviteRoomMember",
  5118. "category": [
  5119. "API参考",
  5120. "客户管理",
  5121. "群模块"
  5122. ],
  5123. "docFile": "邀请_添加成员.md",
  5124. "tags": [
  5125. "群模块",
  5126. "room",
  5127. "邀请/添加成员",
  5128. "客户管理",
  5129. "API参考"
  5130. ],
  5131. "params": [
  5132. {
  5133. "name": "guid",
  5134. "in": "body",
  5135. "type": "string",
  5136. "required": true,
  5137. "desc": "设备唯一标识 guid,由「创建设备」接口返回,业务接口必传。"
  5138. },
  5139. {
  5140. "name": "roomId",
  5141. "in": "body",
  5142. "type": "string",
  5143. "required": true,
  5144. "desc": "群聊 ID。"
  5145. },
  5146. {
  5147. "name": "isOuterRoom",
  5148. "in": "body",
  5149. "type": "integer",
  5150. "required": true,
  5151. "desc": "是否外部群"
  5152. },
  5153. {
  5154. "name": "memberList",
  5155. "in": "body",
  5156. "type": "array",
  5157. "required": true,
  5158. "desc": "成员列表"
  5159. }
  5160. ]
  5161. },
  5162. {
  5163. "id": "cloud.bigFileDownloadAsync",
  5164. "module": "cloud",
  5165. "title": "企微大文件异步下载",
  5166. "summary": "文件大于 20M 使用此接口;下载地址为临时云资源(7–15 天不定期清理);异步结果通过回调通知,根据 requestId 匹配。注意:官方文档未公布该接口的 method 路由值,qiwei_api_call 无法直接调用,请参考 docUrl 官方文档确认后用 rawMethod 调用。",
  5167. "method": null,
  5168. "category": [
  5169. "API参考",
  5170. "媒体与运营",
  5171. "文件与媒体(下载/上传)"
  5172. ],
  5173. "docFile": "企微大文件异步下载.md",
  5174. "tags": [
  5175. "cloud",
  5176. "企微大文件异步下载",
  5177. "媒体与运营",
  5178. "API参考",
  5179. "大文件",
  5180. "下载"
  5181. ],
  5182. "params": [
  5183. {
  5184. "name": "guid",
  5185. "in": "body",
  5186. "type": "string",
  5187. "required": true,
  5188. "desc": "设备唯一标识 guid"
  5189. },
  5190. {
  5191. "name": "filekey",
  5192. "in": "body",
  5193. "type": "string",
  5194. "required": true,
  5195. "desc": "当 fileId 以 * 开头时为空;否则不为空"
  5196. },
  5197. {
  5198. "name": "fileId",
  5199. "in": "body",
  5200. "type": "string",
  5201. "required": true,
  5202. "desc": "文件 Id"
  5203. },
  5204. {
  5205. "name": "fileSize",
  5206. "in": "body",
  5207. "type": "integer",
  5208. "required": true,
  5209. "desc": "文件大小"
  5210. },
  5211. {
  5212. "name": "fileType",
  5213. "in": "body",
  5214. "type": "integer",
  5215. "required": true,
  5216. "desc": "22 大视频 35 文件"
  5217. },
  5218. {
  5219. "name": "filename",
  5220. "in": "body",
  5221. "type": "string",
  5222. "required": true,
  5223. "desc": "文件名"
  5224. }
  5225. ],
  5226. "responseHint": "data 字段:requestId(请求 Id,用于在回调中匹配异步下载结果)"
  5227. }
  5228. ]
  5229. }