Skip to content

Commit f62796c

Browse files
Merge pull request #72 from ilumos/patch-1
Clarified instantiating with several Steam IDs
2 parents ca28fcc + 770b2b2 commit f62796c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ appId| int | The game to check for | Yes |
176176
### User
177177
The [User](https://developer.valvesoftware.com/wiki/Steam_Web_API#GetFriendList_.28v0001.29) WebAPI call is used to get details about the user specifically.
178178

179-
When instantiating the user class, you are required to pass a steamID or Steam community ID.
179+
When instantiating the user class, you are required to pass at least one steamId or steam community ID.
180180

181181
```php
182182
Steam::user($steamId)
@@ -198,7 +198,7 @@ displayName| string | The display name to get the steam ID for. In `http://ste
198198
> Example Output: [ResolveVanityURL](./examples/user/ResolveVanityURL.txt)
199199
200200
#### GetPlayerSummaries
201-
This will return details on the user.
201+
This will return details on one or more users.
202202

203203
##### Arguments
204204

@@ -207,7 +207,13 @@ Name | Type | Description | Required | Default
207207
steamId| int[] | An array of (or singular) steam ID(s) to get details for | No | Steam ID passed to user()
208208

209209
```php
210+
// One user
211+
$steamId = 76561197960287930;
210212
$player = Steam::user($steamId)->GetPlayerSummaries()[0];
213+
214+
// Several users
215+
$steamIds [76561197960287930, 76561197968575517]
216+
$players = Steam::user($steamIds)->GetPlayerSummaries();
211217
```
212218

213219
> Example Output: [GetPlayerSummaries](./examples/user/GetPlayerSummaries.txt)

0 commit comments

Comments
 (0)