Tayhayy Posted June 12, 2021 Report Posted June 12, 2021 (edited) So currently on steam, you can give awards to users via the golden badge at the right of their profile, you can also do this to their screenshots, reviews, artwork etc. There are multiple type of awards, 21 of them in total, so there should be an option to select the award you would like to give. Example implementation: community.award({ recipient: "https://steamcommunity.com/id/lcl", type: 4 }, function (err) { if (!err){ console.log("Gave award to recipent successfully!"); } else { console.log(err) // This should say something like "You don't have enough Steam Points to give the recipent an award!" } }); In addition, there should also be a getPoints() function for the currently logged in user. Example implementation: community.getPoints({ /* Nothing here since you can only get the amount of points from yourself */ }, function (err, points) { if (points){ console.log(`You have ${points} points!`); } }); Note that there is also https://steamcommunity.com/id/lcl/awards/, but I don't think an implementation for that is needed since you can get the needed info from parsing the HTML. Edited June 12, 2021 by Tayhayy Quote
Dr. McKay Posted June 13, 2021 Report Posted June 13, 2021 Created an issue for this: Steam awards · Issue #271 · DoctorMcKay/node-steamcommunity (github.com) Tayhayy 1 Quote
Revadike Posted October 10, 2021 Report Posted October 10, 2021 Created PR: https://github.com/DoctorMcKay/node-steamcommunity/pull/276 Dr. McKay 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.