Join the server community today!
Server IP: play-ac.net

AwardCraft API

Discussion in 'Off Topic' started by Mister_Fix, Nov 19, 2017.

  1. Mister_Fix Owner

    Joined:
    Oct 20, 2017
    Messages:
    30
    Likes Received:
    15
    This thread will be documenting the API for AwardCraft.
    I am maintaining the API so any bugs or feature requests should come to me.
    If you want to get my attention, mention me in your comment.
    Endpoints
    Get player groups:
    Code:
    [GET] http://api.awardcraftmc.net:81/api.php?action=get_player_groups&uuid=<player uuid>
    This will return a list of groups the given UUID is currently in.
    The groups are ordered by ranks in an ascending order, meaning the highest rank is at the top and the lowest is at the bottom.
    The default group is ignored, meaning if the given UUID is only in the default group, no groups will be returned.

    Get player votes
    Code:
    [GET] http://api.awardcraftmc.net:81/api.php?action=get_player_votes&uuid=<player uuid>
    This will return the player's all time, daily, weekly and monthly votes.

    Get player prefix
    Code:
    [GET] http://api.awardcraftmc.net:81/api.php?action=get_player_prefix&uuid=<player uuid>
    If then given UUID hold a custom prefix, this will return it, otherwise it will throw an error.

    You can also use a username instead of a UUID, using username=<username> instead of uuid=<uuid>
     
    crypt3r likes this.

Users Viewing Thread (Users: 0, Guests: 0)