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?
Having probs returning name in search
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
Please Log In to post.
Log in to comment