Raised This Month: $32 Target: $400
 8% 

Steam avatar on website


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JOMENVEST
Member
Join Date: Dec 2016
Location: Sweden
Old 11-18-2017 , 08:37   Steam avatar on website
Reply With Quote #1

Hello!

I got stuck with a problem on a website.
What I want is to get specified steam profiles url avatars being shown on it, so if the steam user change the avatar it will be changed on the website too automatically.

I thought this link was the right way but I dont know? I have no idea how to get the avatar parameter.

http://api.steampowered.com/ISteamUs...es/v0002/?key=APIKEY&steamids=STEAMID

I would be thankful for all help!
__________________
JOMENVEST is offline
xerox8521
Senior Member
Join Date: Sep 2011
Old 11-20-2017 , 19:35   Re: Steam avatar on website
Reply With Quote #2

well you need to use file_get_contents with the link you mentioned and then decode the result using json_decode and then with
PHP Code:
$json->response->players[0]->avatarfull// Where $json is the result of the json_decode function 
you have the full avatar which you can use inside an <img> tag.

Last edited by xerox8521; 11-20-2017 at 19:37.
xerox8521 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode