Module:PriceServer: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 2: Line 2:


local function fetchPrices()
local function fetchPrices()
local http = require('requests')
local apiUrl = "http://priceserver.theblockheads.net/get_prices.php"
local apiUrl = "http://priceserver.theblockheads.net/get_prices.php"
local response, code = http.get(apiUrl)
local response, code = http.get(apiUrl)