mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-12 12:04:16 +00:00
added profiles methods
This commit is contained in:
parent
6552b734c8
commit
731c6d74db
@ -1,18 +1,42 @@
|
|||||||
export default class Livestream {
|
export default class Livestream {
|
||||||
static async getStreamingKey() {
|
static async deleteProfile(profile_id) {
|
||||||
const request = await app.cores.api.customRequest({
|
const request = await app.cores.api.customRequest({
|
||||||
method: "GET",
|
method: "DELETE",
|
||||||
url: `/tv/streaming/key`,
|
url: `/tv/streaming/profile`,
|
||||||
|
data: {
|
||||||
|
profile_id
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
return request.data
|
return request.data
|
||||||
}
|
}
|
||||||
|
|
||||||
static async regenerateStreamingKey() {
|
static async postProfile(payload) {
|
||||||
const request = await app.cores.api.customRequest({
|
const request = await app.cores.api.customRequest({
|
||||||
method: "POST",
|
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
|
return request.data
|
||||||
|
Loading…
x
Reference in New Issue
Block a user