f631dc5e9b4bb7666d829c9e2ac40d91627ff380
filoxen-luau
Luau client library for the Filoxen asset API. Fetch random or search for Roblox assets.
Installation
Requires Wally.
[dependencies]
Filoxen = "secret-rare/filoxen-luau@0.1.0"
wally install
Setup
- Add your Filoxen API key as a secret in the Creator Dashboard under Secrets (defaults to
FILOXEN_API_KEY). - Make sure
HttpServiceis enabled for your game.
Usage
local Filoxen = require(path.to.Filoxen)
-- Must be called once before any other function
Filoxen.configure({
baseUrl = "https://your-filoxen-instance.com",
apiKeySecretName = "FILOXEN_API_KEY", -- optional, this is the default
})
-- Fetch 10 random hats
local assets = Filoxen.random(
{ Enum.AssetType.Hat }, -- assetTypeIds
nil, -- maxAssetId
nil, -- minAssetId
10, -- batch
true -- onsale
)
-- Search for assets by name
local results = Filoxen.search("blue hat", Enum.AssetType.Hat.Value)
Languages
Luau
100%