joesaunderson / sportmonks-soccer

PHP API Client for Sportmonks Soccer API
MIT License
22 stars 14 forks source link

Multiple or nested endpoints? #13

Closed Kcko closed 4 years ago

Kcko commented 4 years ago

How can i set nested endpoints?

joesaunderson commented 4 years ago

What do you mean by nested endpoints?

Kcko commented 4 years ago

Hi,

eg: &include=fixtures.referee,fixtures.localTeam.coach,fixtures.visitorTeam.coach ->setIncludes(['fixtures.referee', ...]); // ok my inattention

Kcko commented 4 years ago

And further: where can I use additional parameters?

for example: ->setLeagues(a,b,c) // generate url &league=1,2,3

Where and how can I use it? What makes this part of url?

I work with SM over 2 years and can´t find something about this "option".

joesaunderson commented 4 years ago

For this Api Request:

https://www.sportmonks.com/docs/football/2.0/fixtures/a/get-by-date/11

There is a leagues parameter (not an include) which supports a comma separated list of league id's

Kcko commented 4 years ago

@joesaunderson Thx for link, i don't use this view, I didn't know it