Recommend
 
 Thumb up
 Hide
5 Posts

BoardGameGeek» Forums » BoardGameGeek Related » BGG Bugs

Subject: xmlapi2: cannot request collection based on username rss

Your Tags: Add tags
Popular Tags: [View All]
Joeri van Dooren
msg tools
Hello

The API call to request the collection of a specific user always seems to return "Invalid username specified". It does not matter which username I use. Is this an issue or am I missing something here?

This is the URL I'm using: https://www.boardgamegeek.com/xmlapi2/collection?name=jvando...

If I use the same username to request for example userdata, everything works perfectly: https://www.boardgamegeek.com/xmlapi2/user?name=jvandooren

Thanks in advance!

 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Peter Naylor
United Kingdom
Trowbridge
Wiltshire
flag msg tools
Get your cursor off me you damned dirty ape!
badge
Say what you see. If you see it, say it.
Avatar
mbmbmbmbmb
I think it should be "username" not "name" in the URI.

Try this:
https://www.boardgamegeek.com/xmlapi2/collection?username=jv...
2 
 Thumb up
5.00
 tip
 Hide
  • [+] Dice rolls
Peter Naylor
United Kingdom
Trowbridge
Wiltshire
flag msg tools
Get your cursor off me you damned dirty ape!
badge
Say what you see. If you see it, say it.
Avatar
mbmbmbmbmb
Yeah, the collection call takes a "username" parameter.

The users call takes a "name" parameter.

A little confusing, but there you go.
1 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Joeri van Dooren
msg tools
Waauw, I cannot believe I missed that. A little embarrassing, but that happens I guess :-)

Thank you!
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Eddy Richards
Scotland
Allanton
Duns
flag msg tools
designer
badge
Avatar
mbmbmbmbmb
When I saw the title of this thread I imagined that a user called xmlapi2 had managed to break the system. What a disappointment! Still, good that the question is resolved so quickly.
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Front Page | Welcome | Contact | Privacy Policy | Terms of Service | Advertise | Support BGG | Feeds RSS
Geekdo, BoardGameGeek, the Geekdo logo, and the BoardGameGeek logo are trademarks of BoardGameGeek, LLC.