The following article will show you how you can get all the competitions that relevant for requested filters. Competitions are relevant only for Outright Sports.
Method - POST
URL - https://stm-api.lsports.eu/Outright/GetCompetitions
Body Scheme
{ "PackageId": YourPackageId, "UserName": "YourUserName", "Password": "YourPassword", "LocationIds":[2], "SportIds":[687888], "SubscriptionStatus":"1" }
Parameter breakdown
Parameter | Description | Mandatory Field |
---|---|---|
Username | Username as it appears in the package | ✓ |
Password | Password as it appears the package | ✓ |
PackageId | PackageId as it provide by LSports | ✓ |
SportIds | SportsId as a filter opportunity Type:List <int> | X |
LocationIds | LocationId as a filter opportunity Type : List <int> | X |
CompetitionIds | CompetitionId as a filter opportunity Type:List <int> | X |
SubscriptionStatus | Filter by subscription status to get your subscribed/not subscribed competitions (1 = Not Subscribed, 2 = Subscribed). empty field returns all competitions | X |
Response Scheme
{ "Header": { "HttpStatusCode": 200 }, "Body": { "Competitions": [ { "Id": 2767, "Name": "Lingfield", "Type": 1, "TrackId": 333 }, { "Id": 2770, "Name": "Brighton", "Type": 1, "TrackId": 335 } }
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article