Public/Get-GW2PvP.ps1
|
<#
.SYNOPSIS Retrieves the list of available PvP API endpoints. .DESCRIPTION The Get-GW2PvP cmdlet retrieves the list of available PvP API endpoints from the Guild Wars 2 API. .EXAMPLE Get-GW2PvP Retrieves the list of PvP endpoints. .NOTES API Endpoint: /v2/pvp #> function Get-GW2PvP { [CmdletBinding()] param () $Uri = "https://api.guildwars2.com/v2/pvp" try { Invoke-RestMethod -Uri $Uri -Method Get } catch { Write-Error "Failed to retrieve PvP endpoints: $_" } } |