Achievements Plugins Functions
Get Available Achievements
Retrieves a list of achievements for the current user based on the provided parameters.
- Unity3D
- API
- TypeScript
var achievements = await ServiceHub.Services.Achievement.GetAchievements(new GetAchievementParams{});
curl --location 'https://link.dynamicpixels.dev/game/[CLIENT_ID]/api/table/services/achievements?justDone=false&label=[LABEL-OPTIONAL]&skip=[SKIP]&limit=[LIMIT]' \
--header 'Authorization: Bearer [TOKEN FROM AUTH LEVEL]
DynamicPixels.Services.Achievements.GetAchievements(): Promise<Achievement[]>
Unlock a achievement
Unlocks an achievement for the current user based on the provided parameters.
- Unity3D
- API
- TypeScript
var achievements = await ServiceHub.Services.Achievement.UnlockAchievement(new UnlockAchievementParams
{
AchievementId = 0,
StepId = 0
});
curl --location 'https://link.dynamicpixels.dev/game/[CLIENT_ID]/api/table/services/achievements' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer [TOKEN FROM AUTH LEVEL]
--data '{
"achievement_id": [ACHIEVEMENT ID],
"step_id": [STEP ID]
}'
DynamicPixels.Services.Achievements.UnlockAchievements(input: UnlockAchievementParams): Promise<void>