lorenzh / fut-api

Ultimate Team API - FIFA 16 - unofficial
MIT License
53 stars 12 forks source link

How to work with the Id´s? #24

Open PhilippChr opened 7 years ago

PhilippChr commented 7 years ago

Hi, I am very thankful for the api, it already helped me a lot, by just relisting my players every hour.

As I am quiet new to the whole topic, I got some questions on how to work with the Id´s.

1) I can get the assetId from my tradepile, but how do I get the maskedDefId of a player? Is there something like a database or a map to convert an assetId to a maskedDefId?

2) Is it possible to get the name of a player from the assetId?

Thank you for your questions 👍 And sorry for my english...

yhanssens commented 7 years ago
  1. Yes in fact there is. For example Martial: https://www.easports.com/uk/fifa/ultimate-team/fut/database/player/211300/Martial#211300 id is in the url.
  2. I'm afraid this isn't possible.
PhilippChr commented 7 years ago

To 2.: I searched the internet and found a database file. It is a json file linking the assetId´s to playernames, I don´t know if every player is included but every player I needed so far was.

You can find the json file here: https://github.com/trydis/FIFA-Ultimate-Team-Toolkit/issues/283

pjar commented 7 years ago

I use assetId for maskedId and it works