TestCredits
Test the credits data via HTTP in Streamer.bot
Request
/TestCredits
GET
No parameters
Response
Returns the same structure as /GetCredits
but with dummy data filled in for testing purposes.
{
"Events": {
"Follows": [],
"Cheers": [],
"Subs": [],
"ReSubs": [],
"GiftSubs": [],
"GiftBombs": [],
"Raided": [],
"RewardRedemptions": [],
"GoalContributions": [],
"GameUpdates": [],
"Pyramids": []
},
"HypeTrainConductor": [],
"HypeTrainContributors": [],
"User": {
"Editors": [],
"Moderator": [],
"Subscriber": [],
"VIPs": [],
"Users": [],
"regulars": []
},
"Custom": {},
"TopBits": {
"All": [],
"Month": [],
"Week": []
},
"TopChannelRewards": []
}
Example
curl -X GET http://127.0.0.1:7474/TestCredits
const response = await fetch('http://127.0.0.1:7474/TestCredits');
const data = await response.json();
console.log(data);
import requests
response = requests.get('http://127.0.0.1:7474/TestCredits')
data = response.json()
print(data)