[Documentation BUG] API

Report bugs found in Poker Mavens

[Documentation BUG] API

Postby RafalNiewinski » Tue Feb 23, 2016 3:04 pm

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

Re: [Documentation BUG] API

Postby Kent Briggs » Tue Feb 23, 2016 4:53 pm

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]}
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3765
Joined: Wed Mar 19, 2008 8:47 pm

Re: [Documentation BUG] API

Postby RafalNiewinski » Tue Feb 23, 2016 5:32 pm

Ok, you're right, I can get this field now
RafalNiewinski
 
Posts: 13
Joined: Mon Nov 16, 2015 9:54 am


Return to Bugs

Who is online

Users browsing this forum: No registered users and 2 guests

cron