Skip to content

Commit e1c9fb3

Browse files
author
haoxiuwen
committed
Remove -L from REST APIs
1 parent 74a6d61 commit e1c9fb3

15 files changed

+61
-61
lines changed

docs/document/server-side/account_system.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1525,7 +1525,7 @@ GET https://{host}/{org_name}/{app_name}/users/{username}/resources
15251525

15261526
```shell
15271527
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
1528-
curl -L -X GET 'http://XXXX/XXXX/XXXX/users/XXXX/resources' \
1528+
curl -X GET 'http://XXXX/XXXX/XXXX/users/XXXX/resources' \
15291529
-H 'Accept: application/json' \
15301530
-H 'Authorization: Bearer <YourAppToken>'
15311531
```

docs/document/server-side/chatroom_manage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ GET https://{host}/{org_name}/{app_name}/chatrooms?limit={N}&cursor={cursor}
123123
```shell
124124
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
125125

126-
curl -L -X GET 'https://XXXX/XXXX/XXXX/chatrooms?limit=10' \
126+
curl -X GET 'https://XXXX/XXXX/XXXX/chatrooms?limit=10' \
127127
--header 'Authorization: Bearer <YourAppToken>'
128128
```
129129

docs/document/server-side/chatroom_superadmin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ DELETE https://{host}/{org_name}/{app_name}/chatrooms/super_admin/{superAdmin}
298298
```shell
299299
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
300300

301-
curl -L -X DELETE 'https://XXXX/XXXX/XXXX/chatrooms/super_admin/XXXX'
301+
curl -X DELETE 'https://XXXX/XXXX/XXXX/chatrooms/super_admin/XXXX'
302302
--header 'Authorization: Bearer <YourAppToken>'
303303
```
304304

docs/document/server-side/conversation_delete.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ DELETE https://{host}/{org_name}/{app_name}/users/{username}/user_channel
7979
```shell
8080
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
8181

82-
curl -L -X DELETE 'https://XXXX/XXXX/XXXX/users/u1/user_channel' \
82+
curl -X DELETE 'https://XXXX/XXXX/XXXX/users/u1/user_channel' \
8383
-H 'Authorization: Bearer <YourAppToken>' \
8484
-H 'Content-Type: application/json' \
8585
-H 'Accept: application/json' \

docs/document/server-side/group_manage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ GET https://{host}/{org_name}/{app_name}/chatgroups/user/{username}?pagesize={}&
642642

643643
```shell
644644
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
645-
curl -L -X GET 'http://XXXX/XXXX/XXXX/chatgroups/user/XXXX' \
645+
curl -X GET 'http://XXXX/XXXX/XXXX/chatgroups/user/XXXX' \
646646
-H 'Authorization: Bearer <YourAppToken>'
647647
```
648648

docs/document/server-side/group_member_attribute.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ PUT https://{host}/{org_name}/{app_name}/metadata/chatgroup/{group_id}/user/{use
101101

102102
```shell
103103
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
104-
curl -L -X PUT 'https://XXXX/XXXX/XXXX/metadata/chatgroup/XXXX/user/XXXX' \
104+
curl -X PUT 'https://XXXX/XXXX/XXXX/metadata/chatgroup/XXXX/user/XXXX' \
105105
-H 'Content-Type: application/json' \
106106
-H 'Accept: application/json' \
107107
-H 'Authorization: Bearer <YourAppToken>' \
@@ -193,7 +193,7 @@ PUT https://{host}/{org_name}/{app_name}/metadata/chatgroup/{group_id}/users/bat
193193

194194
```shell
195195
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
196-
curl -L -X PUT 'http://XXXX/XXXX/XXXX/metadata/chatgroup/XXXX/users/batch' \
196+
curl -X PUT 'http://XXXX/XXXX/XXXX/metadata/chatgroup/XXXX/users/batch' \
197197
-H 'Content-Type: application/json' \
198198
-H 'Accept: application/json' \
199199
-H 'Authorization: Bearer <YourAppToken>' \
@@ -305,7 +305,7 @@ GET https://{host}/{org_name}/{app_name}/metadata/chatgroup/{group_id}/user/{use
305305

306306
```shell
307307
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
308-
curl -L -X GET 'https://a1-hsb.easemob.com/easemob-demo/testy/metadata/chatgroup/207059303858177/user/test2' \
308+
curl -X GET 'https://a1-hsb.easemob.com/easemob-demo/testy/metadata/chatgroup/207059303858177/user/test2' \
309309
-H 'Content-Type: application/json' \
310310
-H 'Accept: application/json'
311311
-H 'Authorization: Bearer YWMtozZwfsFFEe2oQTE6aob5eQAAAAAAAAAAAAAAAAAAAAExCXvf5bRGAJBgXNYFJVQ9AQMAAAGG2MUClwBPGgDsI1GYg1QtapTEdGyrm29Eu6L8qx60lDZ9TJRDOQjEsw' \
@@ -389,7 +389,7 @@ POST https://{host}/{org_name}/{app_name}/metadata/chatgroup/{group_id}/get
389389

390390
```shell
391391
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
392-
curl -L -X POST 'https://XXXX/XXXX/XXXX/metadata/chatgroup/XXXX/get'\
392+
curl -X POST 'https://XXXX/XXXX/XXXX/metadata/chatgroup/XXXX/get'\
393393
-H'Content-Type: application/json'\
394394
-H'Accept: application/json'\
395395
-H'Authorization: Bearer <YourAppToken>'\

docs/document/server-side/message_attachment_storage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ POST https://{host}/{org_name}/{app_name}/users/{username}/chatfiles/lifetime
8383

8484
```shell
8585
# 将 <YourUserToken> 替换为你的用户 Token
86-
curl -X PUT -L "http://localhost/{org}/{app}/users/{username}/chatfiles/lifetime" \
86+
curl -X PUT "http://localhost/{org}/{app}/users/{username}/chatfiles/lifetime" \
8787
-H "Content-Type: application/json" \
8888
-H "Authorization: Bearer <YourUserToken>" \
8989
-d '{

docs/document/server-side/message_broadcast.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ POST https://{host}/{org_name}/{app_name}/messages/broadcast
7878
```bash
7979
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
8080

81-
curl -L 'https://XXXX/XXXX/XXXX/messages/broadcast' \
81+
curl -X POST 'https://XXXX/XXXX/XXXX/messages/broadcast' \
8282
-H 'Content-Type: application/json' \
8383
-H 'Authorization: Bearer <YourAppToken>' \
8484
-d '{
@@ -100,7 +100,7 @@ curl -L 'https://XXXX/XXXX/XXXX/messages/broadcast' \
100100
```bash
101101
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
102102

103-
curl -L 'https://XXXX/XXXX/XXXX/messages/broadcast' \
103+
curl -X POST 'https://XXXX/XXXX/XXXX/messages/broadcast' \
104104
-H 'Content-Type: application/json' \
105105
-H 'Authorization: Bearer <YourAppToken>' \
106106
-d '{
@@ -128,7 +128,7 @@ curl -L 'https://XXXX/XXXX/XXXX/messages/broadcast' \
128128
```bash
129129
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
130130

131-
curl -L 'https://XXXX/XXXX/XXXX/messages/broadcast' \
131+
curl -X POST 'https://XXXX/XXXX/XXXX/messages/broadcast' \
132132
-H 'Content-Type: application/json' \
133133
-H 'Authorization: Bearer <YourAppToken>' \
134134
-d '{
@@ -153,7 +153,7 @@ curl -L 'https://XXXX/XXXX/XXXX/messages/broadcast' \
153153
```bash
154154
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
155155

156-
curl -L 'https://XXXX/XXXX/XXXX/messages/broadcast' \
156+
curl -X POST 'https://XXXX/XXXX/XXXX/messages/broadcast' \
157157
-H 'Content-Type: application/json' \
158158
-H 'Authorization: Bearer <YourAppToken>' \
159159
-d '{
@@ -181,7 +181,7 @@ curl -L 'https://XXXX/XXXX/XXXX/messages/broadcast' \
181181
```bash
182182
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
183183

184-
curl -L 'https://XXXX/XXXX/XXXX/messages/broadcast' \
184+
curl -X POST 'https://XXXX/XXXX/XXXX/messages/broadcast' \
185185
-H 'Content-Type: application/json' \
186186
-H 'Authorization: Bearer <YourAppToken>' \
187187
-d '{
@@ -205,7 +205,7 @@ curl -L 'https://XXXX/XXXX/XXXX/messages/broadcast' \
205205
```bash
206206
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
207207

208-
curl -L 'https://XXXX/XXXX/XXXX/messages/broadcast' \
208+
curl -X POST 'https://XXXX/XXXX/XXXX/messages/broadcast' \
209209
-H 'Content-Type: application/json' \
210210
-H 'Authorization: Bearer <YourAppToken>' \
211211
-d '{
@@ -229,7 +229,7 @@ curl -L 'https://XXXX/XXXX/XXXX/messages/broadcast' \
229229
```bash
230230
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
231231

232-
curl -L 'https://XXXX/XXXX/XXXX/messages/broadcast' \
232+
curl -X POST 'https://XXXX/XXXX/XXXX/messages/broadcast' \
233233
-H 'Content-Type: application/json' \
234234
-H 'Authorization: Bearer <YourAppToken>' \
235235
-d '{
@@ -251,7 +251,7 @@ curl -L 'https://XXXX/XXXX/XXXX/messages/broadcast' \
251251
```bash
252252
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
253253

254-
curl -L 'https://XXXX/XXXX/XXXX/messages/broadcast' \
254+
curl -X POST 'https://XXXX/XXXX/XXXX/messages/broadcast' \
255255
-H 'Content-Type: application/json' \
256256
-H 'Authorization: Bearer <YourAppToken>' \
257257
-d '{
@@ -373,7 +373,7 @@ POST https://{host}/{org_name}/{app_name}/messages/users/broadcast
373373
```bash
374374
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
375375

376-
curl -L 'https://XXXX/XXXX/XXXX/messages/users/broadcast' \
376+
curl -X POST 'https://XXXX/XXXX/XXXX/messages/users/broadcast' \
377377
-H 'Content-Type: application/json' \
378378
-H 'Authorization: Bearer <YourAppToken>' \
379379
-d '{
@@ -393,7 +393,7 @@ curl -L 'https://XXXX/XXXX/XXXX/messages/users/broadcast' \
393393
```bash
394394
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
395395

396-
curl -L 'https://XXXX/XXXX/XXXX/messages/users/broadcast' \
396+
curl -X POST 'https://XXXX/XXXX/XXXX/messages/users/broadcast' \
397397
-H 'Content-Type: application/json' \
398398
-H 'Authorization: Bearer <YourAppToken>' \
399399
-d '{
@@ -419,7 +419,7 @@ curl -L 'https://XXXX/XXXX/XXXX/messages/users/broadcast' \
419419
```bash
420420
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
421421

422-
curl -L 'https://XXXX/XXXX/XXXX/messages/users/broadcast' \
422+
curl -X POST 'https://XXXX/XXXX/XXXX/messages/users/broadcast' \
423423
-H 'Content-Type: application/json' \
424424
-H 'Authorization: Bearer <YourAppToken>' \
425425
-d '{
@@ -442,7 +442,7 @@ curl -L 'https://XXXX/XXXX/XXXX/messages/users/broadcast' \
442442
```bash
443443
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
444444

445-
curl -L 'https://XXXX/XXXX/XXXX/messages/users/broadcast' \
445+
curl -X POST 'https://XXXX/XXXX/XXXX/messages/users/broadcast' \
446446
-H 'Content-Type: application/json' \
447447
-H 'Authorization: Bearer <YourAppToken>' \
448448
-d '{
@@ -467,7 +467,7 @@ curl -L 'https://XXXX/XXXX/XXXX/messages/users/broadcast' \
467467
```bash
468468
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
469469

470-
curl -L 'https://XXXX/XXXX/XXXX/messages/users/broadcast' \
470+
curl -X POST 'https://XXXX/XXXX/XXXX/messages/users/broadcast' \
471471
-H 'Content-Type: application/json' \
472472
-H 'Authorization: Bearer <YourAppToken>' \
473473
-d '{
@@ -489,7 +489,7 @@ curl -L 'https://XXXX/XXXX/XXXX/messages/users/broadcast' \
489489
```bash
490490
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
491491

492-
curl -L 'https://XXXX/XXXX/XXXX/messages/users/broadcast' \
492+
curl -X POST 'https://XXXX/XXXX/XXXX/messages/users/broadcast' \
493493
-H 'Content-Type: application/json' \
494494
-H 'Authorization: Bearer <YourAppToken>' \
495495
-d '{
@@ -511,7 +511,7 @@ curl -L 'https://XXXX/XXXX/XXXX/messages/users/broadcast' \
511511
```bash
512512
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
513513

514-
curl -L 'https://XXXX/XXXX/XXXX/messages/users/broadcast' \
514+
curl -X POST 'https://XXXX/XXXX/XXXX/messages/users/broadcast' \
515515
-H 'Content-Type: application/json' \
516516
-H 'Authorization: Bearer <YourAppToken>' \
517517
-d '{
@@ -531,7 +531,7 @@ curl -L 'https://XXXX/XXXX/XXXX/messages/users/broadcast' \
531531
```bash
532532
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
533533

534-
curl -L 'https://XXXX/XXXX/XXXX/messages/users/broadcast' \
534+
curl -X POST 'https://XXXX/XXXX/XXXX/messages/users/broadcast' \
535535
-H 'Content-Type: application/json' \
536536
-H 'Authorization: Bearer <YourAppToken>' \
537537
-d '{
@@ -659,7 +659,7 @@ POST https://{host}/{org_name}/{app_name}/messages/chatrooms/broadcast
659659
```bash
660660
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
661661

662-
curl -L 'https://XXXX/XXXX/XXXX/messages/chatrooms/broadcast' \
662+
curl -X POST 'https://XXXX/XXXX/XXXX/messages/chatrooms/broadcast' \
663663
-H 'Content-Type: application/json' \
664664
-H 'Authorization: Bearer <YourAppToken>' \
665665
-d '{
@@ -680,7 +680,7 @@ curl -L 'https://XXXX/XXXX/XXXX/messages/chatrooms/broadcast' \
680680
```bash
681681
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
682682

683-
curl -L 'https://XXXX/XXXX/XXXX/messages/chatrooms/broadcast' \
683+
curl -X POST 'https://XXXX/XXXX/XXXX/messages/chatrooms/broadcast' \
684684
-H 'Content-Type: application/json' \
685685
-H 'Authorization: Bearer <YourAppToken>' \
686686
-d '{
@@ -707,7 +707,7 @@ curl -L 'https://XXXX/XXXX/XXXX/messages/chatrooms/broadcast' \
707707
```bash
708708
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
709709

710-
curl -L 'https://XXXX/XXXX/XXXX/messages/chatrooms/broadcast' \
710+
curl -X POST 'https://XXXX/XXXX/XXXX/messages/chatrooms/broadcast' \
711711
-H 'Content-Type: application/json' \
712712
-H 'Authorization: Bearer <YourAppToken>' \
713713
-d '{
@@ -731,7 +731,7 @@ curl -L 'https://XXXX/XXXX/XXXX/messages/chatrooms/broadcast' \
731731
```bash
732732
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
733733

734-
curl -L 'https://XXXX/XXXX/XXXX/messages/chatrooms/broadcast' \
734+
curl -X POST 'https://XXXX/XXXX/XXXX/messages/chatrooms/broadcast' \
735735
-H 'Content-Type: application/json' \
736736
-H 'Authorization: Bearer <YourAppToken>' \
737737
-d '{
@@ -757,7 +757,7 @@ curl -L 'https://XXXX/XXXX/XXXX/messages/chatrooms/broadcast' \
757757
```bash
758758
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
759759

760-
curl -L 'https://XXXX/XXXX/XXXX/messages/chatrooms/broadcast' \
760+
curl -X POST 'https://XXXX/XXXX/XXXX/messages/chatrooms/broadcast' \
761761
-H 'Content-Type: application/json' \
762762
-H 'Authorization: Bearer <YourAppToken>' \
763763
-d '{
@@ -780,7 +780,7 @@ curl -L 'https://XXXX/XXXX/XXXX/messages/chatrooms/broadcast' \
780780
```bash
781781
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
782782

783-
curl -L 'https://XXXX/XXXX/XXXX/messages/chatrooms/broadcast' \
783+
curl -X POST 'https://XXXX/XXXX/XXXX/messages/chatrooms/broadcast' \
784784
-H 'Content-Type: application/json' \
785785
-H 'Authorization: Bearer <YourAppToken>' \
786786
-d '{
@@ -803,7 +803,7 @@ curl -L 'https://XXXX/XXXX/XXXX/messages/chatrooms/broadcast' \
803803
```bash
804804
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
805805

806-
curl -L 'https://XXXX/XXXX/XXXX/messages/chatrooms/broadcast' \
806+
curl -X POST 'https://XXXX/XXXX/XXXX/messages/chatrooms/broadcast' \
807807
-H 'Content-Type: application/json' \
808808
-H 'Authorization: Bearer <YourAppToken>' \
809809
-d '{
@@ -824,7 +824,7 @@ curl -L 'https://XXXX/XXXX/XXXX/messages/chatrooms/broadcast' \
824824
```bash
825825
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
826826

827-
curl -L 'https://XXXX/XXXX/XXXX/messages/chatrooms/broadcast' \
827+
curl -X POST 'https://XXXX/XXXX/XXXX/messages/chatrooms/broadcast' \
828828
-H 'Content-Type: application/json' \
829829
-H 'Authorization: Bearer <YourAppToken>' \
830830
-d '{

docs/document/server-side/message_delete.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ DELETE https://{host}/{org_name}/{app_name}/rest/message/roaming/chat/user/{user
109109

110110
```shell
111111
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
112-
curl -L -X DELETE 'https://XXXX/XXXX/XXXX/rest/message/roaming/chat/user/XXXX?userId=XXXX&msgIdList=XXXX&isNotify=false' \
112+
curl -X DELETE 'https://XXXX/XXXX/XXXX/rest/message/roaming/chat/user/XXXX?userId=XXXX&msgIdList=XXXX&isNotify=false' \
113113
-H 'Authorization: Bearer <YourAppToken>' \
114114
-H 'Content-Type: application/json' \
115115
-H 'Accept: application/json'
@@ -199,7 +199,7 @@ DELETE https://{host}/{org_name}/{app_name}/rest/message/roaming/group/user/{use
199199

200200
```shell
201201
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
202-
curl -L -X DELETE 'https://XXXX/XXXX/XXXX/rest/message/roaming/group/user/XXXX?groupId=XXXX&msgIdList=XXXXisNotify=false' \
202+
curl -X DELETE 'https://XXXX/XXXX/XXXX/rest/message/roaming/group/user/XXXX?groupId=XXXX&msgIdList=XXXXisNotify=false' \
203203
-H 'Authorization: Bearer <YourAppToken>' \
204204
-H 'Content-Type: application/json' \
205205
-H 'Accept: application/json'
@@ -275,7 +275,7 @@ POST https://{host}/{org_name}/{app_name}/rest/message/roaming/user/{userId}/del
275275

276276
```shell
277277
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
278-
curl -L -X POST 'https://XXXX/XXXX/XXXX/rest/message/roaming/user/XXXX/delete/all' \
278+
curl -X POST 'https://XXXX/XXXX/XXXX/rest/message/roaming/user/XXXX/delete/all' \
279279
-H 'Authorization: Bearer <YourAppToken>' \
280280
-H 'Content-Type: Content-Type: application/json' \
281281
-H 'Accept: Accept: application/json'
@@ -362,7 +362,7 @@ DELETE https://{host}/{org_name}/{app_name}/rest/message/roaming/chat/user/{user
362362

363363
```shell
364364
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
365-
curl -L -X DELETE 'http://XXXX/XXXX/XXXX/rest/message/roaming/chat/user/XXXX/time?userId=XXXX&delTime=1659014868000&isNotify=false' \
365+
curl -X DELETE 'http://XXXX/XXXX/XXXX/rest/message/roaming/chat/user/XXXX/time?userId=XXXX&delTime=1659014868000&isNotify=false' \
366366
-H 'Authorization: Bearer <YourAppToken>'
367367
```
368368

@@ -447,7 +447,7 @@ DELETE https://{host}/{org_name}/{app_name}/rest/message/roaming/group/user/{use
447447

448448
```shell
449449
# 将 <YourAppToken> 替换为你在服务端生成的 App Token
450-
curl -L -X DELETE 'http://XXXX/XXXX/XXXX/rest/message/roaming/group/user/XXXX/time?groupId=XXXX&delTime=1659014868000&isNotify=false' \
450+
curl -X DELETE 'http://XXXX/XXXX/XXXX/rest/message/roaming/group/user/XXXX/time?groupId=XXXX&delTime=1659014868000&isNotify=false' \
451451
-H 'Authorization: Bearer <YourAppToken>'
452452
```
453453

0 commit comments

Comments
 (0)