mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
add user tags api
This commit is contained in:
38
html/app.js
38
html/app.js
@@ -1118,6 +1118,44 @@ CefSharp.BindObjectAsync(
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
params: {
|
||||||
|
tags: array[string]
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
API.addUserTags = function (params) {
|
||||||
|
return this.call(`users/${this.currentUser.id}/addTags`, {
|
||||||
|
method: 'POST',
|
||||||
|
params
|
||||||
|
}).then((json) => {
|
||||||
|
var args = {
|
||||||
|
json,
|
||||||
|
params
|
||||||
|
};
|
||||||
|
this.$emit('USER:CURRENT:SAVE', args);
|
||||||
|
return args;
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
params: {
|
||||||
|
tags: array[string]
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
API.removeUserTags = function (params) {
|
||||||
|
return this.call(`users/${this.currentUser.id}/removeTags`, {
|
||||||
|
method: 'POST',
|
||||||
|
params
|
||||||
|
}).then((json) => {
|
||||||
|
var args = {
|
||||||
|
json,
|
||||||
|
params
|
||||||
|
};
|
||||||
|
this.$emit('USER:CURRENT:SAVE', args);
|
||||||
|
return args;
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
// API: World
|
// API: World
|
||||||
|
|
||||||
API.cachedWorlds = new Map();
|
API.cachedWorlds = new Map();
|
||||||
|
|||||||
Reference in New Issue
Block a user