Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assets / icons #21

Open
Lucas-jimenez-dev opened this issue Jul 24, 2022 · 3 comments
Open

Assets / icons #21

Lucas-jimenez-dev opened this issue Jul 24, 2022 · 3 comments

Comments

@Lucas-jimenez-dev
Copy link

Lucas-jimenez-dev commented Jul 24, 2022

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

@smlbiobot
Copy link
Member

It‘s not possible. Just match it yourself.

@smlbiobot
Copy link
Member

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

@Lucas-jimenez-dev
Copy link
Author

Thanks you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants