1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice
Want to stay up to date with Wynncraft? Follow us on twitter (@Wynncraft) and join our discord for fastest news, exclusive sneak peeks of future updates, store giveaways & more!
Dismiss Notice
Wynncraft, the Minecraft MMORPG. Play it now on your Minecraft client at (IP): play.wynncraft.com. No mods required! Click here for more info...

Website Changes!

Discussion in 'News & Patches' started by Jumla, Apr 28, 2016.

Thread Status:
Not open for further replies.
  1. <>

    <> Well-Known Adventurer

    Messages:
    121
    Likes Received:
    932
    Trophy Points:
    65
    Try writing a quick curl script in php to fetch the url then fetch that using js.
     
    RonalMC, redx475 and TalkingKittyCat like this.
  2. DarkDemonDragon

    DarkDemonDragon Sorta Veteran

    Messages:
    565
    Likes Received:
    690
    Trophy Points:
    89
    Minecraft:
    A random pig appears :o
     
    XavierEXE and Gogeta like this.
  3. Elements

    Elements Skilled Adventurer

    Messages:
    14
    Likes Received:
    154
    Trophy Points:
    34
    The cross-origin headers are set because this a is a public API.

    Code:
    access-control-allow-credentials: true
    access-control-allow-origin: *
    In some cases, I noticed on your site that the CORS error would still come through. This is because of the API rate limit, each IP address is only able to make 250 API calls every 5 minutes. I have added the CORS header to the API rate limit message so now you can process it on your site as required.

    You should adjust your site to stay within the rate limit restrictions.

    Also note, if you are just looking for the sum of players online, and not a list: public_api.php?action=onlinePlayersSum
     
  4. ! 3 !

    ! 3 ! Wynntils Developer HERO

    Messages:
    349
    Likes Received:
    678
    Trophy Points:
    91
    Guild:
    Minecraft:
    Wait... you're the new web dev? Also, i know all of the api actions dont worry.
     
  5. CykaBlyat_

    CykaBlyat_ Well-Known Adventurer

    Messages:
    28
    Likes Received:
    3
    Trophy Points:
    47
    oooooooh yeah i like it :D
     
Thread Status:
Not open for further replies.