Fetching only achieved/unachieved trophies

Forum Listing » Game Achievements Forum » View Topic

  • I'm having some problems fetching only achieved or unachieved trophies.  Whenever I try to do so, all trophies are retrieved instead.

    Here's what my call for unachieved trophies looks like (with a modified token and signature - and I know neither of them is the issue because I am getting something):

    game_id=8718&username=Bill&user_token=hungry&achieved=TRUE&trophy_id=&signature=hhh

    And for achieved trophies:

    game_id=8718&username=Bill&user_token=hungry&achieved=FALSE&trophy_id=&signature=hhh

    Anyone have any ideas?  Thanks!

  • get rid of trophy_id in its entirety

  • Submitting this now:

    http://gamejolt.com/api/game/v1/trophies/?game_id=8718&username=Bill&user_token=hungry&achieved=TRUE&signature=hhh

    Still doesn't work- same result as before.  Thanks though.


    Last edited on July 19, 2012 - 11:50 PM by Bill

  • did you try lowercase true/false? :o That's all I can think of that could work

  • That works!  Thanks!

    I think you were actually right in your first post too- I tried lowercase before removing the trophy_id and it didn't work.

  • sweet, glad i could help! :D

  • So after doing some more testing, it seems that it only works with false if it is in all caps, and true if it is all lowercase.  Seems like it should be fixed and made consistent, unless I'm doing something very, very wrong (andI don't think I am...)  Anyone else experienced this?

    Edit:  Or maybe not... there's something funny about it, but it may have to do with my implementation.  Will edit agaain when i figure it out...

    Edit 2: So I think what I've concluded is that

    http://gamejolt.com/api/game/v1/trophies/?game_id=8718&username=Bill&user_token=hungry&achieved=false&signature=hhh

    only works if at least trophy has been achieved- if none have been achieved, it returns a blank string.  No idea why...

    Last edited on July 21, 2012 - 12:09 PM by Bill

People Online