blob: 284ae4ff9a820730f435b3d3ce5976a6ab422413 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/******************************************************************************
* THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
*/
#include "refresh.h"
using namespace Quotient;
RefreshJob::RefreshJob(const QString& refreshToken)
: BaseJob(HttpVerb::Post, QStringLiteral("RefreshJob"),
makePath("/_matrix/client/v3", "/refresh"), false)
{
QJsonObject _dataJson;
addParam<IfNotEmpty>(_dataJson, QStringLiteral("refresh_token"),
refreshToken);
setRequestData({ _dataJson });
addExpectedKey("access_token");
}
|