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