Manage Players In-Game
Last updated
Was this helpful?
Was this helpful?
// Set to private
LootLockerSDKManager.SetProfilePrivate((response) =>
{
if (response.success)
{
Debug.Log("profile successfully to private");
}
else
{
Debug.Log("failed setting profile to private");
}
});
// Set to public
LootLockerSDKManager.SetProfilePublic((response) =>
{
if (response.success)
{
Debug.Log("profile successfully to public");
}
else
{
Debug.Log("failed setting profile to public");
}
});
# Set to private
var response = await LL_Players.SetPlayerProfilePublic.new().send()
if(!response.success) :
# Request failed, handle errors
pass
else:
# Request succeeded, use response as applicable in your game logic
pass
# Set to public
var response = await LL_Players.SetPlayerProfilePrivate.new().send()
if(!response.success) :
# Request failed, handle errors
pass
else:
# Request succeeded, use response as applicable in your game logic
passcurl -X POST "https://api.lootlocker.io/game/v1/player/profile/public" \
-H "x-session-token: your_token_here"{
"success": true
}curl -X DELETE "https://api.lootlocker.io/game/v1/player/profile/public" \
-H "x-session-token: your_token_here"{
"success": true
}