API Official discussion and request thread

Discussion in 'Development [Hive API and related]' started by ClankStar1, Dec 26, 2014.

  1. ClankStar

    ClankStar Founder/Owner/Dev Hive Owner

    Joined:
    Feb 22, 2013
    Messages:
    1,169
    Ratings:
    +10,072
    Hey,

    Please use this thread for any general discussion and requests. Be as specific as needed!

    - Clank
    #1
  2. DevRo

    DevRo Regular Bee

    Joined:
    Nov 10, 2014
    Messages:
    33
    Ratings:
    +19
    Here are my suggestions:
    • Maybe API keys to control the request per player? You probably don't want people spamming requests.
    • In the JSON output always include the values that can be false so it doesn't break. Even though it is avoidable i suggest it.
    • Maybe (i can understand if no), a check if a player is banned?
    • Possibly add a session tracking system.
    • If possible add a way to check when the player first joined and when was his last time online.
    If i get more ideas ill add them.
    #2
  3. Nuled

    Nuled The Bees Knees

    Joined:
    Jun 2, 2013
    Messages:
    243
    Ratings:
    +361
    • Authentication token system to allow us to integrate token/credit purchases into our projects (user authenticates, if response is valid, generate auto-expiring keys).
    #3
  4. ich5003

    ich5003 V.I.BEE VIP

    Joined:
    Apr 5, 2013
    Messages:
    654
    Ratings:
    +1,439
    • Fix the TIMV-Bug (Victories always 0; no value for playedgames)
    • Give outputs for values EVERYTIME, so you don't need to check each request.
    • Posibility to overgive an GET value, which is also in the Output JSON (helps when sending more than one request at once in an AsyncTaks.
    • Add a Leaderboard API to get the rank of a player
    • Add a Leaderboard API to get the player on a specific rank
    Last edited: Dec 28, 2014
    #4
  5. ClankStar

    ClankStar Founder/Owner/Dev Hive Owner

    Joined:
    Feb 22, 2013
    Messages:
    1,169
    Ratings:
    +10,072
    1. We might have to do this in the future, but with the huge amount of caching (both on our and CloudFlare's side), there's currently very little difference in resources for showing the actual data vs sending a rate limited message.
    2. Working on this currently. The reason this happened is that for older games, some of the data was imported from legacy systems, and might have missing or extra and unused data. This will be resolved soon.
    3. I'll discuss this with Matt to verify our stance on this.
    4. Can you elaborate on this one?
    5. Last joined will be added, I'm currently fixing the first join data (once again, woo legacy information).

    I'm personally in favor of this, but will have to discuss this with the others first.
    #5
  6. ErrorNow

    ErrorNow V.I.BEE

    Joined:
    Mar 21, 2013
    Messages:
    1,544
    Ratings:
    +800
    I would love to have some forums statistics, for example likes received, likes given, posts made, followers, date joined. (I already found a way to get forum images xd)
    #6
  7. Nuled

    Nuled The Bees Knees

    Joined:
    Jun 2, 2013
    Messages:
    243
    Ratings:
    +361
    I have seen XenForo with a REST API, although I'm not sure if it's natively packaged with the software, or an additional plugin.

    @RWJP just tagging you in here, incase you know anything about this.
    #7
  8. ErrorNow

    ErrorNow V.I.BEE

    Joined:
    Mar 21, 2013
    Messages:
    1,544
    Ratings:
    +800
    I think you might mean this https://xenforo.com/community/resources/xenapi-xenforo-php-rest-api.902/

    Seems to be a free plugin and would be awesome to use if it's possible.
    #8
  9. DevRo

    DevRo Regular Bee

    Joined:
    Nov 10, 2014
    Messages:
    33
    Ratings:
    +19
    Awesome, for the one you wanted me to elaborate is for example, you join the Hub, the session starts, the session would basically track all your time spent in the Hive, what servers you played on, what games till you leave the server.
    #9
  10. ich5003

    ich5003 V.I.BEE VIP

    Joined:
    Apr 5, 2013
    Messages:
    654
    Ratings:
    +1,439
    I think this should only be avivable with a login...
    It would allow a lot of "stalking" :D
    #10
  11. DevRo

    DevRo Regular Bee

    Joined:
    Nov 10, 2014
    Messages:
    33
    Ratings:
    +19
    Maybe it should be disabled for youtubers & staff unless they want to enable it. Though the 'stalking' comes in when you find the server the player is currently on, which is already posible. See: [​IMG]
    #11
  12. ich5003

    ich5003 V.I.BEE VIP

    Joined:
    Apr 5, 2013
    Messages:
    654
    Ratings:
    +1,439
    You can only see which game, not which server ;)
    #12
  13. DevRo

    DevRo Regular Bee

    Joined:
    Nov 10, 2014
    Messages:
    33
    Ratings:
    +19
    :O
    #13
  14. ErrorNow

    ErrorNow V.I.BEE

    Joined:
    Mar 21, 2013
    Messages:
    1,544
    Ratings:
    +800
    I'd love to see if a user has been premium before. This could maybe go at the userprofile API or could just be a standalone one. Here's an example :D

    {
    premium {
    "type": "gold",
    "startdate": 1420029278,
    "enddate": 1420026367,
    "subscription": False
    },

    premium {
    "type": "Emerald",
    "startdate": 1420029278,
    "enddate": 0,
    "subscription": False
    }
    }

    #14
  15. AlexDeFilippo

    AlexDeFilippo The Bees Knees Emerald Member

    Joined:
    Sep 14, 2013
    Messages:
    48
    Ratings:
    +320
    Can we also maybe add an API for the newest users/longest users/staff members?
    Maybe something like:
    Code:
    {"staff": {"staffCount": "54", "staffList":[{"clankstar"},{"JollyajaX"},{"RazerLiam"}]}, {"newestUsers": {"amount": "5", "newestList":[{"hamo1053"},{"theftp"},{"l4mm"},{"coco1jb2"},{"skitwar123"}]}, {"oldestUsers": {"amount": "5", "oldestList":[{"clankstar"},{"JollyajaX"},{"b0xx3r"},{"Vareide"},{"ahhnowisee"}]}
    Thanks!
    #15
  16. ErrorNow

    ErrorNow V.I.BEE

    Joined:
    Mar 21, 2013
    Messages:
    1,544
    Ratings:
    +800
    I support this idea but I think the list with the oldest members would be a bit useless because it wouldn't change anyway.
    #16
  17. AlexDeFilippo

    AlexDeFilippo The Bees Knees Emerald Member

    Joined:
    Sep 14, 2013
    Messages:
    48
    Ratings:
    +320
    Yeah, thinking about it now it would xD
    #17
  18. AlexDeFilippo

    AlexDeFilippo The Bees Knees Emerald Member

    Joined:
    Sep 14, 2013
    Messages:
    48
    Ratings:
    +320
    Another suggestion: What about a leaderboard API? I've been speaking to a few people about this and a lot of us would like this feature. Thanks!

    EDIT: This has already been suggested, disregard this idea xD
    #18
  19. SarcasticPig

    SarcasticPig Kevin | Head of Potato Emerald Member

    Joined:
    Apr 28, 2013
    Messages:
    1,062
    Ratings:
    +1,208
    Not only just premium, but maybe all ranks?
    #19
  20. foldagerdk

    foldagerdk V.I.BEE Emerald Member

    Joined:
    Feb 22, 2013
    Messages:
    1,005
    Ratings:
    +1,869
    I believe that some people wouldn't be willing to share their personal information regarding how many times they have purchased premium. Personally, I don't believe it would be a good idea. But then again, it is not my decision. ;)

    Perhaps if it was authenticated with a token as Rhys (@Nuled) suggested. :)
    #20

Share This Page