SDK
SDK C++ v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

This SDK has been deprecated because of stability issues. It is not advised to use it in a production environment.

User class getters #

content #

Returns a JSON string representing the user's content stored by Kuzzle.

Signature #

Copied to clipboard!
const std::string& content() const;

id #

Returns the user's unique identifier (or kuid).

Signature #

Copied to clipboard!
const std::string& id() const;

profile_ids #

Returns the list of profile identifiers attached to this user.

Signature #

Copied to clipboard!
const std::vector<std::string>& profile_ids() const;

Usage #

Copied to clipboard!
kuzzleio::User user;
std::string user_content = user.content();
std::string user_id = user.id();
std::vector<std::string> profile_ids = user.profile_ids();