Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved get top voter per month

Comments in 'Plugin Development' started by Creeperface, Aug 28, 2016.

  1. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
  2. Ragnok1234
    Offline

    Ragnok1234 Active Member

    Joined:
    Jul 18, 2016
    Posts:
    53
    Minecraft User:
    Ragnok123
    Primus likes this.
  3. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    Muqsit and applqpak like this.
  4. Ragnok1234
    Offline

    Ragnok1234 Active Member

    Joined:
    Jul 18, 2016
    Posts:
    53
    Minecraft User:
    Ragnok123
    No, they like some s***s
  5. SOFe
    Offline

    SOFe Banned

    Joined:
    May 28, 2016
    Posts:
    386
    Minecraft User:
    Herobrine
    What's wrong? According to their API documentation, JSON, XML and HTML are supported.
    applqpak likes this.
  6. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    That link output plain error message
  7. SOFe
    Offline

    SOFe Banned

    Joined:
    May 28, 2016
    Posts:
    386
    Minecraft User:
    Herobrine
    That's probably because the error is emitted from quite low-level part of the script. They probably use this error function for all errors, including internal errors, so if an internal error about unexpected Accept content-type is to be shown, what is the format of this error?
    applqpak likes this.
  8. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    Click it https://minecraftpocket-servers.com...ey={ServerKey}&month={Period}&format={Format}

    Code:
    {
       "status":"error",
       "message":"Invalid server key"
    }
    
    Simple as that. Perhaps bad API?
  9. SOFe
    Offline

    SOFe Banned

    Joined:
    May 28, 2016
    Posts:
    386
    Minecraft User:
    Herobrine
    Your format is "{Format}". How could you expect that it returns JSON? You didn't even specify a proper format.
    Furthermore, if the first character in he return body is not {, you already know that something is wrong. The error message is supposed to be read by developers, not by machine. So why does it have to be JSON?

Share This Page

Advertisement