Open ReidWeb opened 2 years ago
From investigation there does not appear to be a way to fetch the item id of a minion without interacting with the DOM.
Image URLs are consistent between characters, so we may have to build up a database of those.
Minion names are not presented on the DOM without interaction either the only accessible attribute that is available is image urls such as https://img.finalfantasyxiv.com/lds/pc/global/images/itemicon/9e/9ed9a88950ba83a052d6f7c32efe5bd89530bac7.png?n6.0
The ability to fetch the set of minions a character has is required.
These minions are presently contained on a sub-page on the lodestone so require a second GET, to fetch.
Use Case
Proposed Solution
lodestoneClient.getCharacter(..)
add an options object, with parameterfetchMinionNames
of type booleanfetchMinionNames
is true in options call invoke the function that fetches and looks up nameslodestoneClient.getCharacter(..)
add an options object, with parameterfetchMoundIds
of type booleanfetchMinionIds
is true in options call invoke the function that fetches just idsOther
No modifications to
Character.fromPage
are required.Possibility to resuse code from mount fetching here, they're very similar.
This is a :rocket: Feature Request