Shopping at LEGO or Amazon?
Please use our links: LEGO.comAmazon
As an Amazon Associate we earn from qualifying purchases.

API getSets returning nothing for owned/wanted = 1

RexfelisRexfelis Member Posts: 32
I'm sure I'm just doing something wonky, but I can't seem to get any results when trying to fetch the owned/wanted sets for the "logged in" user.

The request looks like so (API key cut for privacy):

https://brickset.com/api/v2.asmx/getSets?apiKey=<apiKey>&orderBy=Number&owned=1&pageNumber=&pageSize=1000&query=&setNumber=&subtheme=&theme=&userHash=cD*8YalcEn&userName=&wanted=0&year=

And the response is just:

<ArrayOfSets xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="https://brickset.com/api/" xsi:nil="true"/>

So...trying to figure out what I'm missing...or am I just using the wrong API for getting the owned/wanted sets for a given userHash?

Comments

  • RexfelisRexfelis Member Posts: 32
    Never mind, I figured it out. Apparently my values for owned/wanted weren't being generated as strings (although it LOOKED like they were).
This discussion has been closed.

Shopping at LEGO.com or Amazon?

Please use our links: LEGO.com Amazon

Recent discussions Categories Privacy Policy Brickset.com

Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

Brickset.com is a participant in the Amazon Services LLC Associates Program, the Amazon.com.ca, Inc. Associates Program and the Amazon EU Associates Programme, which are affiliate advertising programs designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.

As an Amazon Associate we earn from qualifying purchases.