Hellow, how can I get user badges and his level using playlyfe API?
Hi Kamil,
You can use the Runtime API to get the badges and levels of a player.
Have a look at the "Get Own Profile" route within the v2/runtime API here: https://dev.playlyfe.com/docs/api/v2/runtime.html#/GETPlayerGetOwnProfile
The badges and levels will come in the scores key of the returned data. Badges will be an array of items in the value key for items of metric.type set .
Levels will be returned in objects whose metric.type is state. There will also be a meta key which will tell you what's the next level to be achieved, and how many points are required to get there.
Hope it helps, and feel free to ask if you have further questions.
Warm Regards
Harsh