diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-06-11 19:42:08 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-06-11 21:33:54 +0200 |
commit | ed05d9d589fe3d36bd3714e648016352179afbef (patch) | |
tree | b86c1c9417d1037f02011cc9b651ab3acb3c77cb /lib/csapi/refresh.cpp | |
parent | 3a2e7f19c97289fb962b1c0ba4439870bbd0f31d (diff) | |
download | libquotient-ed05d9d589fe3d36bd3714e648016352179afbef.tar.gz libquotient-ed05d9d589fe3d36bd3714e648016352179afbef.zip |
Regenerate API files using latest matrix-spec
New:
- refresh tokens support (changes in login.* and registration.*;
RefreshJob);
- GetRelatingEvents[WithRelType[AndEventType]]Job
Changed space_hierarchy.*:
- childrenState is of type StateEvents now; limit and maxDepth are
(omittable) integers, not doubles.
- no more unused `stripped_state.h` file inclusion.
Diffstat (limited to 'lib/csapi/refresh.cpp')
-rw-r--r-- | lib/csapi/refresh.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/csapi/refresh.cpp b/lib/csapi/refresh.cpp new file mode 100644 index 00000000..8d4a34ae --- /dev/null +++ b/lib/csapi/refresh.cpp @@ -0,0 +1,17 @@ +/****************************************************************************** + * 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 _data; + addParam<IfNotEmpty>(_data, QStringLiteral("refresh_token"), refreshToken); + setRequestData(std::move(_data)); + addExpectedKey("access_token"); +} |