Life In 19x19
http://lifein19x19.com/

Obtaining user's rank
http://lifein19x19.com/viewtopic.php?f=24&t=10859
Page 2 of 2

Author:  anazawa [ Thu Oct 02, 2014 6:27 am ]
Post subject:  Re: Obtaining user's rank

Ellyster wrote:
anazawa wrote:
You can try unofficial JSON API for KGS Go Server, MetaKGS (http://metakgs.org/docs).
I believe you can GET /api/archives/:user which contains the user's latest rank.

Note: MetaKGS is in beta state, and so the APIs may change without notice.


Wow! It's a great project.

Sadly GET /api/archives/:user do not include the user's latest rank (will be an awesome feature improvement, maybe even I try to do a pull request when I get some free time ;-) ).


Right now, I will need to do GET /api/archives/:user, then GET prev, and then go to content -> games -> first game -> white (and black) -> check players' names and ranks. Is a little bit long, but still the better way to do it so far.


Thanks for your suggestion and opening the first issue on MetaKGS.org!
As I replied in the issue, https://github.com/anazawa/metakgs.org/issues/1, I think as follows:

anazawa wrote:
B) Write a MetaKGS client using your favorite language and then implement the object method #get_latest_rank_by_name (my recommendation). You have already understood
how to get the user's latest rank using MetaKGS APIs, and so it will be easy for you.
I can also introduce your client on MetaKGS.org.

Page 2 of 2 All times are UTC - 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/