added profiles methods

This commit is contained in:
SrGooglo 2023-04-09 19:33:18 +00:00
parent 6552b734c8
commit 731c6d74db

View File

@ -1,18 +1,42 @@
export default class Livestream {
static async getStreamingKey() {
static async deleteProfile(profile_id) {
const request = await app.cores.api.customRequest({
method: "GET",
url: `/tv/streaming/key`,
method: "DELETE",
url: `/tv/streaming/profile`,
data: {
profile_id
}
})
return request.data
}
static async regenerateStreamingKey() {
static async postProfile(payload) {
const request = await app.cores.api.customRequest({
method: "POST",
url: `/tv/streaming/key/regenerate`,
url: `/tv/streaming/profile`,
data: payload,
})
return request.data
}
static async getProfiles() {
const request = await app.cores.api.customRequest({
method: "GET",
url: `/tv/streaming/profiles`,
})
return request.data
}
static async regenerateStreamingKey(profile_id) {
const request = await app.cores.api.customRequest({
method: "POST",
url: `/tv/streaming/regenerate_key`,
data: {
profile_id
}
})
return request.data