Go to the documentation of this file.
12 struct RequestTokenResponse
42 if (! jo.is_object()) { jo = json::object(); }
53 if (jo.contains(
"sid"s)) {
54 result.sid = jo.at(
"sid"s);
56 if (jo.contains(
"submit_url"s)) {
57 result.submitUrl = jo.at(
"submit_url"s);
Definition: request_token_response.hpp:14
static void to_json(json &jo, const RequestTokenResponse &pod)
Definition: request_token_response.hpp:40
Definition: location.hpp:26
Definition: location.hpp:10
nlohmann::json json
Definition: jsonwrap.hpp:20
Definition: location.hpp:10
void addToJsonIfNeeded(json &j, std::string name, T &&arg)
Definition: types.hpp:80
static void from_json(const json &jo, RequestTokenResponse &result)
Definition: request_token_response.hpp:50
std::optional< std::string > submitUrl
An optional field containing a URL where the client must submit the validation token to,...
Definition: request_token_response.hpp:34
std::string sid
The session ID.
Definition: request_token_response.hpp:22