update clan members

This commit is contained in:
Lanta 2023-09-22 17:59:52 +02:00
parent da63c787cd
commit 4d05ce2e16
4 changed files with 1495 additions and 682 deletions

View file

@ -34,7 +34,7 @@ $headers = @{
'Authorization' = "$apiKey"
}
$playerinfo = Invoke-RestMethod -Uri "https://api.pubg.com/shards/steam/players?filter[playerNames]=$clanMembers" -Method GET -Headers $headers
$playerinfo.data | convertto-json -depth 100 | Out-File "$scriptroot/../data/player_data.json"
$playerList = @()
$playerinfo.data | ForEach-Object {
$playerObject = [PSCustomObject]@{