Go to the documentation of this file.
23 class GetTokenOwnerJob :
public BaseJob {
41 std::string
userId()
const;
48 std::optional<std::string>
deviceId()
const;
54 std::optional<bool>
isGuest()
const;
67 , std::string _accessToken
GetTokenOwnerJob(std::string serverUrl, std::string _accessToken)
Gets information about the owner of an access token.
Definition: whoami.cpp:35
Definition: location.hpp:26
static BaseJob::Query buildQuery()
Definition: whoami.cpp:15
Definition: location.hpp:10
Definition: basejob.hpp:90
std::string userId() const
The user ID that owns the access token.
Definition: whoami.cpp:83
GetTokenOwnerJob withData(JsonWrap j) &&
Definition: whoami.cpp:55
JobResponse(Response r)
Definition: whoami.cpp:69
Definition: location.hpp:10
std::optional< std::string > deviceId() const
Device ID associated with the access token.
Definition: whoami.cpp:94
Gets information about the owner of an access token.
Definition: whoami.hpp:25
Definition: jsonwrap.hpp:22
std::optional< bool > isGuest() const
When true, the user is a Guest User.
Definition: whoami.cpp:105
static constexpr auto needsAuth()
Definition: whoami.hpp:61
::Kazv::Body Body
Definition: basejob.hpp:100
bool success() const
Definition: whoami.cpp:72
static BaseJob::Body buildBody()
Definition: whoami.cpp:23
Definition: basejob.hpp:50
Definition: whoami.hpp:32