sontdb

SO National Team DataBase Interface

Sokker Organizer main page

As of version 0.71, Sokker Organizer is able to send players data to a National Team DataBase (NTDB).

This is done through an HTTP POST message to a predefined URL for the NTDB data entry script (ex.: http://fairyland.com/enter_player.php).

The list of URLs can be manually modified in "resources/ntdb_urls.txt"

One message per player is sent, sequentially.

POST fields sent are:

    • pid: player ID.
    • playername: full name of the player, i.e. name + surname
    • name: only name of the player
    • surname: only surname of the player
    • teamid: teamID of the player's team.
    • teamname: name of the player's team.
    • userid: userID of the player's Owner.
    • username: user name of the player's Owner.
    • countryid: country ID of the player's nationality. Useful for a one site hosting several NTDBs and/or double-checking data.
    • value: player value in polish currency (standard for Sokker).
    • wage: wage (or salary) in polish currency (standard for Sokker).
  • age
    • form Form skill, from 0 to 17.
    • exp Experience skill, from 0 to 17.
    • teamwork Teamwork skill, from 0 to 17.
    • sta Stamina skill, from 0 to 11.
    • pac Pace skill, from 0 to 17.
    • tec Technique skill, from 0 to 17.
    • pas Passing skill, from 0 to 17.
    • kee Keeper skill, from 0 to 17.
    • def Defender skill, from 0 to 17.
    • pla Playmaker skill, from 0 to 17.
    • str: Scoring skill, from 0 to 17.

The NTDB script should return a text starting with any one of these messages:

OK : for successful reception and approval of the data.

FAILED: for successful reception of the player data, but it was rejected for any reason (ex.: failed to meet NT requirements, too old, etc).

ERROR: for any other scenario in which not all of the data was received/processed (ex.: no internal connection to DB, timeout, etc).

after the resulting status message, any other text can be added to the response.