It is currently Fri Mar 29, 2024 1:16 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2
Author Message
Offline
 Post subject: Re: Obtaining user's rank
Post #21 Posted: Thu Oct 02, 2014 6:27 am 
Dies in gote
User avatar

Posts: 27
Liked others: 6
Was liked: 7
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.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group