Jump to content


Get tank name from id


  • Please log in to reply
2 replies to this topic

SolventSine67 #1 Posted 12 November 2020 - 04:14 PM

    Private

  • Player
  • 14785 battles
  • 3
  • [POV] POV
  • Member since:
    07-19-2013

I've used the API to extract tanks in a players garage but I only get the tank_id. Is there a way to get the tank name associated with that tank_id?

 

Thanks



OniichanSenpai #2 Posted 12 November 2020 - 04:16 PM

    Warrant Officer

  • Player
  • 5581 battles
  • 544
  • Member since:
    03-11-2020
Yes there is a separate API call you can make to retrieve the names plus the IDs. The easiest way is to fetch them once and then keep the list as a static file because it only changes when nee tanks are introduced.

SolventSine67 #3 Posted 12 November 2020 - 04:28 PM

    Private

  • Player
  • 14785 battles
  • 3
  • [POV] POV
  • Member since:
    07-19-2013
Okay, thanks! 

Edited by SolventSine67, 12 November 2020 - 04:29 PM.





1 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users