Utilities/Get-RelicDataJSON.ps1
#This gets all the relic info JSON. Right now this JSON is processed into a hash table and serialized to XML for reuse without extra API calls. # Define the API endpoint $baseURL = "https://warframe.fandom.com/api.php" # Define the parameters for the POST request $params = @{ action = "scribunto-console" format = "json" title = "Module:Void/data" content = "" question = @" local VoidData = require('Module:Void/data').RelicData local json = require('Module:JSON') print(json.stringify(VoidData)) "@ clear = 1 } $response = Invoke-RestMethod -Uri $baseURL -Method POST -Body $params -ContentType "application/x-www-form-urlencoded" # Output the result return $response.print |