Skip to content

Commit 77336d4

Browse files
Travis BlasingameTravis Blasingame
authored andcommitted
Adding docs and example to new method.
1 parent b1d7b0b commit 77336d4

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,18 @@ Once the list of friends is gathered, it is passed through [GetPlayerSummaries](
172172

173173
> Example Output: [GetFriendList](./examples/user/GetFriendList.txt)
174174
175+
#### GetPlayerBans
176+
Returns the possible bans placed on the provided steam ID(s).
177+
178+
##### Arguments
179+
180+
Name | Type | Description | Required | Default
181+
-----|------|-------------|----------|---------
182+
steamId| int[] | An array of (or singular) steam id(s) to get details for | No | Steam id passed to user()
183+
184+
185+
> Example Output: [GetPlayerBans](./examples/user/GetPlayerBans.txt)
186+
175187
### User Stats
176188
The [User Stats](https://developer.valvesoftware.com/wiki/Steam_Web_API#GetPlayerAchievements_.28v0001.29) WebAPI call is used to get details about a user's gaming.
177189

examples/user/GetPlayerBans.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Array
2+
(
3+
[0] => stdClass Object
4+
(
5+
[SteamId] => 76561197979958413
6+
[CommunityBanned] =>
7+
[VACBanned] =>
8+
[NumberOfVACBans] => 0
9+
[DaysSinceLastBan] => 0
10+
[EconomyBan] => banned
11+
)
12+
13+
)

0 commit comments

Comments
 (0)