Jump to content


Global Map Clan's Battles API Error


  • Please log in to reply
1 reply to this topic

ats1080 #1 Posted Jan 31 2019 - 02:49

    Staff sergeant

  • Players
  • 35589 battles
  • 351
  • [RS] RS
  • Member since:
    08-20-2011

The Global Map Clan's Battles API sends wrong times for over a minute when battles first pop.  I'm making a battle bot for detecting simuls and this makes it impossible to be certain I'm getting the right battles.  Here is an example from earlier today.  You can see how the battles don't change other than the time.  Please fix this or explain how it's supposed to work.

 


1:00:46 AM
[{"attack_type":"tournament","front_id":"soldiers_of_fortune_us_league1","front_name":"soldiers_of_fortune_us_league1","competitor_id":1000003392,"time":1548896400,"vehicle_level":10,"province_id":"belohorizonte","type":"attack","province_name":"Belo Horizonte"},{"attack_type":"tournament","front_id":"soldiers_of_fortune_us_league1","front_name":"soldiers_of_fortune_us_league1","competitor_id":1000043643,"time":1548897300,"vehicle_level":10,"province_id":"setelagoas","type":"attack","province_name":"Sete Lagoas"},{"attack_type":"auction","front_id":"soldiers_of_fortune_us_league2","front_name":"soldiers_of_fortune_us_league2","competitor_id":1000011903,"time":1548897312,"vehicle_level":10,"province_id":"sucre","type":"attack","province_name":"Sucre"},{"attack_type":"tournament","front_id":"soldiers_of_fortune_us_league1","front_name":"soldiers_of_fortune_us_league1","competitor_id":1000046561,"time":1548897328,"vehicle_level":10,"province_id":"barradesaofrancisco","type":"attack","province_name":"Barra de São Francisco"},{"attack_type":"auction","front_id":"soldiers_of_fortune_us_league2","front_name":"soldiers_of_fortune_us_league2","competitor_id":1000050718,"time":1548897332,"vehicle_level":10,"province_id":"elalto","type":"attack","province_name":"El Alto"},{"attack_type":"tournament","front_id":"soldiers_of_fortune_us_league1","front_name":"soldiers_of_fortune_us_league1","competitor_id":1000003392,"time":1548897336,"vehicle_level":10,"province_id":"novoacordo","type":"attack","province_name":"Novo Acordo"},{"attack_type":"auction","front_id":"soldiers_of_fortune_us_league2","front_name":"soldiers_of_fortune_us_league2","competitor_id":1000021883,"time":1548897338,"vehicle_level":10,"province_id":"puertohealth","type":"attack","province_name":"Puerto Health"},{"attack_type":"auction","front_id":"soldiers_of_fortune_us_league2","front_name":"soldiers_of_fortune_us_league2","competitor_id":1000001505,"time":1548897339,"vehicle_level":10,"province_id":"quillabamba","type":"attack","province_name":"Quillabamba"},{"attack_type":"auction","front_id":"soldiers_of_fortune_us_league2","front_name":"soldiers_of_fortune_us_league2","competitor_id":1000010483,"time":1548897341,"vehicle_level":10,"province_id":"sanborja","type":"attack","province_name":"San Borja"}]
1:01:45 AM
[{"attack_type":"tournament","front_id":"soldiers_of_fortune_us_league1","front_name":"soldiers_of_fortune_us_league1","competitor_id":1000003392,"time":1548896400,"vehicle_level":10,"province_id":"belohorizonte","type":"attack","province_name":"Belo Horizonte"},{"attack_type":"tournament","front_id":"soldiers_of_fortune_us_league1","front_name":"soldiers_of_fortune_us_league1","competitor_id":1000043643,"time":1548897300,"vehicle_level":10,"province_id":"setelagoas","type":"attack","province_name":"Sete Lagoas"},{"attack_type":"auction","front_id":"soldiers_of_fortune_us_league2","front_name":"soldiers_of_fortune_us_league2","competitor_id":1000011903,"time":1548897312,"vehicle_level":10,"province_id":"sucre","type":"attack","province_name":"Sucre"},{"attack_type":"auction","front_id":"soldiers_of_fortune_us_league2","front_name":"soldiers_of_fortune_us_league2","competitor_id":1000001505,"time":1548900001,"vehicle_level":10,"province_id":"quillabamba","type":"attack","province_name":"Quillabamba"},{"attack_type":"auction","front_id":"soldiers_of_fortune_us_league2","front_name":"soldiers_of_fortune_us_league2","competitor_id":1000050718,"time":1548900003,"vehicle_level":10,"province_id":"elalto","type":"attack","province_name":"El Alto"},{"attack_type":"tournament","front_id":"soldiers_of_fortune_us_league1","front_name":"soldiers_of_fortune_us_league1","competitor_id":1000046561,"time":1548900005,"vehicle_level":10,"province_id":"barradesaofrancisco","type":"attack","province_name":"Barra de São Francisco"},{"attack_type":"auction","front_id":"soldiers_of_fortune_us_league2","front_name":"soldiers_of_fortune_us_league2","competitor_id":1000010483,"time":1548900901,"vehicle_level":10,"province_id":"sanborja","type":"attack","province_name":"San Borja"},{"attack_type":"auction","front_id":"soldiers_of_fortune_us_league2","front_name":"soldiers_of_fortune_us_league2","competitor_id":1000021883,"time":1548900901,"vehicle_level":10,"province_id":"puertohealth","type":"attack","province_name":"Puerto Health"},{"attack_type":"tournament","front_id":"soldiers_of_fortune_us_league1","front_name":"soldiers_of_fortune_us_league1","competitor_id":1000003392,"time":1548900902,"vehicle_level":10,"province_id":"novoacordo","type":"attack","province_name":"Novo Acordo"}]


Edited by ats1080, Jan 31 2019 - 02:49.


ats1080 #2 Posted Jan 31 2019 - 17:27

    Staff sergeant

  • Players
  • 35589 battles
  • 351
  • [RS] RS
  • Member since:
    08-20-2011

Is this the right place for this post?

 

One simple suggestion I have (other than, obviously, just send the correct data) is include a battle ID.  That way, it doesn't matter what changes, we can update the battle accordingly.  Right now the response array does not offer any unique ID for any of the entries and I'm making my own ID based on battle time, clan ID and province ID which obviously fails when the time changes.


Edited by ats1080, Jan 31 2019 - 19:46.





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users