STiBaRC API Documentation

The official API for the STiBaRC social media service


Endpoints

Note: API versions prior to v4 have been discontinued and will no longer work. Please upgrade your application to v4.
All endpoints accept POST and take a Content-Type of application/json
If an endpoint accepts GET as well, it can also take any post body property as a URL parameter.

Table of Contents


Methods


Meta


getannouncement.sjs

Get the current announcement on the site
Allowed methods: GET
Returns:

uploadfile.sjs

Upload a file to the site
Note: Parameters are passed as headers for this method, and the file is uploaded in the post body
Allowed methods: POST
Required headers: Post body: File to be uploaded
Returns:

Authentication


registeruser.sjs

Register a new user to the site
Allowed methods: POST
Required parameters: Optional parameters: Returns:

login.sjs

Log into the site
Allowed methods: POST
Required parameters: Optional parameters: Returns:

logout.sjs

Log out of the site
Allowed methods: POST
Required parameters: Returns:

updatepassword.sjs

Update the user's password
Allowed methods: POST
Required parameters: Optional parameters: Returns:

manage2fa.sjs

Manage two factor authentication on an account
Allowed methods: POST
Required parameters: Optional parameters: Returns:

Manipulating Users


getuser.sjs

Get a user's profile
Allowed methods: GET, POST
Required parameters: Returns:

getprivatedata.sjs

Get a user's private data
Allowed methods: POST
Required parameters: Returns:

editprofile.sjs

Edit a user's profile
Allowed methods: POST
Required parameters: Optional parameters: Returns:

followuser.sjs

Follow a user
Allowed methods: POST
Required parameters: Returns:

Interacting With Posts


getposts.sjs

Get a list of posts in order
Allowed methods: GET, POST
Optional parameters: Returns:

getpost.sjs

Get an individual post
Allowed methods: GET, POST
Required parameters: Returns:

vote.sjs

Vote on a post or comment
Allowed methods: POST
Required parameters: Optional parameters: Returns:

search.sjs

Search posts, comments, and users on the site
Allowed methods: POST
Required parameters: Returns:

Manipulating Posts


newpost.sjs

Make a new post
Allowed methods: POST
Required parameters: Optional parameters: Returns:

postcomment.sjs

Post a new comment on a post
Allowed methods: POST
Required parameters: At least one of the following parameters is required: Returns:

edit.sjs

Edit a post or comment
Allowed methods: POST
Required parameters: Optional parameters: Returns:

Error Codes