Jump to content
McKay Development

Recommended Posts

Posted (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 by Tayhayy
  • 3 months later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...