There are 2 different ways of calling the XML, Update calls and Structure calls
Update Calls | Eg. /exporter/?state=clientUpdate&usr=user&pwd=pass&type=1&s=1&h=10881500 |
Structure Calls | Eg. /exporter/?state=clientStructure&usr=user&pwd=pass&type=11&s=1 |
Parameters
usr | Your xscores username |
pwd | Your xscores password |
type | request type number |
state | It should be clientUpdate or clientStructure |
s | sport id |
ss | season |
c | country |
id | competition |
h | the latest history id the client has for a sport |
start | the start date for a custom search in format YYYY-MM-DD |
end | the end date for a custom search in format YYYY-MM-DD |
l (small L) | the league id, can be many, separate with ; |
viewLast | if you want to see the standings for the last 2 matches then viewLast=2, for all matches viewLast=0 |
mid | is the parameter used by type 10 to get a specific match |
Security Requirements
- This service demands a username and password, a static IP (a range of up to 10 IPs can be used to access exporter) and an active account, also there are update frequency limitations
Output Specifications
Full documentation of the output is defined in the following schemas:
http://admin.xscores.com/xml/xmlFeedVer1_0.xsd
http://admin.xscores.com/xml/xmlTableVer1_0.xsd
http://admin.xscores.com/xml/xmlStructureVer1_0.xsd
Data Conversion
Conversions of the data are done by predefined xsl files, though we support custom user types. As long as the user builds their own xsl based on the schema we publish and sign according agreement we are able to parse the data to customer definitions.
Data Validation
- Input
- Username
- Password
- The type or request
- The sport
- The return type
- The history id for sport
- The start date (optional except type=5 calls)
- The end date (optional except type=5 calls)
- League id (optional except type=6 and type=7 calls)
- ViewLast (optional. Used in tables requests)
- Output
- Validation of output data is done on a schema called at:
- http://admin.xscores.com/xml/xmlFeedVer1_0.xsd
- or
- http://admin.xscores.com/xml/xmlTableVer1_0.xsd
- or
- http://admin.xscores.com/xml/xmlStructureVer1_0.xsd