Skip to content

Commit 8adc72c

Browse files
committed
add team_id
1 parent 0a85cc4 commit 8adc72c

File tree

3 files changed

+638
-0
lines changed

3 files changed

+638
-0
lines changed

source/includes/_changes.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changes
22

3+
### 2017-05-07
4+
* add /team API
5+
* add team_id search in events/(ended|upcoming|inplay)
6+
37
### 2017-04-17
48
* add Head to Head in Event History
59

source/index.html.md

+24
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ Parameter | Required? | Description
110110
--------- | ------- | -----------
111111
sport_id | Yes | [Reference](#sport-id)
112112
league_id | No | useful when you want only one league
113+
team_id | No | useful when you want only one team
113114
day | No | format YYYYMMDD, eg: 20161201
114115
page | No | [Pager reference](#pager)
115116

@@ -134,6 +135,7 @@ Parameter | Required? | Description
134135
--------- | ------- | -----------
135136
sport_id | Yes | [Reference](#sport-id)
136137
league_id | No | useful when you want only one league
138+
team_id | No | useful when you want only one team
137139
day | No | format YYYYMMDD, eg: 20161201
138140
page | No | [Pager reference](#pager)
139141

@@ -316,6 +318,28 @@ league_id | Yes | flag 'has_leaguetable' from [League API](#league)
316318

317319
[league_table.json](samples/league_table.json)
318320

321+
## Team
322+
323+
```shell
324+
curl "https://api.betsapi.com/v1/team?token=YOUR_TOKEN\
325+
&sport_id=1"
326+
```
327+
328+
### HTTP Request
329+
330+
`GET https://api.betsapi.com/v1/team`
331+
332+
### URL Parameters
333+
334+
Parameter | Required? | Description
335+
--------- | ------- | -----------
336+
sport_id | Yes | [Reference](#sport-id)
337+
page | No | [Pager reference](#pager)
338+
339+
### HTTP Response
340+
341+
[team.json](samples/team.json)
342+
319343
# Bet365 API
320344

321345
<aside class="notice">

0 commit comments

Comments
 (0)