Skip to main content
Version: 5.7.0

PostScoreToDynamicGroupLeaderboardDaysUTC

Post the group score to the given group leaderboard with a rotation type of DAYS and dynamically create if necessary.

ServiceOperation
leaderboardPOST_GROUP_SCORE_DYNAMIC
caution

This API is deprecated. Please use PostScoreToDynamicGroupLeaderboardUsingConfig instead.

Method Parameters

ParameterDescription
leaderboardIdThe id of the leaderboard.
groupIdThe id of the group.
scoreThe score to post.
dataOptional user-defined data to post with the score.
leaderboardTypethe type of leaderboard
rotationTypedaily, weekly, monthly
rotationResetTimethe date to reset the rotation in milliseconds UTC
retainedCounttimes to retain the leaderboard
numDaysToRotateHow many days between each rotation

Usage

http://localhost:3000
string leaderboardId = "default";
string groupId = "actual_group_id";
int score = 10;
string data = "{\"nickname\":\"batman\"}";
SocialLeaderboardType leaderboardType = "HIGH_VALUE";
Int64 rotationResetTime = 15346346346;
int retainedCount = 2;
int numDaysToRotate = 4;
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.LeaderboardService.PostScoreToDynamicGroupLeaderboardDaysUTC(leaderboardId, groupId, score, data, leaderboardType, rotationResetTime, retainedCount, numDaysToRotate, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": null
}