-
Notifications
You must be signed in to change notification settings - Fork 27
void Instance::getAuthenticatedUser(const std::function<void(const modio::Response& response, const modio::User& user)>& callback);
API endpoint used: Get Authenticated User
Get the authenticated user details. Successful request will return a modio::User Object.
Name | Type | Description |
---|---|---|
callback | const std::function<void(const modio::Response& response, const modio::User& user)>& |
Function called once the process finished. |
Name | Type | Description |
---|---|---|
response | const modio::Response& |
modio::Response object that contains the mod.io response status. |
mod | const modio::User& user |
modio::User object. |
modio_instance.getAuthenticatedUser([&](const modio::Response& response, const modio::User& user)
{
if(response.code == 200)
{
//Mod successfully retrieved
}
});
void Instance::getUserSubscriptions(modio::FilterCreator& filter, const std::function<void(const modio::Response& response, const std::vector<modio::Mod> & mods)>& callback);
API endpoint used: Get User Subscriptions
Get all mod's the authenticated user is subscribed to.
Name | Type | Description |
---|---|---|
filter_creator | modio::FilterCreator& |
modio::FilterCreator object to be customized. |
callback | const std::function<void(const modio::Response& response, const std::vector<modio::Mod>& mods)>& |
Function called once the process finished. |
Name | Type | Description |
---|---|---|
response | const modio::Response& |
modio::Response object that contains the mod.io response status. |
mods | const std::vector<modio::Mod>& |
modio::Mod object vector. |
modio::FilterCreator filter_creator;
filter_creator.setFilterLimit(3);
modio_instance.getUserSubscriptions(filter, [&](const modio::Response& response, const std::vector<modio::Mod> & mods)
{
if(response.code == 200)
{
//User subscriptions successfully retrieved
}
});
void getUserEvents(modio::FilterCreator& filter, const std::function<void(const modio::Response&, const std::vector<modio::ModEvent> & events)>& callback);
API endpoint used: Get User Events
Get events that have been fired specific to the user. The result can be filtered using the modio::FilterCreator.
Name | Type | Description |
---|---|---|
filter_creator | modio::FilterCreator& |
modio::FilterCreator object to be customized. |
callback | const std::function<void(const modio::Response&, const std::vector<modio::ModEvent> & events)>& |
Function called once the process finished. |
Name | Type | Description |
---|---|---|
response | const modio::Response& |
modio::Response object that contains the mod.io response status. |
mod_events | std::vector<modio::ModEvent> |
Vector containing the modio::ModEvent objects returned. |
modio_instance.getUserEvents(filter, [&](const modio::Response& response, const std::vector<modio::ModEvent> & events)
{
if(response.code == 200)
{
//User events successfully retrieved
}
});
void Instance::getUserGames(modio::FilterCreator& filter, const std::function<void(const modio::Response& response, const std::vector<modio::Game> & games)>& callback);
API endpoint used: Get User Games
Get all games the authenticated user added or is a team member of. Successful request will return a vector of modio::Game Objects.
Name | Type | Description |
---|---|---|
filter_creator | modio::FilterCreator& |
modio::FilterCreator object to be customized. |
callback | const std::function<void(const modio::Response& response, const std::vector<modio::Game>& games)>& |
Function called once the process finished. |
Name | Type | Description |
---|---|---|
response | const modio::Response& |
modio::Response object that contains the mod.io response status. |
games | const std::vector<modio::Game>& |
modio::Game object vector. |
modio::FilterCreator filter_creator;
filter_creator.setFilterLimit(3);
modio_instance.getUserGames(filter, [&](const modio::Response& response, const std::vector<modio::Game> & games)
{
if(response.code == 200)
{
//User games successfully retrieved
}
});
void Instance::getUserMods(modio::FilterCreator& filter, const std::function<void(const modio::Response& response, const std::vector<modio::Mod> & mods)>& callback);
API endpoint used: Get User Mods
Get all mods the authenticated user added or is a team member of. Successful request will return a vector of modio::Mod Objects.
Name | Type | Description |
---|---|---|
filter_creator | modio::FilterCreator& |
modio::FilterCreator object to be customized. |
callback | const std::function<void(const modio::Response& response, const std::vector<modio::Mod>& mods)>& |
Function called once the process finished. |
Name | Type | Description |
---|---|---|
response | const modio::Response& |
modio::Response object that contains the mod.io response status. |
mods | const std::vector<modio::Mod>& |
modio::Mod object vector. |
modio::FilterCreator filter_creator;
filter_creator.setFilterLimit(3);
modio_instance.getUserMods(filter, [&](const modio::Response& response, const std::vector<modio::Mod> & mods)
{
if(response.code == 200)
{
//User mods successfully retrieved
}
});
void Instance::getUserModfiles(modio::FilterCreator& filter, const std::function<void(const modio::Response& response, const std::vector<modio::Modfile> & modfiles)>& callback);
API endpoint used: Get User Modfiles
Get all modfiles the authenticated user uploaded. Successful request will return a vector of modio::Modfile Objects.
Name | Type | Description |
---|---|---|
filter_creator | modio::FilterCreator& |
modio::FilterCreator object to be customized. |
callback | const std::function<void(const modio::Response& response, const std::vector<modio::Modfile>& modfiles)>& |
Function called once the process finished. |
Name | Type | Description |
---|---|---|
response | const modio::Response& |
modio::Response object that contains the mod.io response status. |
modfiles | const std::vector<modio::Modfile>& |
modio::Modfile object vector. |
modio::FilterCreator filter_creator;
filter_creator.setFilterLimit(3);
modio_instance.getUserModfiles(filter, [&](const modio::Response& response, const std::vector<modio::Modfile> & modfiles)
{
if(response.code == 200)
{
//User modfiles successfully retrieved
}
});
void Instance::getUserRatings(modio::FilterCreator& filter, const std::function<void(const modio::Response& response, const std::vector<modio::Rating> & ratings)>& callback);
API endpoint used: Get User Ratings
Get all mod rating's submitted by the authenticated user. Successful request will return a vector of modio::Rating Objects.
Name | Type | Description |
---|---|---|
filter_creator | modio::FilterCreator& |
modio::FilterCreator object to be customized. |
callback | const std::function<void(const modio::Response& response, const std::vector<modio::Rating>& ratings)>& |
Function called once the process finished. |
Name | Type | Description |
---|---|---|
response | const modio::Response& |
modio::Response object that contains the mod.io response status. |
ratings | const std::vector<modio::Rating>& |
modio::Rating object vector. |
modio::FilterCreator filter_creator;
filter_creator.setFilterLimit(3);
modio_instance.getUserRatings(filter, [&](const modio::Response& response, const std::vector<modio::Rating> & ratings)
{
if(response.code == 200)
{
//User ratings successfully retrieved
}
});
- Home
- Table of Contents
- Getting Started
- SDK Methods
- Creators
- Editors
- Schemas
- modio::Avatar
- modio::Comment
- modio::Dependency
- modio::Download
- modio::Error
- modio::Filehash
- modio::Game
- modio::GameTagOption
- modio::Header
- modio::Icon
- modio::Image
- modio::InstalledMod
- modio::Logo
- modio::Media
- modio::MetadataKVP
- modio::Mod
- modio::ModEvent
- modio::Modfile
- modio::QueuedModDownload
- modio::QueuedModfileUpload
- modio::Rating
- modio::Response
- modio::Stats
- modio::Tag
- modio::User
- Debugging
- Constants
-
C Compatibility
- Methods
- Initialization, Process and Shutdown (C compatible)
- User Authentication (C compatible)
- Mods (C compatible)
- Modfiles (C compatible)
- Media (C compatible)
- Subscriptions (C compatible)
- Events (C compatible)
- Stats (C compatible)
- Tags (C compatible)
- Ratings (C compatible)
- Metadata KVP (C compatible)
- Dependencies (C compatible)
- Comments (C compatible)
- Reports (C compatible)
- Me (C compatible)
- Downloads (C compatible)
- Uploads (C compatible)
- Logs (C compatible)
- External Auth (C compatible)
- Configuration (C compatible)
- Creators
- Editors
- Schemas
- ModioAvatar
- ModioComment
- ModioDependency
- ModioDownload
- ModioError
- ModioFilehash
- ModioGame
- ModioGameTagOption
- ModioHeader
- ModioIcon
- ModioImage
- ModioInstalledMod
- ModioListNode
- ModioLogo
- ModioMedia
- ModioMetadataKVP
- ModioMod
- ModioModEvent
- ModioModfile
- ModioQueuedModDownload
- ModioQueuedModfileUpload
- ModioRating
- ModioResponse
- ModioStats
- ModioTag
- ModioUser
- Methods
- Building