History id can be obtained from calls, Type 1 and Type 8.
- We can call a Type 11 to get all the latests hids from each sport:
/exporter/?state=clientStructure&type=11&usr=USERNAME&pwd=password
or we can call a Type 1 call with a sport id and history id=0 to get the latest hid for that sport:
/exporter/?state=clientUpdate&usr=USERNAME&pwd=PASSWORD&type=1&s=1&id=0
- Then we make a Type 1 call call using that history id:
/exporter/?state=clientUpdate&usr=USERNAME&pwd=PASSWORD&type=1&s=1&h=3577864
- If something was updated in the above fixtures it will provide us with the updates only. If nothing changed (no updates occurred) it will return an empty result. We have to keep calling the above type 1 call until an update occurs. Every time we make a Type 1 call we get a new hid which we have to use for our next call to get the updates.
- Type 8 can be used as type 1 but this time we only get the finished matches updates.
- Has to be noticed that history id is an incremental unique id generated by the system and is NOT a sequential number.
- The history id for each sport is returned in the sport tag, with parameter hid and for piped output it will be the value between the two first pipes.