Public/Get-GW2Build.ps1
|
<#
.SYNOPSIS Retrieves the current build ID. .DESCRIPTION This function retrieves the current specific build ID from the Guild Wars 2 API. .EXAMPLE Get-GW2Build Retrieves the current build ID. .LINK https://wiki.guildwars2.com/wiki/API:2/build #> function Get-GW2Build { [CmdletBinding()] param () $Uri = "https://api.guildwars2.com/v2/build" try { Invoke-RestMethod -Uri $Uri -Method Get } catch { Write-Error "Failed to retrieve build ID: $_" } } |