POST Users/GetUserAchievementStats
Get achievement stats - used for circles and chart
Request Information
URI Parameters
None.
Body Parameters
RequestUserAchievementStats| Name | Description | Type | Additional information |
|---|---|---|---|
| UserID |
Current Users ID |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserID": 1
}
text/html
Sample:
{"UserID":1}
application/xml, text/xml
Sample:
<RequestUserAchievementStats xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YogaStreamAPIv2"> <UserID>1</UserID> </RequestUserAchievementStats>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Collection of UserAchievementLabels| Name | Description | Type | Additional information |
|---|---|---|---|
| LabelName | string |
None. |
|
| LabelYearMonth |
IE. 202203 |
string |
None. |
| LabelMinutesWatched | integer |
None. |
|
| LabelVideosWatched | integer |
None. |
|
| LabelChallengesWatched | integer |
None. |
|
| LabelNameTotal | string |
None. |
|
| LabelMinutesWatchedTotal | integer |
None. |
|
| LabelVideosWatchedTotal | integer |
None. |
|
| LabelChallengesWatchedTotal | integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"LabelName": "sample string 1",
"LabelYearMonth": "sample string 2",
"LabelMinutesWatched": 3,
"LabelVideosWatched": 4,
"LabelChallengesWatched": 5,
"LabelNameTotal": "sample string 6",
"LabelMinutesWatchedTotal": 7,
"LabelVideosWatchedTotal": 8,
"LabelChallengesWatchedTotal": 9
},
{
"LabelName": "sample string 1",
"LabelYearMonth": "sample string 2",
"LabelMinutesWatched": 3,
"LabelVideosWatched": 4,
"LabelChallengesWatched": 5,
"LabelNameTotal": "sample string 6",
"LabelMinutesWatchedTotal": 7,
"LabelVideosWatchedTotal": 8,
"LabelChallengesWatchedTotal": 9
}
]
text/html
Sample:
[{"LabelName":"sample string 1","LabelYearMonth":"sample string 2","LabelMinutesWatched":3,"LabelVideosWatched":4,"LabelChallengesWatched":5,"LabelNameTotal":"sample string 6","LabelMinutesWatchedTotal":7,"LabelVideosWatchedTotal":8,"LabelChallengesWatchedTotal":9},{"LabelName":"sample string 1","LabelYearMonth":"sample string 2","LabelMinutesWatched":3,"LabelVideosWatched":4,"LabelChallengesWatched":5,"LabelNameTotal":"sample string 6","LabelMinutesWatchedTotal":7,"LabelVideosWatchedTotal":8,"LabelChallengesWatchedTotal":9}]
application/xml, text/xml
Sample:
<ArrayOfUserAchievementLabels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YogaStreamAPIv2">
<UserAchievementLabels>
<LabelChallengesWatched>5</LabelChallengesWatched>
<LabelChallengesWatchedTotal>9</LabelChallengesWatchedTotal>
<LabelMinutesWatched>3</LabelMinutesWatched>
<LabelMinutesWatchedTotal>7</LabelMinutesWatchedTotal>
<LabelName>sample string 1</LabelName>
<LabelNameTotal>sample string 6</LabelNameTotal>
<LabelVideosWatched>4</LabelVideosWatched>
<LabelVideosWatchedTotal>8</LabelVideosWatchedTotal>
<LabelYearMonth>sample string 2</LabelYearMonth>
</UserAchievementLabels>
<UserAchievementLabels>
<LabelChallengesWatched>5</LabelChallengesWatched>
<LabelChallengesWatchedTotal>9</LabelChallengesWatchedTotal>
<LabelMinutesWatched>3</LabelMinutesWatched>
<LabelMinutesWatchedTotal>7</LabelMinutesWatchedTotal>
<LabelName>sample string 1</LabelName>
<LabelNameTotal>sample string 6</LabelNameTotal>
<LabelVideosWatched>4</LabelVideosWatched>
<LabelVideosWatchedTotal>8</LabelVideosWatchedTotal>
<LabelYearMonth>sample string 2</LabelYearMonth>
</UserAchievementLabels>
</ArrayOfUserAchievementLabels>