Having probs returning name in search

Avatar image for aquaphase
aquaphase

4

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#1  Edited By aquaphase

I've been staring at this query for hours to no avail, and dug through this forum extensively.  That being said, I'm sure the solution is right in front of me.

Here's my issue: I just want to return the name of a game based on the query input (much like the autocomplete at the top of the page).  I'm firing in this query:
http://api.giantbomb.com/search/?api_key=<API KEY>&format=xml&query=frogger&resource_type=game&resources=game&field_list=name

I get a 500 on this.  To me it seems because not every item returned has a "name" (oddly enough).  What the heck am I doing wrong?

Avatar image for aquaphase
aquaphase

4

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#2  Edited By aquaphase

Nevermind, I'm a moron (as I previously believed). For future coders, if you are trying to just return the name, you will also need to return the id, so the query should look like:

http://api.giantbomb.com/search/?api_key=<API KEY>&format=xml&query=frogger&resource_type=game&resources=game&field_list=name,id