I found API end point specification for fetching games of user.
As I understand I can use filters like http://online-go.com/api/v1/me/games?ranked=false
However I didn’t find how to pass ‘null’ parameter value.
Let say I want to get all my games which are live now.
As I understand it may be done like:
http://online-go.com/api/v1/me/games?ended=null
http://online-go.com/api/v1/me/games?ended=
But it doesnt work.
Undocumented feature:
?ended__isnull=1
That should work for ya : ) There’s also __gt
for greater than, __lt
, and __startswith
for most text fields
Oh xxx__isnull works with 1 and true as parameter?
In addition for ongoing game I believe he might also need: started__isnull=false
http://online-go.com/api/v1/games/?started__isnull=false&ended__isnull=true
Thanks it works.
PS: BTW is there a way to fetch details for few games with single request?
Yep exactly
Nope : (