-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmessage.http
More file actions
79 lines (64 loc) · 1.42 KB
/
message.http
File metadata and controls
79 lines (64 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# 消息 API 测试脚本
@baseUrl = https://physics-api-cn.turtlesim.com
@token = your_api_token_here
### 获取消息
POST {{baseUrl}}/Messages/GetMessage
Content-Type: application/json
x-API-Token: {{token}}
{
"MessageID": "message_123"
}
### 处理邀请
POST {{baseUrl}}/Messages/HandleInvitation
Content-Type: application/json
x-API-Token: {{token}}
{
"MessageID": "message_123"
}
### 获取消息列表
POST {{baseUrl}}/Messages/GetMessages
Content-Type: application/json
x-API-Token: {{token}}
{
"CategoryID": 0,
"Skip": 0,
"Take": 20
}
### 移除评论
POST {{baseUrl}}/Messages/RemoveComment
Content-Type: application/json
x-API-Token: {{token}}
{
"CommentID": "comment_123",
"TargetType": "Experiment"
}
### 发布评论
POST {{baseUrl}}/Messages/PostComment
Content-Type: application/json
x-API-Token: {{token}}
{
"TargetID": "content_123",
"TargetType": "Experiment",
"Content": "这是一个测试评论",
"Language": "Chinese"
}
### 获取评论列表
POST {{baseUrl}}/Messages/GetComments
Content-Type: application/json
x-API-Token: {{token}}
{
"TargetID": "content_123",
"TargetType": "Experiment",
"Skip": 0,
"Take": 20
}
### 发送批量消息
POST {{baseUrl}}/Messages/SendMessages
Content-Type: application/json
x-API-Token: {{token}}
{
"TargetID": ["user_123", "user_456"],
"Category": "Experiment",
"SummaryID": ["summary_123", "summary_456"],
"TemplateID": "template_123"
}