aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/refresh.cpp
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-06-12 15:04:18 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-06-12 15:04:18 +0200
commita831d6f9cd55e33061e748b29cf256ba84ece20d (patch)
tree35443bf8a5006c6d8498bcd9bad6cb280107eac9 /lib/csapi/refresh.cpp
parent7d4b46e6daf656a1e97426cb1f2f8c99c68c4dda (diff)
parent9e594bd1d49dc0e1fdb8b74cef11fe3bfa3fdc1e (diff)
downloadlibquotient-a831d6f9cd55e33061e748b29cf256ba84ece20d.tar.gz
libquotient-a831d6f9cd55e33061e748b29cf256ba84ece20d.zip
Merge branch 'kitsune/more-gtad-fixes' into dev
Diffstat (limited to 'lib/csapi/refresh.cpp')
-rw-r--r--lib/csapi/refresh.cpp17
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");
+}