libkazv
|
#include <refresh.hpp>
Public Member Functions | |
JobResponse (Response r) | |
bool | success () const |
std::string | accessToken () const |
The new access token to use. More... | |
std::optional< std::string > | refreshToken () const |
The new refresh token to use when the access token needs to be refreshed again. More... | |
std::optional< int > | expiresInMs () const |
The lifetime of the access token, in milliseconds. More... | |
Public Member Functions inherited from Kazv::Response | |
std::string | errorCode () const |
std::string | errorMessage () const |
JsonWrap | jsonBody () const |
constexpr bool | success () const |
json | dataJson (const std::string &key) const |
std::string | dataStr (const std::string &key) const |
std::string | jobId () const |
Additional Inherited Members | |
Public Types inherited from Kazv::Response | |
using | StatusCode = int |
Public Attributes inherited from Kazv::Response | |
StatusCode | statusCode |
Body | body |
Header | header |
JsonWrap | extraData |
Kazv::Api::RefreshJob::JobResponse::JobResponse | ( | Response | r | ) |
std::string Kazv::Api::RefreshResponse::accessToken | ( | ) | const |
The new access token to use.
std::optional< int > Kazv::Api::RefreshResponse::expiresInMs | ( | ) | const |
The lifetime of the access token, in milliseconds.
If not given, the client can assume that the access token will not expire.
std::optional< std::string > Kazv::Api::RefreshResponse::refreshToken | ( | ) | const |
The new refresh token to use when the access token needs to be refreshed again.
If not given, the old refresh token can be re-used.
bool Kazv::Api::RefreshResponse::success | ( | ) | const |