aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/openid.cpp
blob: 8349e6dbec9bd097b01710e03067dc4350893192 (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/v3", "/user/", userId,
                       "/openid/request_token"))
{
    setRequestData(RequestData(toJson(body)));
}