Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

[Feature Request] Toornament API integration #50

Open
PhlexPlexico opened this issue Apr 15, 2019 · 11 comments
Open

[Feature Request] Toornament API integration #50

PhlexPlexico opened this issue Apr 15, 2019 · 11 comments
Labels
feature suggestion Something to think about. wontfix This will not be worked on

Comments

@PhlexPlexico
Copy link
Owner

PhlexPlexico commented Apr 15, 2019

Seems that larger Tornament places tend to use this service. Shouldn't be bad to implement. Will probably create sub tasks of this or just make a checklist within this issue.

@PhlexPlexico PhlexPlexico added enhancement New feature or request that will get implemented. todo Something that will be eventually done, but not right now. labels Apr 15, 2019
@PhlexPlexico PhlexPlexico added this to the 2.0 milestone Apr 15, 2019
@PhlexPlexico PhlexPlexico self-assigned this Apr 15, 2019
@PhlexPlexico
Copy link
Owner Author

Create tournament.
Adding teams.
Setup seeds.
Starting the tournament.
Where the match > team vs team can be started via get5web.

@PhlexPlexico PhlexPlexico changed the title Toournament API integration Toornament API integration Apr 15, 2019
@mrc4tt
Copy link

mrc4tt commented Apr 16, 2019

Seems, the Toournament + eBot has some feature with "import match" > and start(button) via get5-web.

As for looks with screenshots:

Where it should be possible to "import" from get5-web > so the "bracket" can be imported to "match", where Admin can start the match e.g:

Just to give an idea, how it looks!

@PhlexPlexico
Copy link
Owner Author

Ohhhkay, so you would still have to import the matches yourself, then? But at the end, the matches will also be automatically updated on the Toornament website, right?

@mrc4tt
Copy link

mrc4tt commented Apr 16, 2019

Yeah as an example, if it's possible.

@PhlexPlexico PhlexPlexico removed this from the 2.0 milestone Apr 16, 2019
@PhlexPlexico
Copy link
Owner Author

Was thinking about this the other day. The first bit is rather simple, it's simply grabbing data from the tournament page, which won't be hard to implement. The hard part would be converting the data to something that is accessible for the web-panel because I can guarantee it's not going to be the same data.

Have a dedicated page to show Toornament matches, or grab a list of Tournaments via API, and loop through and display each in table?

Import button will probably grab all the required data via JSON I assume, and then we need to fit it for our DB, possibly creating a new Season for it, that's listed for the event dates, create new teams if they don't exist, and then create the match. Something like that could possibly work?

@mrc4tt
Copy link

mrc4tt commented Apr 18, 2019

Have a dedicated page to show Toornament matches, or grab a list of Tournaments via API, and loop through and display each in table?

I'm pretty sure, there is something, you can find. (You can e.g check how the code looks via eBot)

As example:
https://help.toornament.com/developer/how-to-use-our-api
https://developer.toornament.com/v2/overview/get-started

I mean you can watch how the toournament/eBot API has seemed:
deStrO/eBot-CSGO-Web@1628aa0

Dunno, about it, can help. ^^

@PhlexPlexico
Copy link
Owner Author

API key has been requested so I can eventually get to implementing and testing it.

@PhlexPlexico
Copy link
Owner Author

Just realized we wouldn't have to have server-less match creation. Since we're calling an API, we can populate our data from the API, and only create the match once we are set. Brackets/etc can remain in the API until we go "Import" match, which would then require a server. Offloading some of the database work, and not having to worry about server-less match creation just yet.

@PhlexPlexico PhlexPlexico removed their assignment May 23, 2019
@PhlexPlexico PhlexPlexico added the help wanted Extra attention is needed label May 23, 2019
@PhlexPlexico
Copy link
Owner Author

Moving this to help wanted as this should be a release in of itself. There's a lot to digest and I'm not sure if I am going to have ample enough time to complete this. If someone wants to read over the APIs, and figure out what exact calls are needed to:

  • Show all matches for a tournamanet
  • Select a tournament
  • Show matches / Scores
    That would be great, would save me some time from rifling through pages of documentation.

@Iwhite67
Copy link

I don't Know pythons but i use api Toornament on php

@PhlexPlexico PhlexPlexico changed the title Toornament API integration [Feature Request] Toornament API integration Aug 6, 2019
@PhlexPlexico
Copy link
Owner Author

This goes hand-in-hand with #112. Considering you can create teams, and matches with Toournament, and probably receive them in JSON, it shouldn't be too bad, so long as you have an associated user ID when you initially get the data.

@PhlexPlexico PhlexPlexico removed enhancement New feature or request that will get implemented. todo Something that will be eventually done, but not right now. labels Jan 14, 2020
@PhlexPlexico PhlexPlexico added the feature suggestion Something to think about. label Jan 14, 2020
@PhlexPlexico PhlexPlexico added wontfix This will not be worked on and removed help wanted Extra attention is needed labels Apr 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature suggestion Something to think about. wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants