-
Notifications
You must be signed in to change notification settings - Fork 12
SteamUser.php
MattRyder edited this page Jun 11, 2012
·
6 revisions
Constructs a new SteamUser object using the Steam ID parameter, and pulls the user profile data.
SteamUser::__construct($id)
Parameters:
-
$id
- 17-digit Steam ID (76561198030733077) or custom vanity URL (robinwalker)
--- ### getProfileData
Pulls the Steam User Profile data, and parses all the available attributes.
For more information on the attributes, see Profile Data Attributes - Coming Soon!.
This method is automatically called during SteamUser's constructor method.
SteamUser::getProfileData()
--- ### getFriendsList
Pulls all the friends of the SteamUser, and returns a zero-based array.
Assumes a valid SteamUser profile has been setup, and a valid steamID64 is present.
SteamUser::getFriendsList()
Returns:
- An array with each friend listed, with the following attributes per index:
- steamid - Steam Profile ID
- relationship - Relationship to the SteamUser
- friend_since - UNIX timestamp since becoming a friend