cr-api-assets icon indicating copy to clipboard operation
cr-api-assets copied to clipboard

Assets / icons

Open ghost opened this issue 3 years ago • 3 comments

Hello, I would like to know how to match the ids (badges, icons arena) that the json returns during an api call of https://developer.clashroyale.com/#/ with image urls. Let's assume that the ids correspond to your database, how do you do for the clan icons, because each clan has custom icons image

ghost avatar Jul 24 '22 08:07 ghost

It‘s not possible. Just match it yourself.

smlbiobot avatar Jul 24 '22 11:07 smlbiobot

You can also use our constants to fetch the arena info with IDs, but you’ll still have to make the icons yourself. You can of course use the icons from this repository.

https://github.com/RoyaleAPI/cr-api-data/blob/master/docs/json/arenas.json

smlbiobot avatar Jul 24 '22 11:07 smlbiobot

Thanks you :)

Lucas-jimenez-dev avatar Jul 26 '22 09:07 Lucas-jimenez-dev