Jump to content


Get ClanWars battles through the API to website


  • Please log in to reply
1 reply to this topic

Ghostman101278 #1 Posted 12 April 2019 - 01:29 AM

    Private

  • Player
  • 2725 battles
  • 14
  • [KINAS] KINAS
  • Member since:
    03-01-2016

Hi, I came across this code and I would like to know if someone can help me change it to show on my website my clan's clan wars battles instead of my clan's members.

 

I would like it to show like this if there are no battles

CLAN'S BATTLES: 0

 

and like this if there are ordered by time of the battle

 

         CLAN'S BATTLES: 2        

 

       Clan           Province     Map    Time 
1     KINAS Ciudad Real Karelia 20:00
KINAS Ciudad Real Karelia

20:00

 

this is the code I have

 

Code

 

I would really apreciate some help

 

can someone help me please :)

 


Edited by Ghostman101278, 12 April 2019 - 01:30 AM.


Ghostman101278 #2 Posted 13 April 2019 - 05:52 PM

    Private

  • Player
  • 2725 battles
  • 14
  • [KINAS] KINAS
  • Member since:
    03-01-2016

Nevermind, I got it :) Too bad It doesn't show in real time, you have to wait for the turn before the battle to end for the API to show that battle.

 

Here's the code if anyone need something like this

 

Code

 






1 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users