This extension helps sokker.org authenticated users to get JSON data so it can be used to improve the management of your team.
This is an extension helper for:
Request data from the sokker.org API with an authenticated account and expose it by allowing them to copy it to the clipboard.
Requirements
You need to be authenticated on your sokker.org account.
You need to grant access to the extension after installing(not granted automatically)
Some information now requires to be a plus member.
Quick Guide
There will be four tabs:
User
user: Current data of the authenticated user.
Players
player: You can get the player data by providing the player id.
team: You can get the squad players' data by providing the team id.
Juniors
juniors: Info about juniors' school.
Training
cweek: Current week training summary.
tsummary: Last four training weeks summary.
All(This section will now return all the reports for plus members and only the current week report for non plus members)
Most used sokker data(all available requests except player data - included on players property).
Note: Instead of require player and team ids we first made the current request to get team id
and then we request all players for this team id. Finally we request all player reports using
Promise.all and expose it on the training property.
ie:
cweek: {players: Array(17)}
juniors: {juniors: Array(12)}
players: {players: Array(17), total: 17}
training: (17) [{…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}]
tsummary: {weeks: Array(6)}
user: {id:*******, name: '*****', team: {…}, budget: {…}, roles: Array(0), …}