Thread Tools Display Modes
11-26-22, 10:27 PM   #1
indopan
A Kobold Labourer
Join Date: Nov 2022
Posts: 1
Looking for the correct functions to get item ids and prices of my auctions

I'm making an api that interacts with the Blizzard API. My API takes a specific json input where I need to list the item ids and prices of the items im selling on the auction house (in copper to match the blizz market api data). Heres an example of the json I need.

Code:
{
    "homeRealmId": 3678,
    "region": "NA",
    "user_auctions": [
        {
            "itemID": 4500, 
            "price": 97400
        },
        {
            "itemID": 173242,
            "price": 900000
        },
        {
            "itemID": 189145,
            "price": 22003000
        }
    ]
}
My end goal is to make an addon that can generate this with a button click and copy that text to the users clipboard or at least show the data in a message() pop up.

Where would I start? I am thinking GetAuctionItemInfo() or GetNumAuctionItems() seem to be the first functions to look into, I just need to learn how to do them or find good examples I can try without lua errors https://wowwiki-archive.fandom.com/w...PI#Auction****
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Looking for the correct functions to get item ids and prices of my auctions

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off