Open GregDake opened 5 years ago
I just asked about this on the Swgoh.help discord server. The image api has apparently been removed from the underlying api. So we're going to have to get these images some other way. This repo should probably be updated to remove ImageRequest or at least mark it as deprecated.
I'm trying to get the images api to work to download custom images of the characters from the help api, but get FileNotFound exceptions regardless of what characters I ask for, what options I give (rarity, level, zeta) or whether they are toons or ships.
I don't see any documentation on the image api at https://api.swgoh.help/swgoh so it is hard for me to tell what the requested url should be nor try it with just a curl command, so I'm unsure if the issue is with .help or with the wrapping api.
The error message is always of the form:
Below the simplest main I could come up with that demonstrates the issue. I'm using version 4.2.1 of the api, but it was failing with 4.1.0 as well.
Going back to 4.0.1 removes the ability to use the SwgohAPIFilter, but the relevant pieces don't work with that version either.
Going back to 3.2 removes the ToonImageRequestBuilder so I didn't test any further back than 4.0.0.
The output from running the above program is:
If there is any additional data I can provide, please let me know.
Thanks,
Greg