LiveScore
Livrable 1 : https://app.asana.com/0/1201962385889957/1202524227839808
Wordpress :
Page Setting :
Soccer
UEFA
Payoff
Repeater
FR | list bookmaker 3
EN | list bookmaker 2
liga ES
Playoff
Repeater
ES | list bookmaker 1
EN | list bookmaker 2
Competitions:
→ api_id
→ sport
→ name
→ short_name (Ex: English Premier League: EPL)
→ country
→ start_time (date time)
→ end_time (date time)
Bookmaker → linké a une competition → event
→ api_id (tools)
→ Name BET365
→ country ES \ uk
→ Afiliate link → string ndd.tld/go-bet365-es \ ndd.tld/go-bet365-uk
Events
→ api_id
→ datetime_event
→ teams (repeater)
→ relational [CPT team → WP_Post ID]
→ status (home/away)
→ score → Gestion des scores extra ? (prolongation / penalties ?)
→ event status (Not started, finished…)
→ Stadium
→ Round
→ Comments (add_term_meta)
→ Incident (add_term_meta)
→ api_id
→ name
→ type
→ datetime_incident
→ team (post object)
→ player 1 ?
→ player 2 ?
→ Lineup (repeater) (peut-être à passer dans events → teams repeater)
→ player (post object)
→ Number of player
→ Live (bool) → tu as le status Event (inprogress)
→ odds []
→ FR
→ EN
bet365
→ first half
→ home : 1,4
→ away : 1,5
→ draw: 3,5
→full match
unibet
betano
→ UK
Team
→ api_id
→ name
→ short_name (Ex: Paris Saint Germain: PSG) (to check ?)
→ country
→ logo
→ shirt
→ coach
Player
→ api_id
→ number (??) → Si plusieurs equipes tu n’as pas le meme numero (à mon avis ça va dans team player repeater, Ignacio)
→ name
→ poids ?? (needed ?)
→ taille ?? (needed ?)
→ country
→ transfert ? (needed ?)
l’historique du joueur de maniere global ?
Tools:
https://nsn.n10.xyz/docs/?nsn_token=mKji_-(5nBg26TRZD6543-
/api/v2/competitions
args:
→ sport_id (required)
→ name (string)
→ upcoming
→ ended
→ table
→ season
Data missing :
→ last_update (timestamp)
Already Have :
“id": 112, "name": "Austria Cup", "short_name": null, "has_leaguetable": 1, "has_toplist": 1, "country": "at", "sport": "Soccer"
“seasons” ⇒
start_time
end_time
name
/api/v2/competitions/{id}
args:
→ id (required)
→ upcoming bool (optional)
→ table bool (optional)
→ ended bool (optional)
→ season bool (optional)
→ tips bool (optional)
→ seo bool (optional)
Data missing :
tips
seo-contents
Already Have :
season
start_time
end_time
name
short_name
has_leaguetable has_toplist
country
→ table
→ upcoming. ## A supprimer
upcoming_events ## A supprimer
→ ended ## A supprimer
ended_events ## A supprimer
/api/v2/events/
args:
→ sport_id (optional)
→ competition_id (int) (optional)
→ competitions_id (int,int,int)
→ name (string)
Data missing :
args:
→ inplay bool (optional)
→ last_update (timestamp)
/api/v2/events/{id} (123 = paris vs marseille)
args:
→ id (required)
Data missing :
→ lineup (home/away)!!!!
Exemple:
"teams": [
{
"id": 14141,
"name": "Atletico Madrid",
"country": "es",
"image_id": 2836,
"sport": "Soccer",
"status": "home",
"shirt_type": "home" (second, third etc...). - test
"lineup" : [
{
"player_id": 3909523,
"team_player_id": 30493049, (if different than player_id)
"player_name": "Thierry Henry",
"player_number": 9,
"player_position": "avant-centre",
"player_pos": 20,
"player_lineup_type": 115
},
{
"player_id": 3909525,
"player_name": "Kylian Mbappe",
"player_number": 10,
"player_position": "avant-centre-droit",
"player_lineup_type": 116
},
]
},
{
"id": 15481,
"name": "Man Utd",
"country": "gb",
"image_id": 35,
"sport": "Soccer",
"status": "away",
"shirt_type": "away" (second, thirt etc...)
}
],
Tips:
"tips": {
"BTTS": [
{
"id": 24,
"event_id": 235658,
"category": "BTTS",
"featured": 1,
"lang": "fr",
"content": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed consequat dignissim ornare. Proin nec diam malesuada, rutrum odio nec, gravida massa. Interdum et malesuada fames ac ante ipsum primis in faucibus. Suspendisse eu felis eu tortor consectetur malesuada ac vitae diam.</p>",
"created_at": "2022-09-08T08:18:59.000000Z",
"updated_at": "2022-09-08T14:23:03.000000Z",
"odds" : {
"unibet": "1,7"
}
}
],
}
Already Have : example: https://staging.n10.xyz/api/v2/events/193992?nsn_token=mKji_-(5nBg26TRZD6543-&competition_id=41
odds → [
data : [
FRA : [
bet365 : [
bookmaker_id : N,
1x2 : [
home: 1,42
]
]
]
]
]
/api/v2/teams/
args:
→ sport_id (required)
→ name (string)
Data missing :
→ Squad
→ coach/manager
Already Have :
/api/v2/teams/{id}
args:
→ id (required)
data missing :
Stats des derniers matchs (last events played)
Team Logo
Shirt → type HOME or AWAY?
Shirt → base64
"shirts": [
{
"type": "home",
"shirt": "base64"
},
{
"type": "second",
"shirt": "base64"
}
]
Already Have :
/api/v2/players/ → not ok team_id=12345&name=ronaldo (Jalon 2)
args:
→ team_id (required)
→ name (string)
Data missing :
→ Nom (fullname)
→ gender
→ weight (KG)
→ height (CM)
→ position
→ status (active/or retired)
→ country (citizenship)
→ birthday
Already Have :
/api/v2/players/{id} (5432 = Messi)
args:
Data missing :
→ Nom (fullname)
→ gender
→ weight (KG)
→ height (CM)
→ position
→ status (active/or retired)
→ country (citizenship)
→ birthday
→ Transfert / Career history ? : Teams / Seasons / Games Played / Goals / Assists / Yellow-red Cards
→ Teams
→ Injuries ?
→ SEO Content ?
Already Have :
/api/v2/bookmakers/
args :
sport_id: (optional)
country (optional)
data : [
fr : [
bet365 : [
1x2 : [
home: 1,42
]
]
betclic : [
1x2 : [
home: 1,42
]
]
]
en:
…
]
/api/v2/bookmakers/{id}
data : [
bet365 : [
1x2 : [
home: 1,42
]
]
]
Aucun intérêt à avoir les odds dans les bookmakers pour cet endpoint
Pour savoir à quoi correspondent les valeurs des outcomes : https://eclient.enetpulse.com/docs/odds/outcomes
Events → has many → bookmakers → odds
/api/v2/countries
"id": 1, "name": "Denmark", "continent": "Europe", "iso_code": "DNK" },
Ignacio Weekend 28/08 Backend update:
- https://app.asana.com/0/1201962385889957/1202713149170563/f https://docs.google.com/document/d/16uJY4ngW4sH32Q8PP15htlLm8i8EtaJiVTsxMvupTKc/edit#heading=h.nqb8ip8szwkv
- Check all acf fields for Events, Teams, Players
Providers: