Page 1 of 1
[Documentation BUG] API
Posted: Tue Feb 23, 2016 3:04 pm
by RafalNiewinski
Hi Kent
I want to tell you about little bug in API documentation or/and API implementation in TournamentsGet and TournamentsList endpoints.
RegMinutes field is not available in TournamentsList
Also it is not in the example for TournamentsGet
BUT - TournamentsGet returns this field.
In TournamentsList I cannot grab it.
Re: [Documentation BUG] API
Posted: Tue Feb 23, 2016 4:53 pm
by Kent Briggs
I'll fix the docs on the next update but you should still be able to use it for TournamentsList. I just tried this on my test machine:
Code: Select all
http://127.0.0.1:8087/api?password=x&command=tournamentslist&fields=name,regminutes
and it returned the field ok:
Code: Select all
Result=Ok
Tournaments=10
Name1=Test
RegMinutes1=60
Name2=Tournament #01
RegMinutes2=0
Name3=Tournament #02
RegMinutes3=0
Name4=Tournament #03
RegMinutes4=0
Name5=Tournament #04
RegMinutes5=0
Name6=Tournament #05
RegMinutes6=0
Name7=Tournament #06
RegMinutes7=0
Name8=Tournament #07
RegMinutes8=0
Name9=Tournament #08
RegMinutes9=0
Name10=Tournament #09
RegMinutes10=0
Also in JSON format:
Code: Select all
{"Result":"Ok","Tournaments":10,"Name":["Test","Tournament #01","Tournament #02","Tournament #03","Tournament #04","Tournament #05","Tournament #06","Tournament #07","Tournament #08","Tournament #09"],"RegMinutes":[60,0,0,0,0,0,0,0,0,0]}
Re: [Documentation BUG] API
Posted: Tue Feb 23, 2016 5:32 pm
by RafalNiewinski
Ok, you're right, I can get this field now