API Docs
Home Back
The root for all API access is /api/v1
POST
- /like/add
- /like/remove
Likes
- /account/get/feed
- /account/get/posts
- /account/get/following
Account
- /posts/get/user
- /posts/get/post
- /posts/get/latest
- /posts/get/search
- /posts/get/tag
Posts
API Documentation
This endpoint is used to like a post using your API key
Example:
type: POST
to: /api/v1/like/add
apikey: true
body:
{
"apikey": "21b4897e-25f1-11eb-adc1-0242ac120002",
"postid": "5faaeeb4fdd2420024c4d70b"
}
example response:
{
"success": true,
"message": ""
}
This endpoint is used to un-like a post using your API key
Example:
type: POST
to: /api/v1/like/remove
apikey: true
body:
{
"apikey": "21b4897e-25f1-11eb-adc1-0242ac120002",
"postid": "5faaeeb4fdd2420024c4d70b"
}
example response:
{
"success": true,
"message": ""
}
This endpoint is used to get an array of who a user is following.
Example:
type: POST
to: /api/v1/account/get/following
apikey: false
body:
{
"userid": "5faaeeb4fdd2420024c4d70b"
}
example response:
{
"success": true,
"following": ["5faaeeb4fdd2420024c4d70b"] // an array of user IDs
}
This endpoint allows you to get your 40 feed items.
Example:
type: POST
to: /api/v1/account/get/feed
apikey: true
body:
{
"apikey": "21b4897e-25f1-11eb-adc1-0242ac120002",
}
example response:
{
"success": true,
"feedtitles": ["Someone commented on your post!"] // title of feed items
"feedlinks": ["/s/5faaeeb4fdd2420024c4d70b"] // feed links
"feedtext": ["I agree so much"] // feed body
}
This endpoint allows you to get up to 20 posts off a user by their id.
Each page returns 20 results. Page 2 will return results 41-60, page 0 will return results 1-20, etc.
Example:
type: POST
to: /api/v1/account/get/posts
apikey: false
body:
{
"userid": "5faaeeb4fdd2420024c4d70b",
"page": 3
}
example response:
{
"success": true,
"posts": ["5faaeeb4fdd2420024c4d70b"], // upto 20 post ids
"nextpage": false // true if their is enough results for another page false if not
}