Team
get
This request will find the first matching row and typically only used when passing in the team_id argument.
Request
GET
https://api.srating.io/v1/team/get?team_id=87019264-8549-11ed-bf01-5296e1552828POST
fetch('https://api.srating.io/v1', {
'method': 'POST',
'headers': {
'Content-Type': 'application/json',
'X-API-KEY': 'YOUR_API_KEY',
},
'body': JSON.stringify({
'class': 'team',
'function': 'get',
'arguments': {
'team_id': '87019264-8549-11ed-bf01-5296e1552828',
}
}),
}).then(response => {
return response.json();
}).then(json => {
console.log(json);
return json;
}).catch(error => {
console.log(error);
});Response
{
"team_id": "87019264-8549-11ed-bf01-5296e1552828",
"char6": "PURDUE",
"code": "Purdue",
"name": "Purdue Boilermakers",
"alt_name": "Purdue",
"primary_color": "#010101",
"secondary_color": null,
"guid": null,
"deleted": 0
}