[Documentation BUG] API

Report bugs found in Poker Mavens
Post Reply
RafalNiewinski
Posts: 13
Joined: Mon Nov 16, 2015 9:54 am

[Documentation BUG] API

Post 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.
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: [Documentation BUG] API

Post 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]}
RafalNiewinski
Posts: 13
Joined: Mon Nov 16, 2015 9:54 am

Re: [Documentation BUG] API

Post by RafalNiewinski »

Ok, you're right, I can get this field now
Post Reply