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() void TwitchChannel::loadRecentMessages()
{ {
static QString genericURL = static QString genericURL =
"https://tmi.twitch.tv/api/rooms/%1/recent_messages?client_id=" + "https://recent-messages.robotty.de/v1/recent-messages/%1";
getDefaultClientID();
NetworkRequest request(genericURL.arg(this->roomId())); NetworkRequest request(genericURL.arg(this->getName()));
request.makeAuthorizedV5(getDefaultClientID());
request.setCaller(QThread::currentThread()); request.setCaller(QThread::currentThread());
// can't be concurrent right now due to SignalVector // can't be concurrent right now due to SignalVector
// request.setExecuteConcurrently(true); // request.setExecuteConcurrently(true);