QuackDuck
Programmer
Contents
Introduction
First Topic (API to access most of Revival)
Second Topic (API to access Revival Forums)
Finishing Off
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'
'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'
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!