Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement xpGetUserMeta procedure #506

Open
KallynGowdy opened this issue Jul 11, 2024 · 0 comments · May be fixed by #572
Open

Implement xpGetUserMeta procedure #506

KallynGowdy opened this issue Jul 11, 2024 · 0 comments · May be fixed by #572
Assignees
Labels
area:backend Is related to the backend server. (Everything in aux-records and aux-server/aux-backend) area:xp-api Everything related to the xpAPI enhancement New feature or request

Comments

@KallynGowdy
Copy link
Member

Name: xpGetUserMeta
HTTP: GET /api/v2/xp/user/meta
Authentication: REQUIRED - sessionKey
Input: none
Operation: Get XpUser metadata by sessionKey.userId. Should validate the user ID and return information about the user's XpUser. The returned information should be limited to the information specified below.
Success Output:

{
    success: true,
    accountBalance: 123, // 0 if not a coach
    accountCurrency: 'usd',
    requestedRate: 0,
    ...getUserInfo(userId)
}
@KallynGowdy KallynGowdy converted this from a draft issue Jul 11, 2024
@KallynGowdy KallynGowdy added enhancement New feature or request area:backend Is related to the backend server. (Everything in aux-records and aux-server/aux-backend) area:xp-api Everything related to the xpAPI labels Jul 11, 2024
@LandonSiler LandonSiler linked a pull request Nov 19, 2024 that will close this issue
@KallynGowdy KallynGowdy moved this from In progress to In review in CasualOS Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:backend Is related to the backend server. (Everything in aux-records and aux-server/aux-backend) area:xp-api Everything related to the xpAPI enhancement New feature or request
Projects
Status: In review
Development

Successfully merging a pull request may close this issue.

2 participants