cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
%3CLINGO-SUB%20id%3D%22lingo-sub-491948%22%20slang%3D%22en-US%22%3EDisplaying%20bonus%20points%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-491948%22%20slang%3D%22en-US%22%3E%3CP%3EWe're%20considering%20using%20the%20Bonus%20Points%20feature%20to%20award%20community%20members%20for%20contributing%20to%20blogs%2C%20TKBs%2C%20etc.%26nbsp%3B%20%26nbsp%3BMy%20question%20is%3A%26nbsp%3B%20Is%20there%20a%20way%20to%20display%20bonus%20points%3F%26nbsp%3B%3C%2FP%3E%3CP%3EOn%20their%20user%20profile%20for%26nbsp%3Beveryone%20to%20see%3F%3C%2FP%3E%3CP%3EOn%20a%20leaderboard%3F%3C%2FP%3E%3CP%3EI%20looked%20at%20the%20API%20documentation%20and%20the%20only%20thing%20I%20can%20see%20is%20that%20in%20API%20v2%20you%20can%20assign%20points%2C%20but%20I%20can't%20see%20anything%20about%20displaying%20them.%3C%2FP%3E%3CP%3E***OR***%20is%20there%20a%20better%20way%20than%20using%20bonus%20points%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-494432%22%20slang%3D%22en-US%22%3ERe%3A%20Displaying%20bonus%20points%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-494432%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Flithosphere.lithium.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F65735%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%40kgroneman%3C%2FA%3E%26nbsp%3BAPI%20browse%20is%20only%20testing%20code%20in%20stage%2C%20it's%20not%20for%20pulling%2Fretrieving%20data%20in%20that%20way.%26nbsp%3B%20For%20that%2C%20you%20would%20need%20to%20make%20the%20calls%20in%20production%20as%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Flithosphere.lithium.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F34821%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%40Parshant%3C%2FA%3E%26nbsp%3Bmentioned.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-492059%22%20slang%3D%22en-US%22%3ERe%3A%20Displaying%20bonus%20points%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-492059%22%20slang%3D%22en-US%22%3E%3CP%3EThanks.%26nbsp%3B%20That%20only%20works%20for%20me%20from%20a%20regular%20browser%2C%20not%20the%20API%20browser%20in%20studio.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-492018%22%20slang%3D%22en-US%22%3ERe%3A%20Displaying%20bonus%20points%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-492018%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Flithosphere.lithium.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F65735%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%40kgroneman%3C%2FA%3E%3C%2FP%3E%3CP%3EI%20have%20tried%20it%20using%20on%20your%20production%20environment%20in%20api%20browser%20by%20adding%20your%20id%20to%20the%20requested%20query.%3C%2FP%3E%3CPRE%3Ehttps%3A%2F%2Fcommunity.softwaregrp.com%2Fapi%2F2.0%2Fsearch%3Fq%3Dselect%2520bonus_points%2520from%2520users%2520where%2520id%3D%2527168861%2527%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-491974%22%20slang%3D%22en-US%22%3ERe%3A%20Displaying%20bonus%20points%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-491974%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Flithosphere.lithium.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F34821%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%40Parshant%3C%2FA%3E%26nbsp%3B%20%26nbsp%3BThat%20got%20me%20where%20I%20needed%20to%20be.%26nbsp%3B%20Unfortunately%20that%20doesn't%20work%20in%20my%20api%20browser%20because%20the%20users%20don't%20exist%20on%20stage%2C%20which%2C%20apparently%2C%20is%20the%20only%20place%20the%20api%20browser%20looks.%26nbsp%3B%20%3Cspan%20class%3D%22lia-unicode-emoji%22%20title%3D%22%3Adisappointed_face%3A%22%3E%F0%9F%98%9E%3C%2Fspan%3E%26nbsp%3B%20%26nbsp%3B%20%3CFONT%20color%3D%22%23FF6600%22%3E(Can%20you%20get%20the%20api%20browser%20to%20look%20at%20production%20or%20can%20you%20use%20your%20syntax%20outside%20of%20the%20api%20browser%3F)%3C%2FFONT%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20did%20use%20it%20from%20the%26nbsp%3B%20browser%20however%20by%20modifying%20it%20slightly%20and%20it%20worked%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.softwaregrp.com%2Fapi%2F2.0%2Fsearch%3Fq%3DSELECT%2Bbonus_points%2BFROM%2Busers%2BWHERE%2Blogin%253D%2527kgroneman%2527%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fcommunity.softwaregrp.com%2Fapi%2F2.0%2Fsearch%3Fq%3DSELECT%2Bbonus_points%2BFROM%2Busers%2BWHERE%2Blogin%253D%2527kgroneman%2527%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-491959%22%20slang%3D%22en-US%22%3ERe%3A%20Displaying%20bonus%20points%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-491959%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Flithosphere.lithium.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F65735%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%40kgroneman%3C%2FA%3E%2C%3C%2FP%3E%3CP%3EYou%20can%20use%20below%20API%20to%20get%20bonus%20points%20of%20the%20user%20and%20show%20this%20in%20user%20profile.%3C%2FP%3E%3CPRE%3Eselect%20bonus_points%20from%20users%20where%20id%3D'%24%7Buser.id%7D'%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
Highlighted
Honored Contributor

Displaying bonus points

We're considering using the Bonus Points feature to award community members for contributing to blogs, TKBs, etc.   My question is:  Is there a way to display bonus points? 

On their user profile for everyone to see?

On a leaderboard?

I looked at the API documentation and the only thing I can see is that in API v2 you can assign points, but I can't see anything about displaying them.

***OR*** is there a better way than using bonus points? 

--
Community manager in the Micro Focus Community. My computer always used to beat me at chess, but it is no match for me now I changed the competition to kick boxing.
5 Replies 5
Highlighted
Honored Contributor

@kgroneman,

You can use below API to get bonus points of the user and show this in user profile.

select bonus_points from users where id='${user.id}'
.......
Do you know we work with Kudos and Accepted Solution.
Highlighted
Honored Contributor

Thanks @Parshant   That got me where I needed to be.  Unfortunately that doesn't work in my api browser because the users don't exist on stage, which, apparently, is the only place the api browser looks.  😞    (Can you get the api browser to look at production or can you use your syntax outside of the api browser?) 

I did use it from the  browser however by modifying it slightly and it worked:

https://community.softwaregrp.com/api/2.0/search?q=SELECT+bonus_points+FROM+users+WHERE+login%3D%27k...

--
Community manager in the Micro Focus Community. My computer always used to beat me at chess, but it is no match for me now I changed the competition to kick boxing.
Highlighted
Honored Contributor

@kgroneman

I have tried it using on your production environment in api browser by adding your id to the requested query.

https://community.softwaregrp.com/api/2.0/search?q=select%20bonus_points%20from%20users%20where%20id=%27168861%27
.......
Do you know we work with Kudos and Accepted Solution.
Highlighted
Honored Contributor

Thanks.  That only works for me from a regular browser, not the API browser in studio. 

--
Community manager in the Micro Focus Community. My computer always used to beat me at chess, but it is no match for me now I changed the competition to kick boxing.
Highlighted

@kgroneman API browse is only testing code in stage, it's not for pulling/retrieving data in that way.  For that, you would need to make the calls in production as @Parshant mentioned.