aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/openid.cpp
blob: 5c93a2d7bc56b7e95066f7e0973f7c55816a0cab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/******************************************************************************
 * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
 */

#include "openid.h"

using namespace Quotient;

RequestOpenIdTokenJob::RequestOpenIdTokenJob(const QString& userId,
                                             const QJsonObject& body)
    : BaseJob(HttpVerb::Post, QStringLiteral("RequestOpenIdTokenJob"),
              makePath("/_matrix/client/r0", "/user/", userId,
                       "/openid/request_token"))
{
    setRequestData(RequestData(toJson(body)));
}