mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2024-12-28 07:30:09 +08:00
Remove support for up- & downvoting sharedfiles
This commit is contained in:
parent
27d2daac61
commit
f7d7cf0660
@ -204,19 +204,3 @@ CSteamSharedfile.prototype.unfavorite = function(callback) {
|
|||||||
CSteamSharedfile.prototype.unsubscribe = function(callback) {
|
CSteamSharedfile.prototype.unsubscribe = function(callback) {
|
||||||
this._community.unsubscribeSharedfileComments(this.owner, this.id, callback);
|
this._community.unsubscribeSharedfileComments(this.owner, this.id, callback);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* Downvotes this sharedfile
|
|
||||||
* @param {function} callback - Takes only an Error object/null as the first argument
|
|
||||||
*/
|
|
||||||
CSteamSharedfile.prototype.voteDown = function(callback) {
|
|
||||||
this._community.voteDownSharedfile(this.id, callback);
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Upvotes this sharedfile
|
|
||||||
* @param {function} callback - Takes only an Error object/null as the first argument
|
|
||||||
*/
|
|
||||||
CSteamSharedfile.prototype.voteUp = function(callback) {
|
|
||||||
this._community.voteUpSharedfile(this.id, callback);
|
|
||||||
};
|
|
@ -155,45 +155,3 @@ SteamCommunity.prototype.unsubscribeSharedfileComments = function(userID, sid, c
|
|||||||
callback(null || err);
|
callback(null || err);
|
||||||
}, "steamcommunity");
|
}, "steamcommunity");
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* Downvotes a sharedfile
|
|
||||||
* @param {String} sid - ID of the sharedfile
|
|
||||||
* @param {function} callback - Takes only an Error object/null as the first argument
|
|
||||||
*/
|
|
||||||
SteamCommunity.prototype.voteDownSharedfile = function(sid, callback) {
|
|
||||||
this.httpRequestPost({
|
|
||||||
"uri": "https://steamcommunity.com/sharedfiles/votedown",
|
|
||||||
"form": {
|
|
||||||
"id": sid,
|
|
||||||
"sessionid": this.getSessionID()
|
|
||||||
}
|
|
||||||
}, function(err, response, body) {
|
|
||||||
if (!callback) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
callback(null || err);
|
|
||||||
}, "steamcommunity");
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Upvotes a sharedfile
|
|
||||||
* @param {String} sid - ID of the sharedfile
|
|
||||||
* @param {function} callback - Takes only an Error object/null as the first argument
|
|
||||||
*/
|
|
||||||
SteamCommunity.prototype.voteUpSharedfile = function(sid, callback) {
|
|
||||||
this.httpRequestPost({
|
|
||||||
"uri": "https://steamcommunity.com/sharedfiles/voteup",
|
|
||||||
"form": {
|
|
||||||
"id": sid,
|
|
||||||
"sessionid": this.getSessionID()
|
|
||||||
}
|
|
||||||
}, function(err, response, body) {
|
|
||||||
if (!callback) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
callback(null || err);
|
|
||||||
}, "steamcommunity");
|
|
||||||
};
|
|
Loading…
Reference in New Issue
Block a user