Open mrranger opened 2 years ago
Let me think about it, You are trying to get the game icon like Dota is right?
If so, game icons are provided by two APIs under IPlayerService
:
https://api.steampowered.com/IPlayerService/GetOwnedGames/v1/
https://api.steampowered.com/IPlayerService/GetRecentlyPlayedGames/v1/
The API will return a img_icon_url
key, it looks like this: 0bbb630d63262dd66d2fdd0f7d37e8661a410075
Then you can get the icon by url splicing:
https://cdn.cloudflare.steamstatic.com/steamcommunity/public/images/apps/{appid}/{img_icon_url}.jpg
https://cdn.cloudflare.steamstatic.com/steamcommunity/public/images/apps/570/0bbb630d63262dd66d2fdd0f7d37e8661a410075.jpg
But I remember that this package provides this feature, i see in
You can use
Steam::player($steamId)->GetOwnedGames();
Steam::player($steamId)->GetRecentlyPlayedGames()
to get game icon.
For more information you can refer to package documentation or Steam Web API Documentation by xPaw.
I'm trying to call the game icon, but instead of the picture I always get a link to the steam picture I want to make sure that each game has its own picture help me please Require
Laravel 9 + AdminLTE
https://prnt.sc/N_Kh8b6l9HV6