Golang Client for tukui.org
Simple Golang client for the TukUI API to fetch the hosted addons. Supports both classic and retail addons.
go get github.com/unly/go-tukui
Create a new client for the TukUI API. Optionally, you can pass a pointer to a http.Client. Otherwise the default client is used.
client := tukui.NewClient(nil)
Query for a specific addon using its ID, e.g. 3.
addon, resp, err := client.ClassicAddons.GetAddon(3)
Or query all available addons.
addons, resp, err := client.ClassicAddons.GetAddons()
For the TukUI and the ElvUI there are dedicated functions. In the case of TukUI there is;
tukui, resp, err := client.ClassicAddons.GetTukUI()
and respectively:
elvui, resp, err := client.ClassicAddons.GetElvUI()
All API queries return the Addon struct.
Licensed under the MIT license.