Welcome to Revival Servers!

Welcome to Revival. The forums is an important aspect of joining the Community. This is where you can meet other community members, apply for staff, provide suggestions and participate in many other activities.

Revival API

QuackDuck

Programmer
Joined
Jun 6, 2017
Messages
1,111
Points
1,010,101,065
Age
23
Location
United Kingdom
Contents
Introduction
First Topic (API to access most of Revival)
Second Topic (API to access Revival Forums)

Finishing Off

Introduction
I'm a bigggggg fan of open source and transparency. If things aren't transparent I hate it. So I always try and be as transparent as possible in my life. In my career open source is a term that is used a lot and I think it plays a major role in being transparent.

I've heard many complaints from the staff team regarding that the credit system is too secretive and they can never seem to get it to work. Many times the credit system doesn't actually work and its my fault, however due to nobody knowing how it works it leads people to believe it's their own fault yet it's not.

So now to stop with babbling and get to the guts. This is primarily for developers who want to help Revival and or actually get a bit more insight to how things work in the back.

First Topic
I wrote a restful api that will enable you to access https://revivalservers.com/tools/api.php

This api takes GET requests only and will refuse anything else:

'type' should be sent first in the request with either 'staff' or 'user'.
currently staff is only functioning.

If you set 'type' to 'staff' then you will additionally need to supply the staff members steamid64 id. It will then return something similar too: https://revivalservers.com/tools/api.php?type=staff&steamid64=76561198045460541

it would be cool if anybody actually did anything with this, however the main purpose is for people who have the knowledge to follow through on what I've discussed so far can actually verify and understand our system(s) more.

Second Topic
Additionally if anybody is more interested in accessing the forums in a more in-depth way then read below.

We actually have an API that allows you to access the forums in a more in-depth way. You can access it at
https://revivalservers.com/api.php
'authenticate' => 'public',
'createalert' => 'api_key',
'createconversation' => 'authenticated',
'createconversationreply' => 'authenticated',
'createpost' => 'authenticated',
'createprofilepost' => 'authenticated',
'createprofilepostcomment' => 'authenticated',
'createthread' => 'authenticated',
'deletepost' => 'authenticated',
'deleteuser' => 'authenticated',
'downgradeuser' => 'api_key',
'editpost' => 'authenticated',
'editthread' => 'authenticated',
'edituser' => 'api_key',
'getactions' => 'public',
'getaddon' => 'administrator',
'getaddons' => 'administrator',
'getalerts' => 'private',
'getavatar' => 'public',
'getconversation' => 'private',
'getconversations' => 'private',
'getgroup' => 'public',
'getnode' => 'public',
'getnodes' => 'public',
'getpost' => 'public',
'getposts' => 'public',
'getprofilepost' => 'authenticated',
'getprofileposts' => 'authenticated',
'getresource' => 'administrator',
'getresources' => 'administrator',
'getresourcecategories' => 'administrator',
'getstats' => 'public',
'getthread' => 'public',
'getthreads' => 'public',
'getuser' => 'authenticated',
'getusers' => 'public',
'getuserupgrade' => 'api_key',
'getuserupgrades' => 'api_key',
'login' => 'public',
'register' => 'api_key',
'search' => 'public',
'upgradeuser' => 'api_key'
**accepts POST and GET requests, it doesn't care.**

Running through the spoiler real quick 'public' means anybody can access that call, 'api_key' means basically only I can perform that action, 'authenticated' means you can call it but only on yourself and you must provide identity first (by logging in via the API - more adept users should attempt this only), 'administrator' means only forum admins can perform that action (again they must log in meaning they must be adept to bother with this proccess).

However giving it a quick glance you can see exactly what you can do, you can easily pull user posts into your own site, or even straight into an excel document if you'd like.

Finishing Off
This should hopefully clear the air about how our systems work, and just for fun I made it super simple to see the information we actually hold about you.


if you read the first topic then you would of saw this link (https://revivalservers.com/tools/api.php?type=staff&steamid64=76561198045460541)

If you look at the URL and change the steamid to yours it will return all (non-sensitive) information we have on you, excluding forums!
 

SPR12314

Part Forum Staff, Part.....Something else
Joined
Nov 25, 2017
Messages
278
Points
43
Age
24
Location
Out of this world!
so authenticated is forum mod +,api_key is forum head admin+, and administrator is BoD+?
 

QuackDuck

Programmer
Joined
Jun 6, 2017
Messages
1,111
Points
1,010,101,065
Age
23
Location
United Kingdom
so authenticated is forum mod +,api_key is forum head admin+, and administrator is BoD+?

no, authenticated is a user who has logged in

API key is a key for me and will

Administrator is for forum admins who login using authenticated but also have acp
 

SPR12314

Part Forum Staff, Part.....Something else
Joined
Nov 25, 2017
Messages
278
Points
43
Age
24
Location
Out of this world!
no, authenticated is a user who has logged in

API key is a key for me and will

Administrator is for forum admins who login using authenticated but also have acp
Reee, I was thinking public was people that were already verified
 

Kai

Too Many Years
Staff Blacklisted
Years of Service
Networking Blacklisted
Joined
Feb 11, 2017
Messages
1,476
Points
148
Age
26
Well, this useful.
 

Gunter

Ex Dev for SCP RP
Joined
Jun 8, 2017
Messages
110
Points
28
Age
23
Location
United States of America
Hey uh... @QuackDuck It says im still superadmin on halo

please dont hurt me daddy ; ;

 
Top