Loading...

How to access TukUI and ElvUI via the API

#1
Hi all,

I am trying to update the addons I'm using with a script. This includes addons I get from tukui.org but also from other sources on the web. So far I successfully used the tukui.org API description (https://www.tukui.org/api.php) to get the latest version of an addon as well as link to download it. And this works great. However, for TukUI and ElvUI in retail it does not seem to work as it does in classic. For example: TukUI in classic would be https://www.tukui.org/classic-addons.php?id=1 and therefore id 1. Calling the API would result in https://www.tukui.org/api.php?classic-addon=1. So far so good; but for retail I don't get the respective resource with the addon url parameter like https://www.tukui.org/api.php?addon=1. Am I missing something here? Or is it just not available via the API? And if so what is the intention here?

Thankful for any insights

How to access TukUI and ElvUI via the API

#3
First of all thanks for the API links! They could do the trick.
But why is there such a separation? The object representation is the same as for an addon. But accessing the resource works very different than the other addons. Plus it does not seem consistent with the classic versions. What's the intention? Wouldn't it also be an option to just assign an id for the retail versions of TukUI and ElvUI to align the API?

How to access TukUI and ElvUI via the API

#4
The reason comes down to how retail and classic versions of Tukui and ElvUI are handled on our site. Classic is handled as if it was an addon like any other we host. The retail versions are handled as dedicated UIs, outside the addon ecosystem within Tukui.

It is unlikely to change, at least any time soon, simply due to time constraints with day jobs and so on :)

You will have to handle the retail versions slightly different in your app/script, but after that it should work as you would expect.
ElvUI: Request Feature | Report Bug

My replies might be short sometimes due to time constraints. Nothing personal.

Who is online

Users browsing this forum: No registered users and 2 guests