Conference
read
Returns every matching row instead of just the first. See get vs read for details.
Request
GET
https://api.srating.io/v1/conference/read?inactive=0POST
fetch('https://api.srating.io/v1', {
'method': 'POST',
'headers': {
'Content-Type': 'application/json',
'X-API-KEY': 'YOUR_API_KEY',
},
'body': JSON.stringify({
'class': 'conference',
'function': 'read',
'arguments': {
'inactive': '0',
}
}),
}).then(response => {
return response.json();
}).then(json => {
console.log(json);
return json;
}).catch(error => {
console.log(error);
});Response
{
"aaa5086f-1095-11ef-9686-72fab666226a": {
"conference_id": "aaa5086f-1095-11ef-9686-72fab666226a",
"code": "BIG TEN",
"name": "Big Ten",
"guid": "67adcaa6-e0f9-4a24-a77b-17806340a129",
"inactive": 0,
"deleted": 0
},
"bbd6197a-1095-11ef-9686-72fab666226a": {
"conference_id": "bbd6197a-1095-11ef-9686-72fab666226a",
"code": "ACC",
"name": "Atlantic Coast Conference",
"guid": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
"inactive": 0,
"deleted": 0
}
}