Implement Randers00's recent-messages API (WIP)

This commit is contained in:
Rasmus Karlsson 2019-04-04 11:47:54 +02:00
parent 66294ed99b
commit 81a4bff131

View file

@ -577,11 +577,9 @@ Outcome TwitchChannel::parseLiveStatus(const rapidjson::Document &document)
void TwitchChannel::loadRecentMessages()
{
static QString genericURL =
"https://tmi.twitch.tv/api/rooms/%1/recent_messages?client_id=" +
getDefaultClientID();
"https://recent-messages.robotty.de/v1/recent-messages/%1";
NetworkRequest request(genericURL.arg(this->roomId()));
request.makeAuthorizedV5(getDefaultClientID());
NetworkRequest request(genericURL.arg(this->getName()));
request.setCaller(QThread::currentThread());
// can't be concurrent right now due to SignalVector
// request.setExecuteConcurrently(true);