mirai-http-api.json 42 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253
  1. {
  2. "version": 6,
  3. "entities": [
  4. {
  5. "entity": {
  6. "type": "Project",
  7. "description": "",
  8. "id": "74c7ae05-c41c-41c6-ac91-1890ffcdf848",
  9. "name": "mirai-api"
  10. },
  11. "children": [
  12. {
  13. "entity": {
  14. "type": "Service",
  15. "description": "管理相关",
  16. "id": "90f7ccba-0c0b-41a1-8a08-867c94730efb",
  17. "name": "API-HTTP插件相关"
  18. },
  19. "children": [
  20. {
  21. "entity": {
  22. "type": "Request",
  23. "method": {
  24. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.1",
  25. "name": "GET"
  26. },
  27. "body": {
  28. "formBody": {
  29. "overrideContentType": true,
  30. "encoding": "application/x-www-form-urlencoded",
  31. "items": []
  32. },
  33. "bodyType": "Text"
  34. },
  35. "uri": {
  36. "query": {
  37. "delimiter": "&",
  38. "items": []
  39. },
  40. "host": "${host}",
  41. "path": "/about"
  42. },
  43. "id": "a068480f-e1e7-459a-afaa-e95a26b385aa",
  44. "name": "获取插件信息",
  45. "headers": []
  46. }
  47. }
  48. ]
  49. },
  50. {
  51. "entity": {
  52. "type": "Service",
  53. "id": "1dfde690-348c-4af1-969a-5a9fd6eb0828",
  54. "name": "插件相关、Console相关"
  55. },
  56. "children": [
  57. {
  58. "entity": {
  59. "type": "Request",
  60. "method": {
  61. "requestBody": true,
  62. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.3",
  63. "name": "POST"
  64. },
  65. "body": {
  66. "formBody": {
  67. "overrideContentType": true,
  68. "encoding": "application/x-www-form-urlencoded",
  69. "items": []
  70. },
  71. "bodyType": "Text",
  72. "textBody": "{\n \"authKey\": \"${authKey}\",\n \"name\": \"gin\",\n \"args\": [\"123\", \"pwd\"]\n}"
  73. },
  74. "uri": {
  75. "query": {
  76. "delimiter": "&",
  77. "items": []
  78. },
  79. "host": "${host}",
  80. "path": "/command/send"
  81. },
  82. "id": "d8dbe8fd-3ad7-45b2-ac88-bab055ecea3e",
  83. "name": "发送指令",
  84. "headers": [
  85. {
  86. "enabled": true,
  87. "name": "Content-Type",
  88. "value": "application/json"
  89. }
  90. ]
  91. }
  92. },
  93. {
  94. "entity": {
  95. "type": "Request",
  96. "method": {
  97. "requestBody": true,
  98. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.3",
  99. "name": "POST"
  100. },
  101. "body": {
  102. "formBody": {
  103. "overrideContentType": true,
  104. "encoding": "application/x-www-form-urlencoded",
  105. "items": []
  106. },
  107. "bodyType": "Text",
  108. "textBody": "{\n \"authKey\": \"${authKey}\",\n \"name\": \"gin\",\n \"alias\": [\"lg\",\"SignIn\"],\n \"description\": \"用于登录\",\n \"usage\": \"/gin qq password\"\n}"
  109. },
  110. "uri": {
  111. "query": {
  112. "delimiter": "&",
  113. "items": []
  114. },
  115. "host": "${host}",
  116. "path": "/command/register"
  117. },
  118. "id": "71f85e70-4296-44a2-b526-47d7759c2928",
  119. "name": "注册指令",
  120. "headers": [
  121. {
  122. "enabled": true,
  123. "name": "Content-Type",
  124. "value": "application/json"
  125. }
  126. ]
  127. }
  128. },
  129. {
  130. "entity": {
  131. "type": "Request",
  132. "method": {
  133. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.1",
  134. "name": "GET"
  135. },
  136. "body": {
  137. "formBody": {
  138. "overrideContentType": true,
  139. "encoding": "application/x-www-form-urlencoded",
  140. "items": []
  141. },
  142. "bodyType": "Text"
  143. },
  144. "uri": {
  145. "scheme": {
  146. "secure": true,
  147. "name": "https",
  148. "version": "V11"
  149. }
  150. },
  151. "id": "23e8aef7-ae45-4b24-8b93-2b102c92a70c",
  152. "name": "获取Mangers",
  153. "headers": []
  154. }
  155. }
  156. ]
  157. },
  158. {
  159. "entity": {
  160. "type": "Service",
  161. "id": "b736f2a8-e31b-4fbf-b9f4-b0a24e9995d9",
  162. "name": "消息相关"
  163. },
  164. "children": [
  165. {
  166. "entity": {
  167. "type": "Request",
  168. "method": {
  169. "requestBody": true,
  170. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.3",
  171. "name": "POST"
  172. },
  173. "body": {
  174. "formBody": {
  175. "overrideContentType": true,
  176. "encoding": "application/x-www-form-urlencoded",
  177. "items": []
  178. },
  179. "bodyType": "Text",
  180. "textBody": "{\n \"sessionKey\": \"${session}\",\n \"qq\": 211995046,\n \"group\": 123456789,\n \"messageChain\": [\n {\n \"type\": \"Plain\",\n \"text\":\"hello\\n\" \n },\n {\n \"type\": \"Plain\",\n \"text\":\"world\" \n }\n ]\n}"
  181. },
  182. "uri": {
  183. "query": {
  184. "delimiter": "&",
  185. "items": []
  186. },
  187. "host": "${host}",
  188. "path": "/sendTempMessage"
  189. },
  190. "id": "c448c8cf-2a4f-44a6-9de9-77263b7733d8",
  191. "name": "发送临时会话消息",
  192. "headers": [
  193. {
  194. "enabled": true,
  195. "name": "Content-Type",
  196. "value": "application/json"
  197. }
  198. ]
  199. }
  200. },
  201. {
  202. "entity": {
  203. "type": "Request",
  204. "method": {
  205. "requestBody": true,
  206. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.3",
  207. "name": "POST"
  208. },
  209. "body": {
  210. "formBody": {
  211. "overrideContentType": true,
  212. "encoding": "application/x-www-form-urlencoded",
  213. "items": []
  214. },
  215. "bodyType": "Text",
  216. "textBody": "{\n \"sessionKey\": \"${session}\",\n \"target\": 123456789,\n \"urls\": [\n \"https://i1.hdslb.com/bfs/archive/04cbc0a251acc36bf44741f93517a6a0bbdbb1fc.jpg\"\n ]\n}"
  217. },
  218. "uri": {
  219. "query": {
  220. "delimiter": "&",
  221. "items": []
  222. },
  223. "host": "${host}",
  224. "path": "/sendImageMessage"
  225. },
  226. "id": "d5823b26-7a09-4b42-bb81-746c1ca8268d",
  227. "name": "发送图片消息(通过URL)",
  228. "headers": [
  229. {
  230. "enabled": true,
  231. "name": "Content-Type",
  232. "value": "application/json"
  233. }
  234. ]
  235. }
  236. },
  237. {
  238. "entity": {
  239. "type": "Request",
  240. "method": {
  241. "requestBody": true,
  242. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.3",
  243. "name": "POST"
  244. },
  245. "body": {
  246. "formBody": {
  247. "overrideContentType": true,
  248. "encoding": "application/x-www-form-urlencoded",
  249. "items": []
  250. },
  251. "bodyType": "Text",
  252. "textBody": "{\n \"sessionKey\": \"${session}\",\n \"target\": 123456789,\n \"messageChain\": [\n {\n \"type\": \"Plain\",\n \"text\":\"hello\\n\" \n },\n {\n \"type\": \"Plain\",\n \"text\":\"world\" \n }\n ]\n}"
  253. },
  254. "uri": {
  255. "query": {
  256. "delimiter": "&",
  257. "items": []
  258. },
  259. "host": "${host}",
  260. "path": "/sendFriendMessage"
  261. },
  262. "id": "f2278e70-aca7-4e90-9271-0bc168a53ded",
  263. "name": "发送好友消息",
  264. "headers": [
  265. {
  266. "enabled": true,
  267. "name": "Content-Type",
  268. "value": "application/json"
  269. }
  270. ]
  271. }
  272. },
  273. {
  274. "entity": {
  275. "type": "Request",
  276. "method": {
  277. "requestBody": true,
  278. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.3",
  279. "name": "POST"
  280. },
  281. "body": {
  282. "formBody": {
  283. "overrideContentType": true,
  284. "encoding": "application/x-www-form-urlencoded",
  285. "items": []
  286. },
  287. "bodyType": "Text",
  288. "textBody": "{\n \"sessionKey\": \"${session}\",\n \"target\": 123456789,\n \"messageChain\": [\n {\n \"type\": \"Plain\",\n \"text\":\"hello\\n\" \n },\n {\n \"type\": \"Plain\",\n \"text\":\"world\" \n }\n ]\n}"
  289. },
  290. "uri": {
  291. "query": {
  292. "delimiter": "&",
  293. "items": []
  294. },
  295. "host": "${host}",
  296. "path": "/sendGroupMessage"
  297. },
  298. "id": "5edc6284-7dbc-4708-922c-e5c918151772",
  299. "name": "发送群消息",
  300. "headers": [
  301. {
  302. "enabled": true,
  303. "name": "Content-Type",
  304. "value": "application/json"
  305. }
  306. ]
  307. }
  308. },
  309. {
  310. "entity": {
  311. "type": "Request",
  312. "method": {
  313. "requestBody": true,
  314. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.3",
  315. "name": "POST"
  316. },
  317. "body": {
  318. "formBody": {
  319. "overrideContentType": true,
  320. "encoding": "multipart/form-data",
  321. "items": [
  322. {
  323. "enabled": true,
  324. "type": "Text",
  325. "name": "sessionKey",
  326. "value": "${session}"
  327. },
  328. {
  329. "enabled": true,
  330. "type": "Text",
  331. "name": "type",
  332. "value": "group"
  333. },
  334. {
  335. "enabled": true,
  336. "type": "File",
  337. "name": "img"
  338. }
  339. ]
  340. },
  341. "bodyType": "Form",
  342. "textBody": ""
  343. },
  344. "uri": {
  345. "query": {
  346. "delimiter": "&",
  347. "items": []
  348. },
  349. "host": "${host}",
  350. "path": "/uploadImage"
  351. },
  352. "id": "3850bf71-e4fb-473b-aedc-5a6366bb59bb",
  353. "name": "图片文件上传",
  354. "headers": [
  355. {
  356. "enabled": true,
  357. "name": "Content-Type",
  358. "value": "multipart/form-data"
  359. }
  360. ]
  361. }
  362. },
  363. {
  364. "entity": {
  365. "type": "Request",
  366. "method": {
  367. "requestBody": true,
  368. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.3",
  369. "name": "POST"
  370. },
  371. "body": {
  372. "formBody": {
  373. "overrideContentType": true,
  374. "encoding": "application/x-www-form-urlencoded",
  375. "items": []
  376. },
  377. "bodyType": "Text",
  378. "textBody": "{\n \"sessionKey\": \"${session}\",\n \"target\": 9018\n}"
  379. },
  380. "uri": {
  381. "query": {
  382. "delimiter": "&",
  383. "items": []
  384. },
  385. "host": "${host}",
  386. "path": "/recall"
  387. },
  388. "id": "b217eaba-3366-4c3e-a846-5295760cf03d",
  389. "name": "撤回消息",
  390. "headers": [
  391. {
  392. "enabled": true,
  393. "name": "Content-Type",
  394. "value": "application/json"
  395. }
  396. ]
  397. }
  398. },
  399. {
  400. "entity": {
  401. "type": "Request",
  402. "method": {
  403. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.1",
  404. "name": "GET"
  405. },
  406. "body": {
  407. "formBody": {
  408. "overrideContentType": true,
  409. "encoding": "application/x-www-form-urlencoded",
  410. "items": []
  411. },
  412. "bodyType": "Text"
  413. },
  414. "uri": {
  415. "query": {
  416. "delimiter": "&",
  417. "items": [
  418. {
  419. "enabled": true,
  420. "name": "sessionKey",
  421. "value": "${session}"
  422. }
  423. ]
  424. },
  425. "host": "${host}",
  426. "path": "/countMessage"
  427. },
  428. "id": "c4df569b-f877-4c13-aa50-f83a11c03231",
  429. "name": "查看缓存的消息总数",
  430. "headers": []
  431. }
  432. },
  433. {
  434. "entity": {
  435. "type": "Request",
  436. "method": {
  437. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.1",
  438. "name": "GET"
  439. },
  440. "body": {
  441. "formBody": {
  442. "overrideContentType": true,
  443. "encoding": "application/x-www-form-urlencoded",
  444. "items": []
  445. },
  446. "bodyType": "Text"
  447. },
  448. "uri": {
  449. "query": {
  450. "delimiter": "&",
  451. "items": [
  452. {
  453. "enabled": true,
  454. "name": "sessionKey",
  455. "value": "${session}"
  456. },
  457. {
  458. "enabled": true,
  459. "name": "count",
  460. "value": "10"
  461. }
  462. ]
  463. },
  464. "host": "${host}",
  465. "path": "/fetchMessage"
  466. },
  467. "id": "4b4e38fd-e7aa-44f7-b069-d006ab12f839",
  468. "name": "获取Bot收到的消息和事件",
  469. "headers": []
  470. }
  471. },
  472. {
  473. "entity": {
  474. "type": "Request",
  475. "method": {
  476. "requestBody": true,
  477. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.3",
  478. "name": "POST"
  479. },
  480. "body": {
  481. "formBody": {
  482. "overrideContentType": true,
  483. "encoding": "multipart/form-data",
  484. "items": [
  485. {
  486. "enabled": true,
  487. "type": "Text",
  488. "name": "sessionKey",
  489. "value": "${session}"
  490. },
  491. {
  492. "enabled": true,
  493. "type": "Text",
  494. "name": "type",
  495. "value": "group"
  496. },
  497. {
  498. "enabled": true,
  499. "type": "File",
  500. "name": "voice"
  501. }
  502. ]
  503. },
  504. "bodyType": "Form",
  505. "textBody": ""
  506. },
  507. "uri": {
  508. "query": {
  509. "delimiter": "&",
  510. "items": []
  511. },
  512. "host": "${host}",
  513. "path": "/uploadVoice"
  514. },
  515. "id": "48754e04-64fa-488d-bba2-a09fe8c4c22c",
  516. "name": "语音文件上传",
  517. "headers": [
  518. {
  519. "enabled": true,
  520. "name": "Content-Type",
  521. "value": "multipart/form-data"
  522. }
  523. ]
  524. }
  525. },
  526. {
  527. "entity": {
  528. "type": "Request",
  529. "method": {
  530. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.1",
  531. "name": "GET"
  532. },
  533. "body": {
  534. "formBody": {
  535. "overrideContentType": true,
  536. "encoding": "application/x-www-form-urlencoded",
  537. "items": []
  538. },
  539. "bodyType": "Text"
  540. },
  541. "uri": {
  542. "query": {
  543. "delimiter": "&",
  544. "items": [
  545. {
  546. "enabled": true,
  547. "name": "sessionKey",
  548. "value": "${session}"
  549. },
  550. {
  551. "enabled": true,
  552. "name": "id",
  553. "value": "9018"
  554. }
  555. ]
  556. },
  557. "host": "${host}",
  558. "path": "/messageFromId"
  559. },
  560. "id": "75133b53-cbcf-40fe-bcb5-4d24167ed63d",
  561. "name": "通过messageId获取一条被缓存的消息",
  562. "headers": []
  563. }
  564. }
  565. ]
  566. },
  567. {
  568. "entity": {
  569. "type": "Service",
  570. "id": "99185c7f-ad79-4411-9d4c-21c5df65cf48",
  571. "name": "管理相关"
  572. },
  573. "children": [
  574. {
  575. "entity": {
  576. "type": "Request",
  577. "method": {
  578. "requestBody": true,
  579. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.3",
  580. "name": "POST"
  581. },
  582. "body": {
  583. "formBody": {
  584. "overrideContentType": true,
  585. "encoding": "application/x-www-form-urlencoded",
  586. "items": []
  587. },
  588. "bodyType": "Text",
  589. "textBody": "{\n \"sessionKey\": \"${session}\",\n \"target\": 123456789,\n \"memberId\": 211995046,\n \"info\": {\n \"name\": \"2333\"\n }\n}"
  590. },
  591. "uri": {
  592. "query": {
  593. "delimiter": "&",
  594. "items": []
  595. },
  596. "host": "${host}",
  597. "path": "/memberInfo"
  598. },
  599. "id": "5b904212-1464-4b1a-9fed-3f28b33c96f6",
  600. "name": "修改群员资料",
  601. "headers": [
  602. {
  603. "enabled": true,
  604. "name": "Content-Type",
  605. "value": "application/json"
  606. }
  607. ]
  608. }
  609. },
  610. {
  611. "entity": {
  612. "type": "Request",
  613. "method": {
  614. "requestBody": true,
  615. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.3",
  616. "name": "POST"
  617. },
  618. "body": {
  619. "formBody": {
  620. "overrideContentType": true,
  621. "encoding": "application/x-www-form-urlencoded",
  622. "items": []
  623. },
  624. "bodyType": "Text",
  625. "textBody": "{\n \"sessionKey\": \"${session}\",\n \"target\": 123456789,\n \"memberId\": 211995046,\n \"msg\": \"测试踢人\"\n}"
  626. },
  627. "uri": {
  628. "query": {
  629. "delimiter": "&",
  630. "items": []
  631. },
  632. "host": "${host}",
  633. "path": "/kick"
  634. },
  635. "id": "22b5567a-5bbf-4b72-bb44-5485ce159f68",
  636. "name": "移出群成员",
  637. "headers": [
  638. {
  639. "enabled": true,
  640. "name": "Content-Type",
  641. "value": "application/json"
  642. }
  643. ]
  644. }
  645. },
  646. {
  647. "entity": {
  648. "type": "Request",
  649. "method": {
  650. "requestBody": true,
  651. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.3",
  652. "name": "POST"
  653. },
  654. "body": {
  655. "formBody": {
  656. "overrideContentType": true,
  657. "encoding": "application/x-www-form-urlencoded",
  658. "items": []
  659. },
  660. "bodyType": "Text",
  661. "textBody": "{\n \"sessionKey\": \"${session}\",\n \"target\": 123456789\n}"
  662. },
  663. "uri": {
  664. "query": {
  665. "delimiter": "&",
  666. "items": []
  667. },
  668. "host": "${host}",
  669. "path": "/muteAll"
  670. },
  671. "id": "cf5417fe-baad-42c5-a113-ca18d5856ceb",
  672. "name": "群全体禁言",
  673. "headers": [
  674. {
  675. "enabled": true,
  676. "name": "Content-Type",
  677. "value": "application/json"
  678. }
  679. ]
  680. }
  681. },
  682. {
  683. "entity": {
  684. "type": "Request",
  685. "method": {
  686. "requestBody": true,
  687. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.3",
  688. "name": "POST"
  689. },
  690. "body": {
  691. "formBody": {
  692. "overrideContentType": true,
  693. "encoding": "application/x-www-form-urlencoded",
  694. "items": []
  695. },
  696. "bodyType": "Text",
  697. "textBody": "{\n \"sessionKey\": \"${session}\",\n \"target\": 123456789,\n \"memberId\":211995046,\n \"time\": 1800\n}"
  698. },
  699. "uri": {
  700. "query": {
  701. "delimiter": "&",
  702. "items": []
  703. },
  704. "host": "${host}",
  705. "path": "/mute"
  706. },
  707. "id": "cdff6874-440d-4565-9f88-93ec63ae8d86",
  708. "name": "群禁言群成员",
  709. "headers": [
  710. {
  711. "enabled": true,
  712. "name": "Content-Type",
  713. "value": "application/json"
  714. }
  715. ]
  716. }
  717. },
  718. {
  719. "entity": {
  720. "type": "Request",
  721. "method": {
  722. "requestBody": true,
  723. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.3",
  724. "name": "POST"
  725. },
  726. "body": {
  727. "formBody": {
  728. "overrideContentType": true,
  729. "encoding": "application/x-www-form-urlencoded",
  730. "items": []
  731. },
  732. "bodyType": "Text",
  733. "textBody": "{\n \"sessionKey\": \"${session}\",\n \"target\": 123456789\n}"
  734. },
  735. "uri": {
  736. "query": {
  737. "delimiter": "&",
  738. "items": []
  739. },
  740. "host": "${host}",
  741. "path": "/unmuteAll"
  742. },
  743. "id": "e055e0f5-32fd-466e-b52c-f8ea9b4d9b37",
  744. "name": "群解除全体禁言",
  745. "headers": [
  746. {
  747. "enabled": true,
  748. "name": "Content-Type",
  749. "value": "application/json"
  750. }
  751. ]
  752. }
  753. },
  754. {
  755. "entity": {
  756. "type": "Request",
  757. "method": {
  758. "requestBody": true,
  759. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.3",
  760. "name": "POST"
  761. },
  762. "body": {
  763. "formBody": {
  764. "overrideContentType": true,
  765. "encoding": "application/x-www-form-urlencoded",
  766. "items": []
  767. },
  768. "bodyType": "Text",
  769. "textBody": "{\n \"sessionKey\": \"${session}\",\n \"target\": 123456789,\n \"memberId\": 211995046\n}"
  770. },
  771. "uri": {
  772. "query": {
  773. "delimiter": "&",
  774. "items": []
  775. },
  776. "host": "${host}",
  777. "path": "/unmute"
  778. },
  779. "id": "69379912-abe1-4791-8056-33f674c8a42a",
  780. "name": "群解除群成员禁言",
  781. "headers": [
  782. {
  783. "enabled": true,
  784. "name": "Content-Type",
  785. "value": "application/json"
  786. }
  787. ]
  788. }
  789. },
  790. {
  791. "entity": {
  792. "type": "Request",
  793. "method": {
  794. "requestBody": true,
  795. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.3",
  796. "name": "POST"
  797. },
  798. "body": {
  799. "formBody": {
  800. "overrideContentType": true,
  801. "encoding": "application/x-www-form-urlencoded",
  802. "items": []
  803. },
  804. "bodyType": "Text",
  805. "textBody": "{\n \"sessionKey\": \"${session}\",\n \"target\": 123456789,\n \"config\": {\n \"name\": \"群名称\",\n \"announcement\": \"群公告\",\n \"confessTalk\": true,\n \"allowMemberInvite\": true,\n \"autoApprove\": true,\n \"anonymousChat\": true\n }\n}"
  806. },
  807. "uri": {
  808. "query": {
  809. "delimiter": "&",
  810. "items": []
  811. },
  812. "host": "${host}",
  813. "path": "/groupConfig"
  814. },
  815. "id": "5b4a50ff-1bb1-43b1-b813-509f5a2d9ba7",
  816. "name": "群设置",
  817. "headers": [
  818. {
  819. "enabled": true,
  820. "name": "Content-Type",
  821. "value": "application/json;charset=utf-8"
  822. }
  823. ]
  824. }
  825. },
  826. {
  827. "entity": {
  828. "type": "Request",
  829. "method": {
  830. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.1",
  831. "name": "GET"
  832. },
  833. "body": {
  834. "formBody": {
  835. "overrideContentType": true,
  836. "encoding": "application/x-www-form-urlencoded",
  837. "items": []
  838. },
  839. "bodyType": "Text"
  840. },
  841. "uri": {
  842. "query": {
  843. "delimiter": "&",
  844. "items": [
  845. {
  846. "enabled": true,
  847. "name": "sessionKey",
  848. "value": "${session}"
  849. }
  850. ]
  851. },
  852. "host": "${host}",
  853. "path": "/friendList"
  854. },
  855. "id": "3e659c2b-1db0-46f6-8cde-3307453b7f3d",
  856. "name": "获取好友列表",
  857. "headers": []
  858. }
  859. },
  860. {
  861. "entity": {
  862. "type": "Request",
  863. "method": {
  864. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.1",
  865. "name": "GET"
  866. },
  867. "body": {
  868. "formBody": {
  869. "overrideContentType": true,
  870. "encoding": "application/x-www-form-urlencoded",
  871. "items": []
  872. },
  873. "bodyType": "Text"
  874. },
  875. "uri": {
  876. "query": {
  877. "delimiter": "&",
  878. "items": [
  879. {
  880. "enabled": true,
  881. "name": "sessionKey",
  882. "value": "${session}"
  883. }
  884. ]
  885. },
  886. "host": "${host}",
  887. "path": "/groupList"
  888. },
  889. "id": "c10ed8d6-0cb7-4610-8f3a-2dec53ff3849",
  890. "name": "获取群列表",
  891. "headers": []
  892. }
  893. },
  894. {
  895. "entity": {
  896. "type": "Request",
  897. "method": {
  898. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.1",
  899. "name": "GET"
  900. },
  901. "body": {
  902. "formBody": {
  903. "overrideContentType": true,
  904. "encoding": "application/x-www-form-urlencoded",
  905. "items": []
  906. },
  907. "bodyType": "Text"
  908. },
  909. "uri": {
  910. "query": {
  911. "delimiter": "&",
  912. "items": [
  913. {
  914. "enabled": true,
  915. "name": "sessionKey",
  916. "value": "${session}"
  917. },
  918. {
  919. "enabled": true,
  920. "name": "target",
  921. "value": "123456789"
  922. },
  923. {
  924. "enabled": true,
  925. "name": "memberId",
  926. "value": "211995046"
  927. }
  928. ]
  929. },
  930. "host": "${host}",
  931. "path": "/memberInfo"
  932. },
  933. "id": "11c6a492-4c2a-421d-af10-1a95213b88d0",
  934. "name": "获取群员资料",
  935. "headers": []
  936. }
  937. },
  938. {
  939. "entity": {
  940. "type": "Request",
  941. "method": {
  942. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.1",
  943. "name": "GET"
  944. },
  945. "body": {
  946. "formBody": {
  947. "overrideContentType": true,
  948. "encoding": "application/x-www-form-urlencoded",
  949. "items": []
  950. },
  951. "bodyType": "Text"
  952. },
  953. "uri": {
  954. "query": {
  955. "delimiter": "&",
  956. "items": [
  957. {
  958. "enabled": true,
  959. "name": "sessionKey",
  960. "value": "${session}"
  961. },
  962. {
  963. "enabled": true,
  964. "name": "target",
  965. "value": "123456789"
  966. }
  967. ]
  968. },
  969. "host": "${host}",
  970. "path": "/memberList"
  971. },
  972. "id": "7df27fbe-1ef9-460e-aef1-418dd7454b9e",
  973. "name": "获取群成员列表",
  974. "headers": []
  975. }
  976. },
  977. {
  978. "entity": {
  979. "type": "Request",
  980. "method": {
  981. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.1",
  982. "name": "GET"
  983. },
  984. "body": {
  985. "formBody": {
  986. "overrideContentType": true,
  987. "encoding": "application/x-www-form-urlencoded",
  988. "items": []
  989. },
  990. "bodyType": "Text"
  991. },
  992. "uri": {
  993. "query": {
  994. "delimiter": "&",
  995. "items": [
  996. {
  997. "enabled": true,
  998. "name": "sessionKey",
  999. "value": "${session}"
  1000. },
  1001. {
  1002. "enabled": true,
  1003. "name": "target",
  1004. "value": "123456789"
  1005. }
  1006. ]
  1007. },
  1008. "host": "${host}",
  1009. "path": "/groupConfig"
  1010. },
  1011. "id": "fc2d806c-570a-43af-af62-eba4e67db58f",
  1012. "name": "获取群设置",
  1013. "headers": []
  1014. }
  1015. },
  1016. {
  1017. "entity": {
  1018. "type": "Request",
  1019. "method": {
  1020. "requestBody": true,
  1021. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.3",
  1022. "name": "POST"
  1023. },
  1024. "body": {
  1025. "formBody": {
  1026. "overrideContentType": true,
  1027. "encoding": "application/x-www-form-urlencoded",
  1028. "items": []
  1029. },
  1030. "bodyType": "Text",
  1031. "textBody": "{\n \"sessionKey\": \"${session}\",\n \"target\": 123456789\n}"
  1032. },
  1033. "uri": {
  1034. "query": {
  1035. "delimiter": "&",
  1036. "items": []
  1037. },
  1038. "host": "${host}",
  1039. "path": "/quit"
  1040. },
  1041. "id": "350df36e-e7cd-4cec-8001-85e5db80d6dd",
  1042. "name": "退出群聊",
  1043. "headers": [
  1044. {
  1045. "enabled": true,
  1046. "name": "Content-Type",
  1047. "value": "application/json"
  1048. }
  1049. ]
  1050. }
  1051. }
  1052. ]
  1053. },
  1054. {
  1055. "entity": {
  1056. "type": "Service",
  1057. "id": "8c385f1b-9cd1-427e-884a-06798d694637",
  1058. "name": "认证相关"
  1059. },
  1060. "children": [
  1061. {
  1062. "entity": {
  1063. "type": "Request",
  1064. "method": {
  1065. "requestBody": true,
  1066. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.3",
  1067. "name": "POST"
  1068. },
  1069. "body": {
  1070. "formBody": {
  1071. "overrideContentType": true,
  1072. "encoding": "application/x-www-form-urlencoded",
  1073. "items": []
  1074. },
  1075. "bodyType": "Text",
  1076. "textBody": "{\n \"authKey\": \"${authKey}\"\n}"
  1077. },
  1078. "uri": {
  1079. "query": {
  1080. "delimiter": "&",
  1081. "items": []
  1082. },
  1083. "host": "${host}",
  1084. "path": "//auth"
  1085. },
  1086. "id": "96f6db46-dd04-4686-a3cf-c4def044c9fd",
  1087. "name": "开始会话-认证(Authorize)",
  1088. "headers": [
  1089. {
  1090. "enabled": true,
  1091. "name": "Content-Type",
  1092. "value": "application/json"
  1093. }
  1094. ]
  1095. }
  1096. },
  1097. {
  1098. "entity": {
  1099. "type": "Request",
  1100. "method": {
  1101. "requestBody": true,
  1102. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.3",
  1103. "name": "POST"
  1104. },
  1105. "body": {
  1106. "formBody": {
  1107. "overrideContentType": true,
  1108. "encoding": "application/x-www-form-urlencoded",
  1109. "items": []
  1110. },
  1111. "bodyType": "Text",
  1112. "textBody": "{\n \"sessionKey\": \"${session}\",\n \"qq\": ${qq}\n}"
  1113. },
  1114. "uri": {
  1115. "query": {
  1116. "delimiter": "&",
  1117. "items": []
  1118. },
  1119. "host": "${host}",
  1120. "path": "//verify"
  1121. },
  1122. "id": "233ec8e3-5de3-48c2-ad73-1975ce9ec164",
  1123. "name": "校验会话",
  1124. "headers": [
  1125. {
  1126. "enabled": true,
  1127. "name": "Content-Type",
  1128. "value": "application/json"
  1129. }
  1130. ]
  1131. }
  1132. },
  1133. {
  1134. "entity": {
  1135. "type": "Request",
  1136. "method": {
  1137. "requestBody": true,
  1138. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.3",
  1139. "name": "POST"
  1140. },
  1141. "body": {
  1142. "formBody": {
  1143. "overrideContentType": true,
  1144. "encoding": "application/x-www-form-urlencoded",
  1145. "items": []
  1146. },
  1147. "bodyType": "Text",
  1148. "textBody": "{\n \"sessionKey\": \"${session}\",\n \"qq\": ${\n qq\n}\n}"
  1149. },
  1150. "uri": {
  1151. "query": {
  1152. "delimiter": "&",
  1153. "items": []
  1154. },
  1155. "host": "${host}",
  1156. "path": "/release"
  1157. },
  1158. "id": "c1322235-1168-43e0-a260-e89091156012",
  1159. "name": "释放会话",
  1160. "headers": [
  1161. {
  1162. "enabled": true,
  1163. "name": "Content-Type",
  1164. "value": "application/json"
  1165. }
  1166. ]
  1167. }
  1168. }
  1169. ]
  1170. },
  1171. {
  1172. "entity": {
  1173. "type": "Service",
  1174. "id": "c1c2f7c0-8f6f-46ba-843e-3f6934d708b3",
  1175. "name": "配置相关"
  1176. },
  1177. "children": [
  1178. {
  1179. "entity": {
  1180. "type": "Request",
  1181. "method": {
  1182. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.1",
  1183. "name": "GET"
  1184. },
  1185. "body": {
  1186. "formBody": {
  1187. "overrideContentType": true,
  1188. "encoding": "application/x-www-form-urlencoded",
  1189. "items": []
  1190. },
  1191. "bodyType": "Text"
  1192. },
  1193. "uri": {
  1194. "query": {
  1195. "delimiter": "&",
  1196. "items": [
  1197. {
  1198. "enabled": true,
  1199. "name": "sessionKey",
  1200. "value": "${session}"
  1201. }
  1202. ]
  1203. },
  1204. "host": "${host}",
  1205. "path": "/config"
  1206. },
  1207. "id": "f25756b8-e64d-46ed-9b1d-c4a15e63014b",
  1208. "name": "获取指定Session的配置",
  1209. "headers": []
  1210. }
  1211. },
  1212. {
  1213. "entity": {
  1214. "type": "Request",
  1215. "method": {
  1216. "requestBody": true,
  1217. "link": "http://tools.ietf.org/html/rfc7231#section-4.3.3",
  1218. "name": "POST"
  1219. },
  1220. "body": {
  1221. "formBody": {
  1222. "overrideContentType": true,
  1223. "encoding": "application/x-www-form-urlencoded",
  1224. "items": []
  1225. },
  1226. "bodyType": "Text",
  1227. "textBody": "{\n \"sessionKey\": \"${session}\",\n \"cacheSize\": 4096,\n \"enableWebsocket\": true\n}"
  1228. },
  1229. "uri": {
  1230. "query": {
  1231. "delimiter": "&",
  1232. "items": []
  1233. },
  1234. "host": "${host}",
  1235. "path": "/config"
  1236. },
  1237. "id": "e6da57ef-772a-4dd0-9f91-5134bce5c028",
  1238. "name": "设置指定Session的配置",
  1239. "headers": [
  1240. {
  1241. "enabled": true,
  1242. "name": "Content-Type",
  1243. "value": "application/json"
  1244. }
  1245. ]
  1246. }
  1247. }
  1248. ]
  1249. }
  1250. ]
  1251. }
  1252. ]
  1253. }