Hey There!
As title. I’m trying to construct a list of all Items and their relative IDs, in a dictionary-fashion {ID:“Name”}.
The thing is, i did not found anything on the web and was wondering about how to do this. The very one method i was thinking is about fetching an N amount of items from the API with some loops, trying an ID one by one (starting at 1, and i.e. if ID=23 does not exists, it will iterate to the next one until a valid one is found etc) then parsing the JSON of the found and valid item, fetching the name by some JSON-String manipulation and building the dictionary.
But it is possible that there isn’t a more “efficient and fast” way to do this? Hoping for a response from you guys!
Thank you all.