Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get head to head information via API. #20

Open
kachelle opened this issue Oct 1, 2019 · 1 comment
Open

Get head to head information via API. #20

kachelle opened this issue Oct 1, 2019 · 1 comment
Labels
Enhancement Request for a new feature or major improvement of an existing feature.

Comments

@kachelle
Copy link

kachelle commented Oct 1, 2019

It would be very nice to get head to head information via the API. In that way it is nice to display whether or not a person has already played against another.
And if they already played against eachother, what date it was, and on what tournament/competition.
As is now possible on the competitie.vttl.be site: https://competitie.vttl.be/index.php?menu=4&head=1&player_1=Kjell+Kind&player_2=Tim+Sturm

Input:
homeplayer list & away player list (limit to X amount of players per team).
Or only homeplayer list, then check them all against each other.

{"Credentials": {"Account":"xxx","Password":"xxx"}, "HomePlayers":[ {"UniqueIndex":"500001"}, {"UniqueIndex":"500002"}, {"UniqueIndex":"500003"}, {"UniqueIndex":"500004"} ], "AwayPlayers":[ {"UniqueIndex":"600001"}, {"UniqueIndex":"600002"}, {"UniqueIndex":"600003"}, {"UniqueIndex":"600004"} ], }
And in the reply,
[
{
"HomePlayerUniqueIndex": 500001,
"AwayPlayerUniqueIndex": 600001,
"IndividualMatchCount": 2,
"IndividualMatchResults": [
{
"Date": "2017-09-16",
"MatchUniqueId": 278627,
"HomePlayerRanking": "C2",
"AwayPlayerRanking": "C0",
"HomeSetCount": 2,
"AwaySetCount": 3,
"Scores": "1|4,2|-9,3|-14,4|7,5|-9"
},
{
"Date": "2017-09-16",
"MatchUniqueId": 278627,
"HomePlayerRanking": "C2",
"AwayPlayerRanking": "C0",
"HomeSetCount": 2,
"AwaySetCount": 3,
"Scores": "1|4,2|-9,3|-14,4|7,5|-9"
}
]
},
{
"HomePlayerUniqueIndex": 500001,
"AwayPlayerUniqueIndex": 600002,
"IndividualMatchCount": 0
},
{
"HomePlayerUniqueIndex": 500001,
"AwayPlayerUniqueIndex": 600003,
"IndividualMatchCount": 0
}
]

@gfrenoy gfrenoy added the Enhancement Request for a new feature or major improvement of an existing feature. label Oct 1, 2019
@gfrenoy
Copy link
Owner

gfrenoy commented Oct 1, 2019

Indeed a nice additional feature to have :)

This is not on my personal priorities but if anyone wants to work on this, I'll be happy to help when I can and put it online when ready.

I believe it will require a new API entry. First step is to correctly define the new functions and inputs/ouputs. When this is done, I can probably look at the website code and extract the query that does this.

PR welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Request for a new feature or major improvement of an existing feature.
Projects
None yet
Development

No branches or pull requests

2 participants