Jump to content


GET list of ALL tanks from player

api wotapi wot api all tanks list of all tanks

  • Please log in to reply
1 reply to this topic

Blue___Phoenix_EU #1 Posted 05 May 2019 - 04:04 AM

    Private

  • Player
  • 0 battles
  • 1
  • Member since:
    02-11-2018

I am new to WoT's API.

 

For the app I am making, I would need to get the list of all the tanks a player has, as an array/object.

How can I make the request, that is NOT deprecated?



Hyster #2 Posted 18 May 2019 - 02:30 PM

    Warrant Officer

  • Player
  • 27461 battles
  • 598
  • [T-S_K] T-S_K
  • Member since:
    02-14-2012

u can only get the players currently owned tanks by getting there access token so u need to learn that 1st.

the API exports everything in a json format so u need to learn hot to split it.

the API only shows the tank as in garage if the tanks has been played, if u have just bought it and not played a game yet it will not show!!

 

login to get access token (expires after 2 weeks)

https://developers.w...wot/auth/login/

 

player tanks

https://developers.w...ot/tanks/stats/

u need to use "1" in the in_game field to OlNY get tanks player owns else ur app with have to sort in garage and sold






1 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users