Skip to content
This repository was archived by the owner on Aug 5, 2019. It is now read-only.

Commit 9fcb4ac

Browse files
authored
Create Example-API.md
1 parent 7246c57 commit 9fcb4ac

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

Example-API.md

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Example API Request & Response Format
2+
3+
## Feed Actions
4+
5+
### Get Feed
6+
- Usage: xxxxxxxx
7+
- Endpoint: api.uclcssa.cn/feed/get
8+
9+
#### Querey Parameters
10+
11+
| Parameters | Example | Required | Remarks |
12+
| ----------------- |:----------------- | :-------- |:----------------------------------------------- |
13+
| userid | 2453719439374 | Yes | iFanr ID |
14+
| poststart | 247 | Yes | |
15+
| postend | 219 | Yes | |
16+
| space | 2 (E.g. Accom) | No | Specify to get post only in that space |
17+
18+
19+
20+
#### Example response
21+
22+
```
23+
{
24+
status: 'OK',
25+
posts: [{
26+
avatar: "https://avatar.url",
27+
comments: [{user_id:..., content:..., time:..., user:..., coment_id:...}],
28+
content: "post content",
29+
images: [...],
30+
liked: false,
31+
likes: 0,
32+
post_id: 350,
33+
spacename: "房屋出租",
34+
time: "...",
35+
user: "username",
36+
user_id: "xxxx"
37+
},
38+
...
39+
]
40+
}
41+
```

0 commit comments

Comments
 (0)