Transfers
read
Returns every matching row instead of just the first. See get vs read for details.
Drop player_id from a get request to get every transfer for a season in one call.
Request
GET
https://api.srating.io/v1/cbb_transfer_player_season/read?season=2024POST
fetch('https://api.srating.io/v1', {
'method': 'POST',
'headers': {
'Content-Type': 'application/json',
'X-API-KEY': 'YOUR_API_KEY',
},
'body': JSON.stringify({
'class': 'cbb_transfer_player_season',
'function': 'read',
'arguments': {
'season': 2024,
}
}),
}).then(response => {
return response.json();
}).then(json => {
console.log(json);
return json;
}).catch(error => {
console.log(error);
});Response
{
"9faa2192-fa16-11ee-9686-72fab666226a": {
"cbb_transfer_player_season_id": "9faa2192-fa16-11ee-9686-72fab666226a",
"player_id": "c817c935-ad56-11ed-9185-b6be2f39279c",
"season": 2024,
"committed_team_id": "7c414343-8549-11ed-bf01-5296e1552828",
"committed": 1,
"guid": "8c2cd51d-9c4a-4014-8c21-70549c422e36",
"deleted": 0
},
"a0c1d2e3-fa16-11ee-9686-72fab666226a": {
"cbb_transfer_player_season_id": "a0c1d2e3-fa16-11ee-9686-72fab666226a",
"player_id": "b4d3e2f1-ad56-11ed-9185-b6be2f39279c",
"season": 2024,
"committed_team_id": null,
"committed": 0,
"guid": "3d4e5f6a-7b8c-4d9e-0f1a-2b3c4d5e6f7a",
"deleted": 0
}
}