-
Notifications
You must be signed in to change notification settings - Fork 0
Feed parameter values
Most users will want to get different feeds for the different leagues offered, and with different language options. As can be seen here https://github.com/HTML24/EfiasDocumentation/wiki/Feed-Basics#injuries we have 3 optional parameters for the feed. We can also pass optional language parameter at the end.
Here are the four available leagues for fetching.
https://feed.efias.com/xml/suspensions/Danish Superliga/
https://feed.efias.com/xml/suspensions/English Premier League/
https://feed.efias.com/xml/suspensions/Spanish Primera Division (La Liga)/
https://feed.efias.com/xml/suspensions/German 1. Bundesliga/
It is possible to add a language parameter that will fetch different translations of the feed. To do this add ?lang= at the end. Currently, these languages are available for fetching like so
English - https://feed.efias.com/xml/suspensions/English Premier League/?lang=en
Danish - https://feed.efias.com/xml/suspensions/English Premier League/?lang=da
As described in https://github.com/HTML24/EfiasDocumentation/wiki/Feed-Basics#client-access you need to pass two parameters along with the request. Your public API key goes in to the api paraemeter, and your hash of the request should go to the h parameter. Adding these to a request will look like so :
Danish - https://feed.efias.com/xml/suspensions/English Premier League/?api=1231231231231231231231231231231231231&hash=abccbaacbbcacababcbacbacacb
There is some leeway for how you format the parameters for the request. Currently the following substitutions are offered:
- Whitespace removal
- Transliteration
This means that the request for the Danish Superliga that uses the string Danish Superliga could be DanishSuperliga. Transliteration makes sure that every character is an ascii character and no special characters are allowed. This means that a player Simon Kjær becomes Simon Kjaer. To see the full transliteration rules we implement, please refer to Transliteration rules for more details.